OTEL Trace Ingestion
Publish OTEL Traces directly to your DBNL Deployment
Example Trace Publishing Code
from opentelemetry import trace as trace_api
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
from opentelemetry.sdk import trace as trace_sdk
from opentelemetry.sdk.trace.export import BatchSpanProcessor
tracer_provider = trace_sdk.TracerProvider()
trace_api.set_tracer_provider(tracer_provider)
tracer_provider.add_span_processor(
BatchSpanProcessor(
OTLPSpanExporter(
endpoint="https://api.dev.dbnl.com/otel/v1/traces",
headers={
"Authorization": "Bearer API_TOKEN",
"x-dbnl-project-id": "PROJECT_ID",
},
)
)
)Was this helpful?

