diff --git a/docs/getting-started.md b/docs/getting-started.md index a34a8d16e..72325d636 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -35,7 +35,7 @@ To instrument an application on the same host, follow these steps: For example: ```sh - sudo OTEL_GO_AUTO_TARGET_EXE=/home/bin/service_executable OTEL_SERVICE_NAME=my_service OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 ./otel-go-instrumentation` + sudo OTEL_GO_AUTO_TARGET_EXE=/home/bin/service_executable OTEL_SERVICE_NAME=my_service OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 ./otel-go-instrumentation ``` 3. Run the OpenTelemetry Go Automatic Instrumentation with root privileges. @@ -61,12 +61,15 @@ network, a shared volume, and a service for the application. environment: - OTEL_EXPORTER_OTLP_ENDPOINT=http://:4318 - OTEL_GO_AUTO_TARGET_EXE= + - OTEL_RESOURCE_ATTRIBUTES=key1=value1 - OTEL_SERVICE_NAME= - OTEL_PROPAGATORS=tracecontext,baggage volumes: - - /proc:/host/proc ``` + + For more environment variables, refer to [here](https://opentelemetry.io/docs/languages/sdk-configuration/). 3. Run `docker compose up`.