-
Notifications
You must be signed in to change notification settings - Fork 764
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
Add PrometheusTagTransformer #3312
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3312 +/- ##
==========================================
+ Coverage 86.08% 86.43% +0.34%
==========================================
Files 270 275 +5
Lines 9482 10083 +601
==========================================
+ Hits 8163 8715 +552
- Misses 1319 1368 +49
|
src/OpenTelemetry.Exporter.Prometheus/Implementation/PrometheusTagTransformer.cs
Outdated
Show resolved
Hide resolved
Assert.Matches( | ||
("^" | ||
+ "# TYPE test_counter counter\n" | ||
+ "test_counter 10 \\d+\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Attribute is dropped. Is that what we want?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel either empty string or dropped would be fine.
Anyways we'll have to stick with the spec once it becomes Stable (currently the Prometheus workgroup is still hammering out the rules).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I stuck with dropping it for now. Though I also changed it to drop empty string valued attributes as well since I suspect it makes sense to handle both of these scenarios the same.
test/OpenTelemetry.Exporter.Prometheus.Tests/PrometheusSerializerTests.cs
Show resolved
Hide resolved
test/OpenTelemetry.Exporter.Prometheus.Tests/PrometheusSerializerTests.cs
Show resolved
Hide resolved
test/OpenTelemetry.Exporter.Prometheus.Tests/PrometheusSerializerTests.cs
Show resolved
Hide resolved
src/OpenTelemetry.Exporter.Prometheus/Implementation/PrometheusTagTransformer.cs
Show resolved
Hide resolved
This PR was marked stale due to lack of activity and will be closed in 7 days. Commenting or Pushing will instruct the bot to automatically remove the label. This bot runs once per day. |
This PR was marked stale due to lack of activity and will be closed in 7 days. Commenting or Pushing will instruct the bot to automatically remove the label. This bot runs once per day. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
Went stale reopening for review. |
This PR was marked stale due to lack of activity and will be closed in 7 days. Commenting or Pushing will instruct the bot to automatically remove the label. This bot runs once per day. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
Final PR addressing both #2010 and #3229.
Put some questions in the PR. If folks know any of the answers let me know. Otherwise I'll pursue the answers next week.