See https://opentelemetry.io/docs/zero-code/obi/configure/service-discovery/#exclude-otel-instrumented-services
It says :
The exclude_otel_instrumented_services option disables OBI instrumentation of services already instrumented with OpenTelemetry
Now I have this config:
discovery:
instrument:
#- open_ports: 8000
- exe_path: "*python3.14*"
exclude_otel_instrumented_services: true
and I do see duplicate instrumentation in my Python code
python3.4 and payment are the same code.
Perhaps I am using the flag wrong. Or the obi-instrumentation does not catch all cases.
Server code is at https://github.com/pilhuhn/observability-talk/blob/main/python-pay/server5.py