diff --git a/instrumentation-genai/opentelemetry-instrumentation-openai-v2/examples/manual/README.rst b/instrumentation-genai/opentelemetry-instrumentation-openai-v2/examples/manual/README.rst index 73e4d1bb0..61e4c4ae8 100644 --- a/instrumentation-genai/opentelemetry-instrumentation-openai-v2/examples/manual/README.rst +++ b/instrumentation-genai/opentelemetry-instrumentation-openai-v2/examples/manual/README.rst @@ -11,16 +11,14 @@ your OpenAI requests. Note: `.env <.env>`_ file configures additional environment variables: -- `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true` configures -OpenAI instrumentation to capture prompt and completion contents on -events. +- ``OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true`` configures OpenAI instrumentation to capture prompt and completion contents on events. Setup ----- -Minimally, update the `.env <.env>`_ file with your "OPENAI_API_KEY". An +Minimally, update the `.env <.env>`_ file with your ``OPENAI_API_KEY``. An OTLP compatible endpoint should be listening for traces and logs on -http://localhost:4317. If not, update "OTEL_EXPORTER_OTLP_ENDPOINT" as well. +http://localhost:4317. If not, update ``OTEL_EXPORTER_OTLP_ENDPOINT`` as well. Next, set up a virtual environment like this: diff --git a/instrumentation-genai/opentelemetry-instrumentation-openai-v2/examples/zero-code/README.rst b/instrumentation-genai/opentelemetry-instrumentation-openai-v2/examples/zero-code/README.rst index 441c6a612..4332c0b7c 100644 --- a/instrumentation-genai/opentelemetry-instrumentation-openai-v2/examples/zero-code/README.rst +++ b/instrumentation-genai/opentelemetry-instrumentation-openai-v2/examples/zero-code/README.rst @@ -12,19 +12,16 @@ your OpenAI requests. Note: `.env <.env>`_ file configures additional environment variables: -- `OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true` configures -OpenTelemetry SDK to export logs and events. -- `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true` configures -OpenAI instrumentation to capture prompt and completion contents on -events. -- `OTEL_LOGS_EXPORTER=otlp` to specify exporter type. +- ``OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true`` configures OpenTelemetry SDK to export logs and events. +- ``OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true`` configures OpenAI instrumentation to capture prompt and completion contents on events. +- ``OTEL_LOGS_EXPORTER=otlp`` to specify exporter type. Setup ----- -Minimally, update the `.env <.env>`_ file with your "OPENAI_API_KEY". An +Minimally, update the `.env <.env>`_ file with your ``OPENAI_API_KEY``. An OTLP compatible endpoint should be listening for traces and logs on -http://localhost:4317. If not, update "OTEL_EXPORTER_OTLP_ENDPOINT" as well. +http://localhost:4317. If not, update ``OTEL_EXPORTER_OTLP_ENDPOINT`` as well. Next, set up a virtual environment like this: