Documentation
¶
Overview ¶
Package pubsub provides helpers for configuring Pubsub clients with OpenTelemetry tracing (for both producers and consumers).
Deprecated: Use github.com/FLYR-Open-Source/flyr-lib-go/monitoring/pubsub/v2 instead, which provides a functional options API for NewClient.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient
deprecated
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.
Deprecated: Use github.com/FLYR-Open-Source/flyr-lib-go/monitoring/pubsub/v2.NewClient instead.
Returns a new *pubsub.Client with OpenTelemetry tracing configured and an error if any.
Types ¶
This section is empty.