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 http handlers to mark their span as golden [FND-44] #1021

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

danmux
Copy link
Contributor

@danmux danmux commented Oct 26, 2024

Add the ability to retroactively replicate a span as a golden span.

This is needed in things like the gin middleware where the span is automatically created in the middleware - but we only want selected routes to be golden.

The variadic options stle API is a bit verbose, but avoids a break to the API
and is generally only going to be used in library code, so should have minimal
impact on day to day use of spans.
The variadic options stle API is a bit verbose, but avoids a break to the API
and is generally only going to be used in library code, so should have minimal
impact on day to day use of spans.
@danmux danmux force-pushed the dm/golden-routes branch 2 times, most recently from 074c747 to 35da0ed Compare October 27, 2024 16:15
Base automatically changed from dm/otel-span-kind to main October 28, 2024 12:49
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