Skip to content

tracer: fix telemetry metrics to align with spec#2049

Merged
katiehockman merged 6 commits into
mainfrom
katie.hockman/fix-telemetry-metrics-naming
Jun 15, 2023
Merged

tracer: fix telemetry metrics to align with spec#2049
katiehockman merged 6 commits into
mainfrom
katie.hockman/fix-telemetry-metrics-naming

Conversation

@katiehockman

@katiehockman katiehockman commented Jun 15, 2023

Copy link
Copy Markdown
Contributor

What does this PR do?

Changes the metrics otel.spans_created and tracer_init_time to meet the telemetry naming specification.

  • otel.spans_created changes to spans_created with otel as a tag instead
  • tracer_init_time changes to init_time, and moves to a new "general" namespace

Motivation

This is causing internal errors and triggering issues with monitors.

Describe how to test/QA your changes

Reviewer's Checklist

  • Changed code has unit tests for its functionality.
  • If this interacts with the agent in a new way, a system test has been added.

@katiehockman
katiehockman marked this pull request as ready for review June 15, 2023 19:08
@katiehockman
katiehockman requested a review from a team as a code owner June 15, 2023 19:08
@katiehockman
katiehockman requested a review from a team June 15, 2023 19:08
@katiehockman
katiehockman requested a review from aditim16 June 15, 2023 19:23
Comment thread ddtrace/opentelemetry/tracer.go Outdated
@pr-commenter

pr-commenter Bot commented Jun 15, 2023

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2023-06-15 20:21:51

Comparing candidate commit de57c3e in PR branch katie.hockman/fix-telemetry-metrics-naming with baseline commit 7af5011 in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 24 metrics, 0 unstable metrics.

@katiehockman
katiehockman requested a review from ajgajg1134 June 15, 2023 19:48
ajgajg1134
ajgajg1134 previously approved these changes Jun 15, 2023

@ajgajg1134 ajgajg1134 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good!

@katiehockman
katiehockman merged commit b34590b into main Jun 15, 2023
@katiehockman
katiehockman deleted the katie.hockman/fix-telemetry-metrics-naming branch June 15, 2023 21:50
katiehockman added a commit that referenced this pull request Jun 15, 2023
Changes the metrics otel.spans_created and tracer_init_time to meet the telemetry naming specification.
- otel.spans_created changes to spans_created with otel as a tag instead
- tracer_init_time changes to init_time, and moves to a new "general" namespace
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.

3 participants