diff --git a/examples/python/run.sh b/examples/python/run.sh index 3ea99db..6bad57f 100755 --- a/examples/python/run.sh +++ b/examples/python/run.sh @@ -4,7 +4,6 @@ set -euo pipefail export OTEL_METRIC_EXPORT_INTERVAL="5000" # so we don't have to wait 60s for metrics export OTEL_RESOURCE_ATTRIBUTES="service.name=rolldice,service.instance.id=localhost:8082" -export OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true python3 -m venv venv source ./venv/bin/activate @@ -17,4 +16,5 @@ pip install -r requirements.txt pip install opentelemetry-distro[otlp] opentelemetry-bootstrap -a install +export OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true opentelemetry-instrument flask run -p 8082