open-telemetry / open-telemetry/opentelemetry-cpp
[SPEC COMPLIANCE] Logger emit log record with exception parameter
Open
Nobody has claimed this yet.
discuss
help wanted
spec-compliance
- Dominant language
- C++
- Stars
- 1.4k
- Forks
- 632
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 75
Description
Logs
- Logger.Emit(LogRecord) with Exception parameter
The API MAY accept the following parameter:
Exception (optional): An exception (or error) associated with the log record.
See more guidance and semantic conventions:
https://opentelemetry.io/docs/specs/semconv/exceptions/exceptions-logs/
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Logger.Emit(LogRecord) API and compare its current parameters with the linked OpenTelemetry logs specification and exception semantic conventions. Inspect the existing logger implementation and tests, then verify that an optional exception can be supplied and is covered by tests demonstrating spec compliance.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- observability-sre
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100