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

Improve OpenTelemetry (OTLP) instrumentation #2978

Closed
1 task done
thepabloaguilar opened this issue Apr 12, 2024 · 4 comments · Fixed by #2984
Closed
1 task done

Improve OpenTelemetry (OTLP) instrumentation #2978

thepabloaguilar opened this issue Apr 12, 2024 · 4 comments · Fixed by #2984
Assignees
Labels
enhancement Created by Linear-GitHub Sync help wanted Halp

Comments

@thepabloaguilar
Copy link
Contributor

Problem

It's not a problem but we could improve the actual OpenTelemetry instrumentation!

Ideal Solution

For Tracing:

  • Sampler Ratio, to avoid unnecessary high load of spans coming out from the service a Sampler Ratio and exposing this config, the default value should be 1 (100%)
  • Allow defining propagators, the propagators has many flavors b3, jaeger, opensensus and etc. This is important so spans can be linked properly
  • Add more resource information, I think we could add more information that can help somehow the platforms which ingests those data (eg.: Datadog) linking better with other resources or even the person seeing the span. My suggestions are:

For metrics:

  • I saw Flipt expose the metrics using Prometheus AND OpenTelemetry, one difference between these two is the Prometheus lib already expose the Go runtime metrics in the other hand Otel doesn't. At least not automatically, we could add by using this package: go.opentelemetry.io/contrib/instrumentation/runtime

Search

  • I searched for other open and closed issues before opening this

Additional Context

No response

@thepabloaguilar thepabloaguilar added the enhancement Created by Linear-GitHub Sync label Apr 12, 2024
@thepabloaguilar
Copy link
Contributor Author

I also saw the attributes Flipt puts in the Span, I also would like to suggest to maybe change the keys to match the ones in here Semantic Conventions for Feature Flags in Spans, it does not have all flags that flipt uses but the other maybe can just receive the feature_flag. or flipt. prefix!

@markphelps
Copy link
Collaborator

I love all of these suggestions! ❤️ is this something you'd be willing to help with @thepabloaguilar ?

@thepabloaguilar
Copy link
Contributor Author

Yeah, I could do it!

@thepabloaguilar
Copy link
Contributor Author

I'll open another issue to address the metrics Stuff to keep this issue more concise! The thing is, we're using OpenTelemetry Metric to export to Prometheus so we need to make configurable what metrics exporter we want to enable: Prometheus or OpenTelemetry

Both could be enabled at the same time if user wants!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Created by Linear-GitHub Sync help wanted Halp
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants