Title: Publisher does not automatically propagate otel baggage information when publishing event · Issue #2242 · googleapis/java-pubsub · GitHub
Open Graph Title: Publisher does not automatically propagate otel baggage information when publishing event · Issue #2242 · googleapis/java-pubsub
X Title: Publisher does not automatically propagate otel baggage information when publishing event · Issue #2242 · googleapis/java-pubsub
Description: Is your feature request related to a problem? Please describe. In version 1.133.0, java pubsub client already use OpenTelemetry. But after testing it, it does not automatically propagate baggage information. It only propagates traceparen...
Open Graph Description: Is your feature request related to a problem? Please describe. In version 1.133.0, java pubsub client already use OpenTelemetry. But after testing it, it does not automatically propagate baggage in...
X Description: Is your feature request related to a problem? Please describe. In version 1.133.0, java pubsub client already use OpenTelemetry. But after testing it, it does not automatically propagate baggage in...
Opengraph URL: https://github.com/googleapis/java-pubsub/issues/2242
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Publisher does not automatically propagate otel baggage information when publishing event","articleBody":"**Is your feature request related to a problem? Please describe.**\r\nIn version 1.133.0, java pubsub client already use OpenTelemetry. But after testing it, it does not automatically propagate `baggage` information. It only propagates `traceparent` information.\r\n\r\n**Describe the solution you'd like**\r\nAutomatically propagate baggage information. \r\n\r\n**Describe alternatives you've considered**\r\nAutomatically propagate context using registered propagators in open telemetry.\r\n\r\n**Additional context**\r\nSimilar to how kafka auto instrumentation works, they use `openTelemetry.getPropagators().getTextMapPropagator()` to get the propagators and inject it using `propagator().inject(context, record.headers(), SETTER);`. \r\nhttps://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/e2dd703a8a0d47ed12d3beca79dc9740822da4f1/instrumentation/kafka/kafka-clients/kafka-clients-2.6/library/src/main/java/io/opentelemetry/instrumentation/kafkaclients/v2_6/KafkaTelemetry.java#L226","author":{"url":"https://github.com/mroeha","@type":"Person","name":"mroeha"},"datePublished":"2024-10-24T03:43:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2242/java-pubsub/issues/2242"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:045845ed-3fc0-3279-7c8b-c191105b1f22 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BDEC:1F4D74:1D83981:25489C4:699189AF |
| html-safe-nonce | b7e76e69a245c4f543834150bc9656eec136cc64a7201361b026895c3488ae7e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREVDOjFGNEQ3NDoxRDgzOTgxOjI1NDg5QzQ6Njk5MTg5QUYiLCJ2aXNpdG9yX2lkIjoiNzM1NTI5MDE4MjMyNzgzMDk1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5b56a5f735724573a39dfb046b923fda29d6d40f34443a74e2055e1118164d62 |
| hovercard-subject-tag | issue:2610322976 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/java-pubsub/2242/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ee598cb468b3949e5ebb0d5f97db9a949db601deffe310f2c1ce9c0e95c40449/googleapis/java-pubsub/issues/2242 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ee598cb468b3949e5ebb0d5f97db9a949db601deffe310f2c1ce9c0e95c40449/googleapis/java-pubsub/issues/2242 |
| og:image:alt | Is your feature request related to a problem? Please describe. In version 1.133.0, java pubsub client already use OpenTelemetry. But after testing it, it does not automatically propagate baggage in... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mroeha |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/java-pubsub git https://github.com/googleapis/java-pubsub.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 203461480 |
| octolytics-dimension-repository_nwo | googleapis/java-pubsub |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 203461480 |
| octolytics-dimension-repository_network_root_nwo | googleapis/java-pubsub |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width