Skip to content

adding metrics semconv#1633

Merged
bobstrecansky merged 4 commits into
open-telemetry:mainfrom
brettmc:semconv-metrics
Jun 24, 2025
Merged

adding metrics semconv#1633
bobstrecansky merged 4 commits into
open-telemetry:mainfrom
brettmc:semconv-metrics

Conversation

@brettmc

@brettmc brettmc commented Jun 13, 2025

Copy link
Copy Markdown
Contributor

Generate some initial metrics SemConv files. I've chosen to start small, with just http and otel groups until we need more, and thought one file per group seemed neater.

Closes: #1613

@brettmc
brettmc requested a review from a team as a code owner June 13, 2025 01:48
@brettmc

brettmc commented Jun 13, 2025

Copy link
Copy Markdown
Contributor Author

When this is merged, I think we should create an issue to update our metrics generation from span and log processors to use the otel semconv attributes. They didn't exist when we first implemented.

@brettmc

brettmc commented Jun 14, 2025

Copy link
Copy Markdown
Contributor Author

Any opinions on how I've split each group into its own file?

@ChrisLightfootWild

Copy link
Copy Markdown
Contributor

Any opinions on how I've split each group into its own file?

I think I prefer it this way 👍

I'm not entirely sure on the units of measure though, although I see they are coming directly from the schemas - so maybe not much we could do with them. e.g. Unit: {connection}

@Nevay

Nevay commented Jun 15, 2025

Copy link
Copy Markdown
Contributor

Any opinions on how I've split each group into its own file?

The spec suggests a similar structure:

├── SchemaUrls.code
├── attributes
│ ├── ClientAttributes.code
│ ├── HttpAttributes.code
│ └── ...
├── metrics
│ ├── HttpMetrics.code
│ └── ...
└── events
└── ...

@codecov

codecov Bot commented Jun 16, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.64%. Comparing base (5451d57) to head (a31ee11).
Report is 5 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1633      +/-   ##
============================================
- Coverage     68.68%   68.64%   -0.05%     
  Complexity     2854     2854              
============================================
  Files           425      425              
  Lines          8699     8699              
============================================
- Hits           5975     5971       -4     
- Misses         2724     2728       +4     
Flag Coverage Δ
8.5 68.64% <ø> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 5 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5451d57...a31ee11. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bobstrecansky
bobstrecansky merged commit 33715fd into open-telemetry:main Jun 24, 2025
4 of 9 checks passed
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.

[semconv] Add metrics to PHP Semantic Conventions generation

4 participants