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

Allow users to decide whether to start a new OpenTelemetry trace for delayed messages #7205

Open
mauroservienti opened this issue Nov 7, 2024 · 0 comments

Comments

@mauroservienti
Copy link
Member

Describe the suggested improvement

Is your improvement related to a problem? Please describe.

Currently, NServiceBus always starts a new trace for a delayed message (#7049). Under the hood, the new trace is linked to the parent one; however, the trace appears broken if the chosen visualization tool does not support OpenTelemetry links (at the moment, only Azure AppInsights supports them). It is challenging for users to reconcile things. This decision has been made to better support sampling scenarios. Otherwise, the sample would have always been truncated when using a delayed message.

Describe the suggested solution

It would be helpful to allow users to decide whether to start a new OpenTelemetry trace for delayed messages. If a user is not interested in OpenTelemetry sampling capabilities and is using one of the many tools that don't support OpenTelemetry links, they could opt-in to not start a new trace by default.

Additional Context

No response

@mauroservienti mauroservienti changed the title Allow users to decide whether to start a new OpenTelemetry trace or delayed messages Allow users to decide whether to start a new OpenTelemetry trace for delayed messages Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant