cloudrunner-go icon indicating copy to clipboard operation
cloudrunner-go copied to clipboard

feat(pubsub): extract trace information

Open radhus opened this issue 5 months ago • 0 comments

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 https://github.com/googleapis/google-cloud-go/pull/10827 which is included in v1.43.0.

radhus avatar Sep 05 '24 19:09 radhus