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

Enable pubsub tracing #374

Merged
merged 2 commits into from
Jun 1, 2024
Merged

Conversation

tcnghia
Copy link
Collaborator

@tcnghia tcnghia commented Jun 1, 2024

Two changes:

  • use a pubsub client library version that enables trace support - this allows a header googclient-traceparent to be progapated to push subscribers. We can also populate this ourselves (by setting a message attribute), but the library also adds a couple nice spans inside to the pubsub client library
  • on handlers, overwrite traceparent by googclient-traceparent if available

This PubSub client library is at 1.37, slightly older than our current version (1.38). According to googleapis/google-cloud-go#4665 (comment) this will be launching ~soonish so we won't have to use an older version much longer. If it takes very long, we can DIY.

image

Signed-off-by: Nghia Tran <tcnghia@gmail.com>
Signed-off-by: Nghia Tran <tcnghia@gmail.com>
@tcnghia tcnghia marked this pull request as draft June 1, 2024 02:39
@tcnghia tcnghia marked this pull request as ready for review June 1, 2024 03:12
@imjasonh imjasonh merged commit c88ac09 into chainguard-dev:main Jun 1, 2024
79 checks passed
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.

2 participants