OpenTelemetry Exporter OTLP Proto Common

1.40.0 · active · verified Sat Mar 28

This library provides Protobuf encoding for OpenTelemetry. The current version is 1.40.0, released regularly as part of the OpenTelemetry project. It is utilized to integrate with various tracing and monitoring systems.

Warnings

Install

Imports

Quickstart

This code initializes a NoOpTracer and starts a span.

import os
from opentelemetry.exporter.otlp.proto.common import NoOpTracer

tracer = NoOpTracer()

with tracer.start_as_current_span('example_span'):
    print('Hello, OpenTelemetry!')

view raw JSON →