Documentation
¶
Overview ¶
Package pubsub provides helpers for configuring Pubsub clients with OpenTelemetry tracing (for both producers and consumers).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(ctx context.Context, projectID string, config *pubsub.ClientConfig, opts ...option.ClientOption) (*pubsub.Client, error)
NewClient initializes a new GCP PubSub client with OpenTelemetry tracing enabled.
This function creates and returns a *pubsub.Client configured to enable the OpenTelemetry feature for both publishing and subscribing to PubSub messages. When enabled, the client will automatically trace all PubSub operations using OpenTelemetry.
Returns a new *pubsub.Client with OpenTelemetry tracing configured and an error if any.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.