open-telemetry / open-telemetry/opentelemetry-cpp

[SPEC COMPLIANCE] Logger emit log record with exception parameter

Open
#4,045 12 comments 1 reaction 0 assignees View on GitHub

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/

See spec-compliance-matrix

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.