Skip to content

Commit 0d39525

Browse files
author
Liudmila Molkova
committed
nits
1 parent b16159d commit 0d39525

File tree

3 files changed

+5
-4
lines changed
  • instrumentation-genai/opentelemetry-instrumentation-openai-v2/examples

3 files changed

+5
-4
lines changed

instrumentation-genai/opentelemetry-instrumentation-openai-v2/examples/manual/.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
1213
OTEL_SERVICE_NAME=opentelemetry-python-openai
1314

1415
# Change to 'false' to hide prompt and completion content

instrumentation-genai/opentelemetry-instrumentation-openai-v2/examples/manual/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
# NOTE: OpenTelemetry Python Logs and Events APIs are in beta
66
from 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
)
1313
from opentelemetry.instrumentation.openai_v2 import OpenAIInstrumentor

instrumentation-genai/opentelemetry-instrumentation-openai-v2/examples/zero-code/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)