MyObservability

Manual Instrumentation

To facilitate the instrumentation of applications even more, you can manually instrument your applications by coding against the OpenTelemetry APIs.

For that you don’t need to instrument all the dependencies used in your application:

OpenTelemetry defines a trace as a particular request’s entire path through the codebase (and possibly multiple services). A trace includes one or more spans, which are the instances of a particular operation. A span has a parent span that it is linked to, unless it is the first span in the trace in which case its span parent ID is all zeros.

<img src=Images/application-api-sdk.jpg>

Steps:

  1. Import the OpenTelemetry API and SDK
  2. Configure the OpenTelemetry API
  3. Configure the OpenTelemetry SDK
  4. Create Telemetry Data
  5. Export Data

Instrumentation procedure



Next Chapter: Sampling

Main Page: Click Here