Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(pubsub): extract trace information #700

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

radhus
Copy link
Member

@radhus radhus commented Sep 5, 2024

Pass a context that contains trace information extracted from the incoming message, allowing traces to span from publishers over to subscribers.

In order for publishers to include tracing information, the pubsub client should be created with:

client, err := pubsub.NewClientWithConfig(
        ctx,
        cloudrunner.Runtime(ctx).ProjectID,
        &pubsub.ClientConfig{
                EnableOpenTelemetryTracing: true,
        },

Depends on googleapis/google-cloud-go#10827 which is included in v1.43.0.

Pass a context that contains trace information extracted from the
incoming message, allowing traces to span from publishers over to
subscribers.

In order for publishers to include tracing information, the pubsub
client should be created with:
```go
client, err := pubsub.NewClientWithConfig(
	ctx,
	cloudrunner.Runtime(ctx).ProjectID,
	&pubsub.ClientConfig{
		EnableOpenTelemetryTracing: true,
	},
```

Depends on googleapis/google-cloud-go#10827
which is included in
[v1.43.0](https://github.com/googleapis/google-cloud-go/releases/tag/pubsub%2Fv1.43.0).
@radhus radhus marked this pull request as ready for review September 10, 2024 06:24
@radhus radhus requested a review from a team as a code owner September 10, 2024 06:24
@radhus radhus requested a review from thall September 10, 2024 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant