diff --git a/src/cpp/ext/otel/otel_plugin.cc b/src/cpp/ext/otel/otel_plugin.cc index 661f73075f0..e4e1e50b0a7 100644 --- a/src/cpp/ext/otel/otel_plugin.cc +++ b/src/cpp/ext/otel/otel_plugin.cc @@ -429,7 +429,7 @@ OpenTelemetryPlugin::OpenTelemetryPlugin( std::pair> OpenTelemetryPlugin::IsEnabledForChannel( - const grpc_core::experimental::StatsPluginChannelScope& scope) const { + const OpenTelemetryPluginBuilder::ChannelScope& scope) const { if (channel_scope_filter_ == nullptr || channel_scope_filter_(scope)) { return {true, std::make_shared(this, scope)}; } diff --git a/src/cpp/ext/otel/otel_plugin.h b/src/cpp/ext/otel/otel_plugin.h index ee4158bec91..2a1ba0e144f 100644 --- a/src/cpp/ext/otel/otel_plugin.h +++ b/src/cpp/ext/otel/otel_plugin.h @@ -276,9 +276,8 @@ class OpenTelemetryPlugin : public grpc_core::StatsPlugin { class ClientScopeConfig : public grpc_core::StatsPlugin::ScopeConfig { public: - ClientScopeConfig( - const OpenTelemetryPlugin* otel_plugin, - const grpc_core::experimental::StatsPluginChannelScope& scope) + ClientScopeConfig(const OpenTelemetryPlugin* otel_plugin, + const OpenTelemetryPluginBuilder::ChannelScope& scope) : active_plugin_options_view_(ActivePluginOptionsView::MakeForClient( scope.target(), otel_plugin)), filtered_target_( @@ -338,8 +337,8 @@ class OpenTelemetryPlugin : public grpc_core::StatsPlugin { // StatsPlugin: std::pair> - IsEnabledForChannel(const grpc_core::experimental::StatsPluginChannelScope& - scope) const override; + IsEnabledForChannel( + const OpenTelemetryPluginBuilder::ChannelScope& scope) const override; std::pair> IsEnabledForServer(const grpc_core::ChannelArgs& args) const override; void AddCounter(