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

fix: allow sending otel tracing to non honeycomb backend #1219

Merged
merged 3 commits into from
Jul 3, 2024

Conversation

VinozzZ
Copy link
Contributor

@VinozzZ VinozzZ commented Jul 2, 2024

Which problem is this PR solving?

OtelTracing.APIKey is specifically for setting a honeycomb api key and header when setting up a tracer. When it's not set and OtelTracing.Enabled is set true, Refinery should still set up a tracer that can be used to send Refinery traces to non-honeycomb backend.

Short description of the changes

  • Only set APIKey headers when APIKey is not empty
  • add some basic instrumentation

@VinozzZ VinozzZ requested a review from a team as a code owner July 2, 2024 16:27
@VinozzZ VinozzZ force-pushed the yingrong.tracing_non_honeycomb branch from a6164c2 to fdb6e84 Compare July 2, 2024 16:54
@VinozzZ VinozzZ self-assigned this Jul 2, 2024
@VinozzZ VinozzZ added this to the v2.7 milestone Jul 2, 2024
@VinozzZ VinozzZ requested a review from kentquirk July 3, 2024 18:04
Copy link
Contributor

@kentquirk kentquirk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@VinozzZ VinozzZ merged commit ef992e4 into main Jul 3, 2024
3 checks passed
@VinozzZ VinozzZ deleted the yingrong.tracing_non_honeycomb branch July 3, 2024 20:30
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