Skip to content

feat(sdk): add otel.sdk.log.created self-observability metric#3530

Open
cijothomas wants to merge 2 commits into
open-telemetry:mainfrom
cijothomas:feat/sdk-log-created-metric
Open

feat(sdk): add otel.sdk.log.created self-observability metric#3530
cijothomas wants to merge 2 commits into
open-telemetry:mainfrom
cijothomas:feat/sdk-log-created-metric

Conversation

@cijothomas

Copy link
Copy Markdown
Member

Changes

Adds the otel.sdk.log.created self-observability metric to the Logs SDK.
A u64 counter is bound once per SdkLogger (no attributes) and incremented
on every emit call that passes the telemetry-suppression check.

Merge requirement checklist

Notes

@cijothomas
cijothomas requested a review from a team as a code owner June 3, 2026 03:10
@codecov

codecov Bot commented Jun 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 29.54545% with 31 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.1%. Comparing base (0e78170) to head (8fb6833).

Files with missing lines Patch % Lines
opentelemetry-sdk/src/logs/logger.rs 29.5% 31 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            main   #3530     +/-   ##
=======================================
- Coverage   83.2%   83.1%   -0.1%     
=======================================
  Files        130     130             
  Lines      28246   28289     +43     
=======================================
+ Hits       23506   23517     +11     
- Misses      4740    4772     +32     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

Comment thread opentelemetry-sdk/src/logs/logger.rs
@cijothomas

Copy link
Copy Markdown
Member Author

Need to make some tweaks before merging.

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

Thank you for your contribution! This PR has been automatically marked as stale because it has not had activity in the last 14 days. This may be due to a delay in review on our side or awaiting a response from you; either is fine, and we appreciate your patience.

It will be closed in 14 days if no further activity occurs. Pushing a new commit or leaving a comment will remove the stale label and keep the PR open.

@github-actions github-actions Bot added the Stale label Jul 7, 2026
@github-actions

Copy link
Copy Markdown

Closed as inactive. Thank you again for the contribution; please feel free to reopen this PR (or open a new one) if you'd like to continue the work.

@github-actions github-actions Bot closed this Jul 22, 2026
@github-project-automation github-project-automation Bot moved this from In progress to Done in OTel Clients Self Observability Jul 22, 2026
Increments a u64 counter on every SdkLogger::emit call that passes the
telemetry-suppression check. Bound once per SdkLogger with no attributes,
per the OpenTelemetry semantic conventions for SDK metrics.

Gated behind the experimental_metrics_bound_instruments Cargo feature for
consistency with the existing otel.sdk.processor.log.processed metric;
the semconv for otel.sdk.log.created is still development.
@cijothomas cijothomas reopened this Jul 22, 2026
@cijothomas
cijothomas force-pushed the feat/sdk-log-created-metric branch from 48ded96 to cff45b8 Compare July 22, 2026 08:30
@cijothomas
cijothomas force-pushed the feat/sdk-log-created-metric branch from cff45b8 to 8fb6833 Compare July 22, 2026 08:41
@cijothomas
cijothomas requested review from TommyCpp and lalitb July 22, 2026 08:44
@github-actions github-actions Bot removed the Stale label Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants