MCPcopy
hub / github.com/grpc/grpc-go / dialOptionWithCSMPluginOption

Function dialOptionWithCSMPluginOption

stats/opentelemetry/csm/observability.go:71–74  ·  view source on GitHub ↗
(options opentelemetry.Options, po otelinternal.PluginOption)

Source from the content-addressed store, hash-verified

69}
70
71func dialOptionWithCSMPluginOption(options opentelemetry.Options, po otelinternal.PluginOption) grpc.DialOption {
72 options.MetricsOptions.OptionalLabels = []string{"csm.service_name", "csm.service_namespace_name"} // Attach the two xDS Optional Labels for this component to not filter out.
73 return dialOptionSetCSM(options, po)
74}
75
76func dialOptionSetCSM(options opentelemetry.Options, po otelinternal.PluginOption) grpc.DialOption {
77 otelinternal.SetPluginOption.(func(options *opentelemetry.Options, po otelinternal.PluginOption))(&options, po)

Callers 3

EnableObservabilityFunction · 0.85

Calls 1

dialOptionSetCSMFunction · 0.85

Tested by 2