Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ release.

### Traces

- Deprecate Record Exception API in favor of using Logs.
([#4825](https://github.com/open-telemetry/opentelemetry-specification/pull/4825))

### Metrics

- Stabilize part of `Enabled` SDK for synchronous instruments.
Expand Down
2 changes: 2 additions & 0 deletions specification/trace/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,8 @@ in the scope of this requirement and recommendation.

#### Record Exception

**Status**: [Deprecated](../document-status.md)

To facilitate recording an exception languages SHOULD provide a
`RecordException` method if the language uses exceptions.
This is a specialized variant of [`AddEvent`](#add-events),
Expand Down
6 changes: 3 additions & 3 deletions specification/trace/exceptions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Exceptions

**Status**: [Stable](../document-status.md), Unless otherwise specified.
**Status**: [Deprecated](../document-status.md), follow the
[semantic conventions for recording exceptions](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/recording-errors.md#recording-exceptions)
instead.

This document defines how to record exceptions and their attributes.

Expand All @@ -19,8 +21,6 @@ to be set to ERROR.

The name of the event MUST be `"exception"`.

**Status**: [Development](../document-status.md) - Refer to the [Recording Errors](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/recording-errors.md) document for the details on how to report errors across signals.

A typical template for an auto-instrumentation implementing this semantic convention
using an [API-provided `recordException` method](api.md#record-exception)
could look like this (pseudo-Java):
Expand Down