File tree Expand file tree Collapse file tree 2 files changed +8
-13
lines changed
instrumentation-genai/opentelemetry-instrumentation-openai-v2/examples Expand file tree Collapse file tree 2 files changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,14 @@ your OpenAI requests.
1111
1212Note: `.env <.env >`_ file configures additional environment variables:
1313
14- - `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true ` configures
15- OpenAI instrumentation to capture prompt and completion contents on
16- events.
14+ - ``OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true `` configures OpenAI instrumentation to capture prompt and completion contents on events.
1715
1816Setup
1917-----
2018
21- Minimally, update the `.env <.env >`_ file with your " OPENAI_API_KEY" . An
19+ Minimally, update the `.env <.env >`_ file with your `` OPENAI_API_KEY `` . An
2220OTLP compatible endpoint should be listening for traces and logs on
23- http://localhost:4317. If not, update " OTEL_EXPORTER_OTLP_ENDPOINT" as well.
21+ http://localhost:4317. If not, update `` OTEL_EXPORTER_OTLP_ENDPOINT `` as well.
2422
2523Next, set up a virtual environment like this:
2624
Original file line number Diff line number Diff line change @@ -12,19 +12,16 @@ your OpenAI requests.
1212
1313Note: `.env <.env >`_ file configures additional environment variables:
1414
15- - `OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true ` configures
16- OpenTelemetry SDK to export logs and events.
17- - `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true ` configures
18- OpenAI instrumentation to capture prompt and completion contents on
19- events.
20- - `OTEL_LOGS_EXPORTER=otlp ` to specify exporter type.
15+ - ``OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true `` configures OpenTelemetry SDK to export logs and events.
16+ - ``OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true `` configures OpenAI instrumentation to capture prompt and completion contents on events.
17+ - ``OTEL_LOGS_EXPORTER=otlp `` to specify exporter type.
2118
2219Setup
2320-----
2421
25- Minimally, update the `.env <.env >`_ file with your " OPENAI_API_KEY" . An
22+ Minimally, update the `.env <.env >`_ file with your `` OPENAI_API_KEY `` . An
2623OTLP compatible endpoint should be listening for traces and logs on
27- http://localhost:4317. If not, update " OTEL_EXPORTER_OTLP_ENDPOINT" as well.
24+ http://localhost:4317. If not, update `` OTEL_EXPORTER_OTLP_ENDPOINT `` as well.
2825
2926Next, set up a virtual environment like this:
3027
You can’t perform that action at this time.
0 commit comments