SIGN IN SIGN UP

opentelemetry-instrumentation-grpc: respect suppressed instrumentation in server interceptors (#4870)

* opentelemetry-instrumentation-grpc: respect suppressed instrumentation in server interceptors

Check is_instrumentation_enabled() in the sync and asyncio server
interceptors before wrapping RPC handlers with telemetry, so no server
spans are created while instrumentation is suppressed in the current
context. This mirrors the client-side check added in #559 and covers
the remaining server half of #476.

Signed-off-by: Jojin <jojin.kb@gmail.com>

* Add changelog entry for issue 4870

---------

Signed-off-by: Jojin <jojin.kb@gmail.com>
Co-authored-by: Emídio <9735060+emdneto@users.noreply.github.com>
Co-authored-by: Aaron Abbott <aaronabbott@google.com>
J
Jojin committed
038eb07ba1712b76a5ee7b38c54f46a535fbd0ad
Parent: 664f5ce
Committed by GitHub <noreply@github.com> on 8/10/2026, 5:06:57 PM