File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
instrumentation-genai/opentelemetry-instrumentation-openai-v2/examples Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,10 @@ OPENAI_API_KEY=sk-YOUR_API_KEY
66# OPENAI_API_KEY=unused
77# CHAT_MODEL=qwen2.5:0.5b
88
9- # Uncomment and change to your OTLP endpoint and/or
9+ # Uncomment and change to your OTLP endpoint
1010# OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317
1111# OTEL_EXPORTER_OTLP_PROTOCOL=grpc
12+
1213OTEL_SERVICE_NAME = opentelemetry-python-openai
1314
1415# Change to 'false' to hide prompt and completion content
Original file line number Diff line number Diff line change 44
55# NOTE: OpenTelemetry Python Logs and Events APIs are in beta
66from opentelemetry import _events , _logs , trace
7- from opentelemetry .exporter .otlp .proto .http ._log_exporter import (
7+ from opentelemetry .exporter .otlp .proto .grpc ._log_exporter import (
88 OTLPLogExporter ,
99)
10- from opentelemetry .exporter .otlp .proto .http .trace_exporter import (
10+ from opentelemetry .exporter .otlp .proto .grpc .trace_exporter import (
1111 OTLPSpanExporter ,
1212)
1313from opentelemetry .instrumentation .openai_v2 import OpenAIInstrumentor
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ OPENAI_API_KEY=sk-YOUR_API_KEY
66# OPENAI_API_KEY=unused
77# CHAT_MODEL=qwen2.5:0.5b
88
9- # Uncomment and change to your OTLP endpoint and/or
9+ # Uncomment and change to your OTLP endpoint
1010# OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317
1111# OTEL_EXPORTER_OTLP_PROTOCOL=grpc
1212
You can’t perform that action at this time.
0 commit comments