diff --git a/src/core/lib/surface/legacy_channel.cc b/src/core/lib/surface/legacy_channel.cc index 242da66dd9c92..a90713baa39c7 100644 --- a/src/core/lib/surface/legacy_channel.cc +++ b/src/core/lib/surface/legacy_channel.cc @@ -101,8 +101,8 @@ absl::StatusOr> LegacyChannel::Create( GlobalStatsPluginRegistry::GetStatsPluginsForChannel( experimental::StatsPluginChannelScope(target, authority)); // Merge in per-channel stats plugins. - auto* stats_plugin_group = args.GetPointer>( + auto* stats_plugin_group = args.GetPointer< + std::shared_ptr>( GRPC_ARG_STATS_PLUGINS); if (stats_plugin_group != nullptr) { (*r)->stats_plugin_group->Take(stats_plugin_group);