Documentation ¶
Overview ¶
Package csm contains utilities for Google Cloud Service Mesh observability.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableObservability ¶
func EnableObservability(ctx context.Context, options opentelemetry.Options) func()
EnableObservability sets up CSM Observability for the binary globally.
The CSM Stats Plugin is instantiated with local labels and metadata exchange labels pulled from the environment, and emits metadata exchange labels from the peer and local labels. Context timeouts do not trigger an error, but set certain labels to "unknown".
This function is not thread safe, and should only be invoked once in main before any channels or servers are created. Returns a cleanup function to be deferred in main.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.