Skip to content

feat(otlp): expose export counters via logger params - #96

Merged
LimiNode merged 4 commits into
mainfrom
feat/otlp-logger-params
May 16, 2026
Merged

feat(otlp): expose export counters via logger params#96
LimiNode merged 4 commits into
mainfrom
feat/otlp-logger-params

Conversation

@LimiNode

Copy link
Copy Markdown
Owner

Summary

  • Add generic diagnostic logger params:
    • LoggerParam::DroppedLogCount
    • LoggerParam::FailedExportCount
  • Expose OtlpHttpLogger dropped-record and failed-export counters through get_string_param(), get_int_param(), and get_float_param().
  • Use saturating conversion when exposing unsigned counters through the existing int64_t param API.
  • Document OTLP diagnostics usage.

Notes

  • This PR is intentionally small and only extends the generic parameter API for existing OTLP counters.
  • No direct logging is added inside OTLP error paths, so recursive logging loops remain avoided.

Testing

Not run in this environment.

@LimiNode
LimiNode merged commit 8c84bc2 into main May 16, 2026
12 checks passed
@LimiNode
LimiNode deleted the feat/otlp-logger-params branch May 21, 2026 19:52
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.

1 participant