Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contrib/sip_proxy/filters/network/source/config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Network::FilterFactoryCb SipProxyFilterConfigFactory::createFilterFactoryFromPro
*/
auto transaction_infos = std::make_shared<Router::TransactionInfos>();
for (auto& cluster : unique_clusters) {
Stats::ScopePtr stats_scope =
Stats::ScopeSharedPtr stats_scope =
context.scope().createScope(fmt::format("cluster.{}.sip_cluster", cluster));
auto transaction_info_ptr = std::make_shared<Router::TransactionInfo>(
cluster, context.threadLocal(),
Expand Down
2 changes: 1 addition & 1 deletion envoy/server/admin.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class Admin {
const std::string& address_out_path,
Network::Address::InstanceConstSharedPtr address,
const Network::Socket::OptionsSharedPtr& socket_options,
Stats::ScopePtr&& listener_scope) PURE;
Stats::ScopeSharedPtr&& listener_scope) PURE;

/**
* Executes an admin request with the specified query params. Note: this must
Expand Down
2 changes: 1 addition & 1 deletion source/common/tcp_proxy/tcp_proxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class Config {

// Hold a Scope for the lifetime of the configuration because connections in
// the UpstreamDrainManager can live longer than the listener.
const Stats::ScopePtr stats_scope_;
const Stats::ScopeSharedPtr stats_scope_;

const TcpProxyStats stats_;
absl::optional<std::chrono::milliseconds> idle_timeout_;
Expand Down
2 changes: 1 addition & 1 deletion source/common/upstream/cds_api_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class CdsApiImpl : public CdsApi,

CdsApiHelper helper_;
ClusterManager& cm_;
Stats::ScopePtr scope_;
Stats::ScopeSharedPtr scope_;
Config::SubscriptionPtr subscription_;
std::function<void()> initialize_callback_;
};
Expand Down
4 changes: 2 additions & 2 deletions source/common/upstream/cluster_factory_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ namespace Upstream {

namespace {

Stats::ScopePtr generateStatsScope(const envoy::config::cluster::v3::Cluster& config,
Stats::Store& stats) {
Stats::ScopeSharedPtr generateStatsScope(const envoy::config::cluster::v3::Cluster& config,
Stats::Store& stats) {
return stats.createScope(fmt::format(
"cluster.{}.", config.alt_stat_name().empty() ? config.name() : config.alt_stat_name()));
}
Expand Down
6 changes: 3 additions & 3 deletions source/common/upstream/cluster_factory_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class ClusterFactoryImplBase : public ClusterFactory {
virtual std::pair<ClusterImplBaseSharedPtr, ThreadAwareLoadBalancerPtr> createClusterImpl(
const envoy::config::cluster::v3::Cluster& cluster, ClusterFactoryContext& context,
Server::Configuration::TransportSocketFactoryContextImpl& socket_factory_context,
Stats::ScopePtr&& stats_scope) PURE;
Stats::ScopeSharedPtr&& stats_scope) PURE;
const std::string name_;
};

Expand All @@ -174,7 +174,7 @@ template <class ConfigProto> class ConfigurableClusterFactoryBase : public Clust
std::pair<ClusterImplBaseSharedPtr, ThreadAwareLoadBalancerPtr> createClusterImpl(
const envoy::config::cluster::v3::Cluster& cluster, ClusterFactoryContext& context,
Server::Configuration::TransportSocketFactoryContextImpl& socket_factory_context,
Stats::ScopePtr&& stats_scope) override {
Stats::ScopeSharedPtr&& stats_scope) override {
ProtobufTypes::MessagePtr config = createEmptyConfigProto();
Config::Utility::translateOpaqueConfig(cluster.cluster_type().typed_config(),
socket_factory_context.messageValidationVisitor(),
Expand All @@ -189,7 +189,7 @@ template <class ConfigProto> class ConfigurableClusterFactoryBase : public Clust
const envoy::config::cluster::v3::Cluster& cluster, const ConfigProto& proto_config,
ClusterFactoryContext& context,
Server::Configuration::TransportSocketFactoryContextImpl& socket_factory_context,
Stats::ScopePtr&& stats_scope) PURE;
Stats::ScopeSharedPtr&& stats_scope) PURE;
};

} // namespace Upstream
Expand Down
4 changes: 2 additions & 2 deletions source/common/upstream/eds.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Upstream {
EdsClusterImpl::EdsClusterImpl(
const envoy::config::cluster::v3::Cluster& cluster, Runtime::Loader& runtime,
Server::Configuration::TransportSocketFactoryContextImpl& factory_context,
Stats::ScopePtr&& stats_scope, bool added_via_api)
Stats::ScopeSharedPtr&& stats_scope, bool added_via_api)
: BaseDynamicClusterImpl(cluster, runtime, factory_context, std::move(stats_scope),
added_via_api, factory_context.mainThreadDispatcher().timeSource()),
Envoy::Config::SubscriptionBase<envoy::config::endpoint::v3::ClusterLoadAssignment>(
Expand Down Expand Up @@ -378,7 +378,7 @@ std::pair<ClusterImplBaseSharedPtr, ThreadAwareLoadBalancerPtr>
EdsClusterFactory::createClusterImpl(
const envoy::config::cluster::v3::Cluster& cluster, ClusterFactoryContext& context,
Server::Configuration::TransportSocketFactoryContextImpl& socket_factory_context,
Stats::ScopePtr&& stats_scope) {
Stats::ScopeSharedPtr&& stats_scope) {
if (!cluster.has_eds_cluster_config()) {
throw EnvoyException("cannot create an EDS cluster without an EDS config");
}
Expand Down
4 changes: 2 additions & 2 deletions source/common/upstream/eds.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class EdsClusterImpl
public:
EdsClusterImpl(const envoy::config::cluster::v3::Cluster& cluster, Runtime::Loader& runtime,
Server::Configuration::TransportSocketFactoryContextImpl& factory_context,
Stats::ScopePtr&& stats_scope, bool added_via_api);
Stats::ScopeSharedPtr&& stats_scope, bool added_via_api);

// Upstream::Cluster
InitializePhase initializePhase() const override { return initialize_phase_; }
Expand Down Expand Up @@ -115,7 +115,7 @@ class EdsClusterFactory : public ClusterFactoryImplBase {
std::pair<ClusterImplBaseSharedPtr, ThreadAwareLoadBalancerPtr> createClusterImpl(
const envoy::config::cluster::v3::Cluster& cluster, ClusterFactoryContext& context,
Server::Configuration::TransportSocketFactoryContextImpl& socket_factory_context,
Stats::ScopePtr&& stats_scope) override;
Stats::ScopeSharedPtr&& stats_scope) override;
};

} // namespace Upstream
Expand Down
2 changes: 1 addition & 1 deletion source/common/upstream/health_discovery_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ ClusterSharedPtr HdsCluster::create() { return nullptr; }

ClusterInfoConstSharedPtr
ProdClusterInfoFactory::createClusterInfo(const CreateClusterInfoParams& params) {
Envoy::Stats::ScopePtr scope =
Envoy::Stats::ScopeSharedPtr scope =
params.stats_.createScope(fmt::format("cluster.{}.", params.cluster_.name()));

Envoy::Server::Configuration::TransportSocketFactoryContextImpl factory_context(
Expand Down
2 changes: 1 addition & 1 deletion source/common/upstream/leds.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class LedsSubscription
const LocalInfo::LocalInfo& local_info_;
const std::string cluster_name_;
// LEDS stats scope must outlive the subscription.
Stats::ScopePtr stats_scope_;
Stats::ScopeSharedPtr stats_scope_;
LedsStats stats_;
// A map between a LEDS resource name to the LbEndpoint data.
LbEndpointsMap endpoints_map_;
Expand Down
4 changes: 2 additions & 2 deletions source/common/upstream/logical_dns_cluster.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ LogicalDnsCluster::LogicalDnsCluster(
const envoy::config::cluster::v3::Cluster& cluster, Runtime::Loader& runtime,
Network::DnsResolverSharedPtr dns_resolver,
Server::Configuration::TransportSocketFactoryContextImpl& factory_context,
Stats::ScopePtr&& stats_scope, bool added_via_api)
Stats::ScopeSharedPtr&& stats_scope, bool added_via_api)
: ClusterImplBase(cluster, runtime, factory_context, std::move(stats_scope), added_via_api,
factory_context.mainThreadDispatcher().timeSource()),
dns_resolver_(dns_resolver),
Expand Down Expand Up @@ -182,7 +182,7 @@ std::pair<ClusterImplBaseSharedPtr, ThreadAwareLoadBalancerPtr>
LogicalDnsClusterFactory::createClusterImpl(
const envoy::config::cluster::v3::Cluster& cluster, ClusterFactoryContext& context,
Server::Configuration::TransportSocketFactoryContextImpl& socket_factory_context,
Stats::ScopePtr&& stats_scope) {
Stats::ScopeSharedPtr&& stats_scope) {
auto selected_dns_resolver = selectDnsResolver(cluster, context);

return std::make_pair(std::make_shared<LogicalDnsCluster>(
Expand Down
4 changes: 2 additions & 2 deletions source/common/upstream/logical_dns_cluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class LogicalDnsCluster : public ClusterImplBase {
LogicalDnsCluster(const envoy::config::cluster::v3::Cluster& cluster, Runtime::Loader& runtime,
Network::DnsResolverSharedPtr dns_resolver,
Server::Configuration::TransportSocketFactoryContextImpl& factory_context,
Stats::ScopePtr&& stats_scope, bool added_via_api);
Stats::ScopeSharedPtr&& stats_scope, bool added_via_api);

~LogicalDnsCluster() override;

Expand Down Expand Up @@ -85,7 +85,7 @@ class LogicalDnsClusterFactory : public ClusterFactoryImplBase {
std::pair<ClusterImplBaseSharedPtr, ThreadAwareLoadBalancerPtr> createClusterImpl(
const envoy::config::cluster::v3::Cluster& cluster, ClusterFactoryContext& context,
Server::Configuration::TransportSocketFactoryContextImpl& socket_factory_context,
Stats::ScopePtr&& stats_scope) override;
Stats::ScopeSharedPtr&& stats_scope) override;
};

DECLARE_FACTORY(LogicalDnsClusterFactory);
Expand Down
2 changes: 1 addition & 1 deletion source/common/upstream/maglev_lb.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class MaglevLoadBalancer : public ThreadAwareLoadBalancerBase,

static MaglevLoadBalancerStats generateStats(Stats::Scope& scope);

Stats::ScopePtr scope_;
Stats::ScopeSharedPtr scope_;
MaglevLoadBalancerStats stats_;
const uint64_t table_size_;
const bool use_hostname_for_hashing_;
Expand Down
2 changes: 1 addition & 1 deletion source/common/upstream/od_cds_api_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class OdCdsApiImpl : public OdCdsApi,
CdsApiHelper helper_;
ClusterManager& cm_;
MissingClusterNotifier& notifier_;
Stats::ScopePtr scope_;
Stats::ScopeSharedPtr scope_;
StartStatus status_;
absl::flat_hash_set<std::string> awaiting_names_;
Config::SubscriptionPtr subscription_;
Expand Down
4 changes: 2 additions & 2 deletions source/common/upstream/original_dst_cluster.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ OriginalDstCluster::LoadBalancer::requestOverrideHost(LoadBalancerContext* conte
OriginalDstCluster::OriginalDstCluster(
const envoy::config::cluster::v3::Cluster& config, Runtime::Loader& runtime,
Server::Configuration::TransportSocketFactoryContextImpl& factory_context,
Stats::ScopePtr&& stats_scope, bool added_via_api)
Stats::ScopeSharedPtr&& stats_scope, bool added_via_api)
: ClusterImplBase(config, runtime, factory_context, std::move(stats_scope), added_via_api,
factory_context.mainThreadDispatcher().timeSource()),
dispatcher_(factory_context.mainThreadDispatcher()),
Expand Down Expand Up @@ -194,7 +194,7 @@ std::pair<ClusterImplBaseSharedPtr, ThreadAwareLoadBalancerPtr>
OriginalDstClusterFactory::createClusterImpl(
const envoy::config::cluster::v3::Cluster& cluster, ClusterFactoryContext& context,
Server::Configuration::TransportSocketFactoryContextImpl& socket_factory_context,
Stats::ScopePtr&& stats_scope) {
Stats::ScopeSharedPtr&& stats_scope) {
if (cluster.lb_policy() != envoy::config::cluster::v3::Cluster::CLUSTER_PROVIDED) {
throw EnvoyException(
fmt::format("cluster: LB policy {} is not valid for Cluster type {}. Only "
Expand Down
4 changes: 2 additions & 2 deletions source/common/upstream/original_dst_cluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class OriginalDstCluster : public ClusterImplBase {
public:
OriginalDstCluster(const envoy::config::cluster::v3::Cluster& config, Runtime::Loader& runtime,
Server::Configuration::TransportSocketFactoryContextImpl& factory_context,
Stats::ScopePtr&& stats_scope, bool added_via_api);
Stats::ScopeSharedPtr&& stats_scope, bool added_via_api);

// Upstream::Cluster
InitializePhase initializePhase() const override { return InitializePhase::Primary; }
Expand Down Expand Up @@ -139,7 +139,7 @@ class OriginalDstClusterFactory : public ClusterFactoryImplBase {
std::pair<ClusterImplBaseSharedPtr, ThreadAwareLoadBalancerPtr> createClusterImpl(
const envoy::config::cluster::v3::Cluster& cluster, ClusterFactoryContext& context,
Server::Configuration::TransportSocketFactoryContextImpl& socket_factory_context,
Stats::ScopePtr&& stats_scope) override;
Stats::ScopeSharedPtr&& stats_scope) override;
};

} // namespace Upstream
Expand Down
2 changes: 1 addition & 1 deletion source/common/upstream/ring_hash_lb.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class RingHashLoadBalancer : public ThreadAwareLoadBalancerBase,

static RingHashLoadBalancerStats generateStats(Stats::Scope& scope);

Stats::ScopePtr scope_;
Stats::ScopeSharedPtr scope_;
RingHashLoadBalancerStats stats_;

static const uint64_t DefaultMinRingSize = 1024;
Expand Down
4 changes: 2 additions & 2 deletions source/common/upstream/static_cluster.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Upstream {
StaticClusterImpl::StaticClusterImpl(
const envoy::config::cluster::v3::Cluster& cluster, Runtime::Loader& runtime,
Server::Configuration::TransportSocketFactoryContextImpl& factory_context,
Stats::ScopePtr&& stats_scope, bool added_via_api)
Stats::ScopeSharedPtr&& stats_scope, bool added_via_api)
: ClusterImplBase(cluster, runtime, factory_context, std::move(stats_scope), added_via_api,
factory_context.mainThreadDispatcher().timeSource()),
priority_state_manager_(
Expand Down Expand Up @@ -65,7 +65,7 @@ std::pair<ClusterImplBaseSharedPtr, ThreadAwareLoadBalancerPtr>
StaticClusterFactory::createClusterImpl(
const envoy::config::cluster::v3::Cluster& cluster, ClusterFactoryContext& context,
Server::Configuration::TransportSocketFactoryContextImpl& socket_factory_context,
Stats::ScopePtr&& stats_scope) {
Stats::ScopeSharedPtr&& stats_scope) {
return std::make_pair(
std::make_shared<StaticClusterImpl>(cluster, context.runtime(), socket_factory_context,
std::move(stats_scope), context.addedViaApi()),
Expand Down
4 changes: 2 additions & 2 deletions source/common/upstream/static_cluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class StaticClusterImpl : public ClusterImplBase {
public:
StaticClusterImpl(const envoy::config::cluster::v3::Cluster& cluster, Runtime::Loader& runtime,
Server::Configuration::TransportSocketFactoryContextImpl& factory_context,
Stats::ScopePtr&& stats_scope, bool added_via_api);
Stats::ScopeSharedPtr&& stats_scope, bool added_via_api);

// Upstream::Cluster
InitializePhase initializePhase() const override { return InitializePhase::Primary; }
Expand All @@ -40,7 +40,7 @@ class StaticClusterFactory : public ClusterFactoryImplBase {
std::pair<ClusterImplBaseSharedPtr, ThreadAwareLoadBalancerPtr> createClusterImpl(
const envoy::config::cluster::v3::Cluster& cluster, ClusterFactoryContext& context,
Server::Configuration::TransportSocketFactoryContextImpl& socket_factory_context,
Stats::ScopePtr&& stats_scope) override;
Stats::ScopeSharedPtr&& stats_scope) override;
};

DECLARE_FACTORY(StaticClusterFactory);
Expand Down
4 changes: 2 additions & 2 deletions source/common/upstream/strict_dns_cluster.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ StrictDnsClusterImpl::StrictDnsClusterImpl(
const envoy::config::cluster::v3::Cluster& cluster, Runtime::Loader& runtime,
Network::DnsResolverSharedPtr dns_resolver,
Server::Configuration::TransportSocketFactoryContextImpl& factory_context,
Stats::ScopePtr&& stats_scope, bool added_via_api)
Stats::ScopeSharedPtr&& stats_scope, bool added_via_api)
: BaseDynamicClusterImpl(cluster, runtime, factory_context, std::move(stats_scope),
added_via_api, factory_context.mainThreadDispatcher().timeSource()),
load_assignment_(cluster.load_assignment()), local_info_(factory_context.localInfo()),
Expand Down Expand Up @@ -198,7 +198,7 @@ std::pair<ClusterImplBaseSharedPtr, ThreadAwareLoadBalancerPtr>
StrictDnsClusterFactory::createClusterImpl(
const envoy::config::cluster::v3::Cluster& cluster, ClusterFactoryContext& context,
Server::Configuration::TransportSocketFactoryContextImpl& socket_factory_context,
Stats::ScopePtr&& stats_scope) {
Stats::ScopeSharedPtr&& stats_scope) {
auto selected_dns_resolver = selectDnsResolver(cluster, context);

return std::make_pair(std::make_shared<StrictDnsClusterImpl>(
Expand Down
4 changes: 2 additions & 2 deletions source/common/upstream/strict_dns_cluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class StrictDnsClusterImpl : public BaseDynamicClusterImpl {
StrictDnsClusterImpl(const envoy::config::cluster::v3::Cluster& cluster, Runtime::Loader& runtime,
Network::DnsResolverSharedPtr dns_resolver,
Server::Configuration::TransportSocketFactoryContextImpl& factory_context,
Stats::ScopePtr&& stats_scope, bool added_via_api);
Stats::ScopeSharedPtr&& stats_scope, bool added_via_api);

// Upstream::Cluster
InitializePhase initializePhase() const override { return InitializePhase::Primary; }
Expand Down Expand Up @@ -83,7 +83,7 @@ class StrictDnsClusterFactory : public ClusterFactoryImplBase {
std::pair<ClusterImplBaseSharedPtr, ThreadAwareLoadBalancerPtr> createClusterImpl(
const envoy::config::cluster::v3::Cluster& cluster, ClusterFactoryContext& context,
Server::Configuration::TransportSocketFactoryContextImpl& socket_factory_context,
Stats::ScopePtr&& stats_scope) override;
Stats::ScopeSharedPtr&& stats_scope) override;
};

} // namespace Upstream
Expand Down
6 changes: 3 additions & 3 deletions source/common/upstream/upstream_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -787,8 +787,8 @@ createOptions(const envoy::config::cluster::v3::Cluster& config,
ClusterInfoImpl::ClusterInfoImpl(
const envoy::config::cluster::v3::Cluster& config,
const envoy::config::core::v3::BindConfig& bind_config, Runtime::Loader& runtime,
TransportSocketMatcherPtr&& socket_matcher, Stats::ScopePtr&& stats_scope, bool added_via_api,
Server::Configuration::TransportSocketFactoryContext& factory_context)
TransportSocketMatcherPtr&& socket_matcher, Stats::ScopeSharedPtr&& stats_scope,
bool added_via_api, Server::Configuration::TransportSocketFactoryContext& factory_context)
: runtime_(runtime), name_(config.name()),
observability_name_(PROTOBUF_GET_STRING_OR_DEFAULT(config, alt_stat_name, name_)),
type_(config.type()),
Expand Down Expand Up @@ -1067,7 +1067,7 @@ ClusterInfoImpl::upstreamHttpProtocol(absl::optional<Http::Protocol> downstream_
ClusterImplBase::ClusterImplBase(
const envoy::config::cluster::v3::Cluster& cluster, Runtime::Loader& runtime,
Server::Configuration::TransportSocketFactoryContextImpl& factory_context,
Stats::ScopePtr&& stats_scope, bool added_via_api, TimeSource& time_source)
Stats::ScopeSharedPtr&& stats_scope, bool added_via_api, TimeSource& time_source)
: init_manager_(fmt::format("Cluster {}", cluster.name())),
init_watcher_("ClusterImplBase", [this]() { onInitDone(); }), runtime_(runtime),
wait_for_warm_on_init_(PROTOBUF_GET_WRAPPED_OR_DEFAULT(cluster, wait_for_warm_on_init, true)),
Expand Down
6 changes: 3 additions & 3 deletions source/common/upstream/upstream_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ class ClusterInfoImpl : public ClusterInfo,
Envoy::Extensions::Upstreams::Http::ProtocolOptionsConfigImpl;
ClusterInfoImpl(const envoy::config::cluster::v3::Cluster& config,
const envoy::config::core::v3::BindConfig& bind_config, Runtime::Loader& runtime,
TransportSocketMatcherPtr&& socket_matcher, Stats::ScopePtr&& stats_scope,
TransportSocketMatcherPtr&& socket_matcher, Stats::ScopeSharedPtr&& stats_scope,
bool added_via_api, Server::Configuration::TransportSocketFactoryContext&);

static ClusterStats generateStats(Stats::Scope& scope,
Expand Down Expand Up @@ -804,7 +804,7 @@ class ClusterInfoImpl : public ClusterInfo,
const float peekahead_ratio_;
const uint32_t per_connection_buffer_limit_bytes_;
TransportSocketMatcherPtr socket_matcher_;
Stats::ScopePtr stats_scope_;
Stats::ScopeSharedPtr stats_scope_;
mutable ClusterStats stats_;
Stats::IsolatedStoreImpl load_report_stats_store_;
mutable ClusterLoadReportStats load_report_stats_;
Expand Down Expand Up @@ -917,7 +917,7 @@ class ClusterImplBase : public Cluster, protected Logger::Loggable<Logger::Id::u
protected:
ClusterImplBase(const envoy::config::cluster::v3::Cluster& cluster, Runtime::Loader& runtime,
Server::Configuration::TransportSocketFactoryContextImpl& factory_context,
Stats::ScopePtr&& stats_scope, bool added_via_api, TimeSource& time_source);
Stats::ScopeSharedPtr&& stats_scope, bool added_via_api, TimeSource& time_source);

/**
* Overridden by every concrete cluster. The cluster should do whatever pre-init is needed. E.g.,
Expand Down
2 changes: 1 addition & 1 deletion test/common/upstream/cluster_factory_impl_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class TestStaticClusterFactory : public Event::TestUsingSimulatedTime,
std::pair<ClusterImplBaseSharedPtr, ThreadAwareLoadBalancerPtr> createClusterImpl(
const envoy::config::cluster::v3::Cluster& cluster, ClusterFactoryContext& context,
Server::Configuration::TransportSocketFactoryContextImpl& socket_factory_context,
Stats::ScopePtr&& stats_scope) override {
Stats::ScopeSharedPtr&& stats_scope) override {
return std::make_pair(std::make_shared<CustomStaticCluster>(
cluster, context.runtime(), socket_factory_context,
std::move(stats_scope), context.addedViaApi(), 1, "127.0.0.1", 80),
Expand Down
Loading