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.
11
11
12
12
Note: `.env <.env >`_ file configures additional environment variables:
13
13
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.
17
15
18
16
Setup
19
17
-----
20
18
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
22
20
OTLP 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.
24
22
25
23
Next, set up a virtual environment like this:
26
24
Original file line number Diff line number Diff line change @@ -12,19 +12,16 @@ your OpenAI requests.
12
12
13
13
Note: `.env <.env >`_ file configures additional environment variables:
14
14
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.
21
18
22
19
Setup
23
20
-----
24
21
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
26
23
OTLP 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.
28
25
29
26
Next, set up a virtual environment like this:
30
27
You can’t perform that action at this time.
0 commit comments