grpc/test/cpp/ext/otel
Yash Tibrewal 20e5e0cb29 [CSM] Modify CsmObservability to CsmOpenTelemetryPluginOption internally (#35803)
Changes -
* `CsmObservability` API will now use the `CsmOpenTelemetryPluginOption` internally. After this change, `CsmObservability` will enable observability for all channels and servers. (Earlier, `CsmObservability` only enabled observability for CSM-enabled channels and servers.) CSM labels will still be added just for CSM-enabled channels and servers.
* Also, we no longer need the ability to set `LabelInjector` on the `OpenTelemetryPluginBuilder` directly. Instead, we always use `PluginOption` to inject the `LabelInjector`. This simplifies the code as well.

Note that `SetTargetSelector` and `SetServerSelector` APIs on the `OpenTelemetryPluginBuilderImpl` are not being deleted yet since we might need them shortly. This is also why `OpenTelemetryPluginBuilderImpl` is not being deleted right now.

Closes #35803

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35803 from yashykt:CsmO11yApisUsePluginOption cf3d65900d
PiperOrigin-RevId: 604323898
2024-02-05 08:21:58 -08:00
..
BUILD [chttp2] Fix outgoing data stats (#34693) 2023-10-23 17:04:48 -07:00
otel_plugin_test.cc [CSM] Modify CsmObservability to CsmOpenTelemetryPluginOption internally (#35803) 2024-02-05 08:21:58 -08:00
otel_test_library.cc [CSM] Modify CsmObservability to CsmOpenTelemetryPluginOption internally (#35803) 2024-02-05 08:21:58 -08:00
otel_test_library.h [CSM] Modify CsmObservability to CsmOpenTelemetryPluginOption internally (#35803) 2024-02-05 08:21:58 -08:00