pubsub

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2025 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL