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

Struct pluginOption

stats/opentelemetry/csm/pluginoption.go:45–54  ·  view source on GitHub ↗

pluginOption emits CSM Labels from the environment and metadata exchange for csm channels and all servers. Do not use this directly; use newPluginOption instead.

Source from the content-addressed store, hash-verified

43//
44// Do not use this directly; use newPluginOption instead.
45type pluginOption struct {
46 // localLabels are the labels that identify the local environment a binary
47 // is run in, and will be emitted from the CSM Plugin Option.
48 localLabels map[string]string
49 // metadataExchangeLabelsEncoded are the metadata exchange labels to be sent
50 // as the value of metadata key "x-envoy-peer-metadata" in proto wire format
51 // and base 64 encoded. This gets sent out from all the servers running in
52 // this process and for csm channels.
53 metadataExchangeLabelsEncoded string
54}
55
56// newPluginOption returns a new pluginOption with local labels and metadata
57// exchange labels derived from the environment.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected