Maple이 출시되었습니다 — 무료 평가판 시작하기
Python

Python observability with OpenTelemetry

Instrument your Python application with zero code changes using OpenTelemetry auto-instrumentation. Supports Flask, FastAPI, Django, and dozens of popular libraries out of the box.

Quick start

Up and running in minutes

1

Install dependencies

bash
pip install opentelemetry-sdk \
  opentelemetry-exporter-otlp-proto-http \
  opentelemetry-instrumentation
2

Configure tracing

python
# tracing.py
from opentelemetry import trace
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter

provider = TracerProvider()
exporter = OTLPSpanExporter(
    endpoint="https://ingest.maple.dev/v1/traces",
    headers={"Authorization": "Bearer your-api-key"},
)
provider.add_span_processor(BatchSpanProcessor(exporter))
trace.set_tracer_provider(provider)

# Create a tracer and send a test span
tracer = trace.get_tracer("quickstart")
with tracer.start_as_current_span("hello-maple"):
    print("Trace sent!")
What you get

Automatic instrumentation for Python

Flask/FastAPI routes

Automatic spans for every HTTP request with route, method, and status code attributes.

SQLAlchemy queries

Database query spans with statement text, connection details, and execution duration.

HTTP requests

Outgoing requests via urllib3 and the requests library traced with context propagation.

Redis calls

Redis command spans with operation type, key patterns, and response time.

Celery tasks

Distributed task spans that link producers and consumers across worker processes.

gRPC calls

Client and server gRPC spans with service, method, and status code attributes.

Live trace preview

See your Python traces

Trace: Python App
POST /api/orders
234ms
FastAPI middleware
8ms
sqlalchemy SELECT products
45ms
requests.get https://payment.api
156ms
Explore more

Other integrations

명확한 관측을 시작하시겠습니까?

5분 이내에 트레이스, 로그, 메트릭 전송 시작.

maple.dev — 옵저버빌리티, 심플하게