pubsub

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 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).

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.

Directories

Path Synopsis
Package pubsub provides helpers for configuring PubSub clients with OpenTelemetry tracing (for both producers and consumers).
Package pubsub provides helpers for configuring PubSub clients with OpenTelemetry tracing (for both producers and consumers).

Jump to

Keyboard shortcuts

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