feat(trace): implement span start/end metrics#4880
feat(trace): implement span start/end metrics#4880anuraaga wants to merge 13 commits intoopen-telemetry:mainfrom
Conversation
|
Hmm - this change may be hard since many contrib tests seem to verify metric count itself, not just the metrics from the instrumentation. Any ideas how to proceed? |
Assuming most of the instrumentations are using UPDATE: I see also some are reading directly from a MetricReader so that should also require local filtering or move to TestBase |
|
Thanks for the hint on TestBase @xrmx - it seems to fix a (very ;) ) few of the tests. I'll take the failures here to find the points we need to update in contrib |
|
PRs for contrib are out |
|
Thanks @xrmx I didn't realize test util would be usable without a release - I have sent open-telemetry/opentelemetry-python-contrib#4150 to pass scope explicitly for these failing tests |
…y-python into spanstartmetrics
|
@xrmx I found I had missed a few spots in contrib behind some flaky CI failures and sent open-telemetry/opentelemetry-python-contrib#4165 This time I verified this PR too by temporarily pointing CI at that PR and it was green so should have caught everything this time |
Description
I am helping to implement SDK internal metrics
https://opentelemetry.io/docs/specs/semconv/otel/sdk-metrics/
I have started with the most basic of them, started and ended spans. This sets up some test infrastructure as well and will be good to confirm before implementing more.
For reference, similar change in
Java: open-telemetry/opentelemetry-java#7895
JS: open-telemetry/opentelemetry-js#6213
/cc @xrmx to help with review
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Does This PR Require a Contrib Repo Change?
Checklist: