diff --git a/instrumentation-genai/opentelemetry-instrumentation-openai-v2/example/Dockerfile b/instrumentation-genai/opentelemetry-instrumentation-openai-v2/example/Dockerfile deleted file mode 100644 index a5b68c41c4..0000000000 --- a/instrumentation-genai/opentelemetry-instrumentation-openai-v2/example/Dockerfile +++ /dev/null @@ -1,10 +0,0 @@ -# Use an alpine image to make the runtime smaller -FROM docker.io/python:3.12.7-alpine3.20 -RUN python -m pip install --upgrade pip - -COPY /requirements.txt /tmp/requirements.txt -RUN pip install -r /tmp/requirements.txt - -COPY main.py / - -CMD [ "opentelemetry-instrument", "python", "main.py" ] diff --git a/instrumentation-genai/opentelemetry-instrumentation-openai-v2/example/README.rst b/instrumentation-genai/opentelemetry-instrumentation-openai-v2/example/README.rst index b079930d04..019e141c70 100644 --- a/instrumentation-genai/opentelemetry-instrumentation-openai-v2/example/README.rst +++ b/instrumentation-genai/opentelemetry-instrumentation-openai-v2/example/README.rst @@ -17,23 +17,7 @@ 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:4318. If not, update "OTEL_EXPORTER_OTLP_ENDPOINT" as well. -Run with Docker ---------------- - -If you have Docker installed, you can run the example in one step: - -:: - - docker-compose run --build --rm python-opentelemetry-openai - -You should see a poem generated by OpenAI while traces and logs export to your -configured observability tool. - -Run with Python ---------------- - -If you prefer to run the example with Python, set up a virtual environment for -the example like this: +Next, set up a virtual environment like this: :: @@ -42,7 +26,10 @@ the example like this: pip install "python-dotenv[cli]" pip install -r requirements.txt -Now, run the example like this: +Run +--- + +Run the example like this: :: diff --git a/instrumentation-genai/opentelemetry-instrumentation-openai-v2/example/docker-compose.yml b/instrumentation-genai/opentelemetry-instrumentation-openai-v2/example/docker-compose.yml deleted file mode 100644 index 27e247e85d..0000000000 --- a/instrumentation-genai/opentelemetry-instrumentation-openai-v2/example/docker-compose.yml +++ /dev/null @@ -1,9 +0,0 @@ -services: - opentelemetry-python-openai: - container_name: opentelemetry-python-openai - build: - context: . - env_file: - - .env - environment: - OTEL_EXPORTER_OTLP_ENDPOINT: "http://host.docker.internal:4318"