Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Cloud-Native Observability with OpenTelemetry

You're reading from  Cloud-Native Observability with OpenTelemetry

Product type Book
Published in May 2022
Publisher Packt
ISBN-13 9781801077705
Pages 386 pages
Edition 1st Edition
Languages
Author (1):
Alex Boten Alex Boten
Profile icon Alex Boten

Table of Contents (17) Chapters

Preface 1. Section 1: The Basics
2. Chapter 1: The History and Concepts of Observability 3. Chapter 2: OpenTelemetry Signals – Traces, Metrics, and Logs 4. Chapter 3: Auto-Instrumentation 5. Section 2: Instrumenting an Application
6. Chapter 4: Distributed Tracing – Tracing Code Execution 7. Chapter 5: Metrics – Recording Measurements 8. Chapter 6: Logging – Capturing Events 9. Chapter 7: Instrumentation Libraries 10. Section 3: Using Telemetry Data
11. Chapter 8: OpenTelemetry Collector 12. Chapter 9: Deploying the Collector 13. Chapter 10: Configuring Backends 14. Chapter 11: Diagnosing Problems 15. Chapter 12: Sampling 16. Other Books You May Enjoy

Conventions used

There are a number of text conventions used throughout this book.

Code in text: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "The code then calls the global set_meter_provider method to set the meter provider for the entire application."

A block of code is set as follows:

from opentelemetry._metrics import set_meter_provider
from opentelemetry.sdk._metrics import MeterProvider
from opentelemetry.sdk.resources import Resource
def configure_meter_provider():
    provider = MeterProvider(resource=Resource.create())
    set_meter_provider(provider)
if __name__ == "__main__":
    configure_meter_provider()

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

from opentelemetry._metrics import get_meter_provider, set_meter_provider
...
if __name__ == "__main__":
    configure_meter_provider()
    meter = get_meter_provider().get_meter(
        name="metric-example",
        version="0.1.2",
        schema_url=" https://opentelemetry.io/schemas/1.9.0",
    )

Any command-line input or output is written as follows:

$ git clone https://github.com/PacktPublishing/Cloud-Native-Observability
$ cd Cloud-Native-Observability/chapter7

Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: "Search for traces by clicking the Run Query button."

Tips or Important Notes

Appear like this.

lock icon The rest of the chapter is locked
Next Chapter arrow right
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}