-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Instrument obsreport.Processor #6607
Instrument obsreport.Processor #6607
Conversation
Codecov ReportBase: 91.07% // Head: 91.21% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #6607 +/- ##
==========================================
+ Coverage 91.07% 91.21% +0.14%
==========================================
Files 242 244 +2
Lines 14054 14165 +111
==========================================
+ Hits 12800 12921 +121
+ Misses 1004 995 -9
+ Partials 250 249 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
.chloggen/obsreport-processor.yaml
Outdated
# One or more tracking issues or pull requests related to the change | ||
issues: [6607] | ||
|
||
# (Optional) One or more lines of additional information to render under the primary note. |
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.
Can you remove this if it's unused?
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.
Thanks for the review! Removed.
obsreport/obsreport_processor.go
Outdated
return newProcessor(cfg, featuregate.GetRegistry()) | ||
} | ||
|
||
// Deprecated: [v0.65.0] use NewProcessor. |
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.
This PR will probably land after we release 0.66.0 (happening now), so, this needs to be updated.
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.
Thanks for pointing this out! Removed this deprecated function now.
@paivagustavo, can you review this one as the author of the PR that this one is using as reference? |
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.
LGTM! Thanks @moh-osman3, I've added one small note regarding consistency with other otel instrumentations.
Sorry for taking too long, I was away in vacation :)
* Instrument obsreport.Processor * add processor promchecker tests * add chloggen * run make genpdata and fix linter errors * address review feedback and retest * pass cfg into createOtelMetrics
* Instrument obsreport.Processor * add processor promchecker tests * add chloggen * run make genpdata and fix linter errors * address review feedback and retest * pass cfg into createOtelMetrics
* Instrument obsreport.Processor * add processor promchecker tests * add chloggen * run make genpdata and fix linter errors * address review feedback and retest * pass cfg into createOtelMetrics
* Instrument obsreport.Processor * add processor promchecker tests * add chloggen * run make genpdata and fix linter errors * address review feedback and retest * pass cfg into createOtelMetrics
* Instrument obsreport.Processor * add processor promchecker tests * add chloggen * run make genpdata and fix linter errors * address review feedback and retest * pass cfg into createOtelMetrics
* Instrument obsreport.Processor * add processor promchecker tests * add chloggen * run make genpdata and fix linter errors * address review feedback and retest * pass cfg into createOtelMetrics
…and] to collector package (#6608) * Instrument obsreport.Processor (#6607) * Instrument obsreport.Processor * add processor promchecker tests * add chloggen * run make genpdata and fix linter errors * address review feedback and retest * pass cfg into createOtelMetrics * Update otelcol/moved.go Co-authored-by: Alex Boten <alex@boten.ca> * Update service/collector.go Co-authored-by: Alex Boten <alex@boten.ca> Co-authored-by: Moh Osman <59479562+moh-osman3@users.noreply.github.com> Co-authored-by: Alex Boten <alex@boten.ca>
* Instrument obsreport.Processor * add processor promchecker tests * add chloggen * run make genpdata and fix linter errors * address review feedback and retest * pass cfg into createOtelMetrics
…and] to collector package (open-telemetry#6608) * Instrument obsreport.Processor (open-telemetry#6607) * Instrument obsreport.Processor * add processor promchecker tests * add chloggen * run make genpdata and fix linter errors * address review feedback and retest * pass cfg into createOtelMetrics * Update otelcol/moved.go Co-authored-by: Alex Boten <alex@boten.ca> * Update service/collector.go Co-authored-by: Alex Boten <alex@boten.ca> Co-authored-by: Moh Osman <59479562+moh-osman3@users.noreply.github.com> Co-authored-by: Alex Boten <alex@boten.ca>
* Instrument obsreport.Processor * add processor promchecker tests * add chloggen * run make genpdata and fix linter errors * address review feedback and retest * pass cfg into createOtelMetrics
…and] to collector package (open-telemetry#6608) * Instrument obsreport.Processor (open-telemetry#6607) * Instrument obsreport.Processor * add processor promchecker tests * add chloggen * run make genpdata and fix linter errors * address review feedback and retest * pass cfg into createOtelMetrics * Update otelcol/moved.go Co-authored-by: Alex Boten <alex@boten.ca> * Update service/collector.go Co-authored-by: Alex Boten <alex@boten.ca> Co-authored-by: Moh Osman <59479562+moh-osman3@users.noreply.github.com> Co-authored-by: Alex Boten <alex@boten.ca>
Description:
This PR instruments obsreport.Processor with otel go. This is a followup PR that is based on similar changes made for obsreport.Receiver: #6222
Link to tracking Issue: Part of #816
Testing:
Ran contrib collector with memory_limiter processor and prometheusreceiver + sent traces from demo client and confirmed that new metrics show up. Tested both with feature gate disabled and enabled.
From output of $ curl localhost:8888/metrics