events: remove uncaught exception example (#2066)

Co-authored-by: Liudmila Molkova <limolkova@microsoft.com>
This commit is contained in:
Robert Pająk 2025-04-09 00:53:47 +02:00 committed by GitHub
parent 0a521716ce
commit 6f19da819a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ in the data model by `LogRecord`s.
Semantically, an Event is a named occurrence at an instant in time. It signals that Semantically, an Event is a named occurrence at an instant in time. It signals that
"this thing happened at this time" and provides additional specifics about the occurrence. "this thing happened at this time" and provides additional specifics about the occurrence.
Examples of Events might include things like uncaught exceptions, button clicks, user logout, Examples of Events might include things like button clicks, user logout,
network connection severed, etc. network connection severed, etc.
In OpenTelemetry, Events are implemented as a specific type of [`LogRecord`](https://github.com/open-telemetry/opentelemetry-specification/tree/v1.43.0/specification/logs/api.md) that conforms to the conventions included here. In OpenTelemetry, Events are implemented as a specific type of [`LogRecord`](https://github.com/open-telemetry/opentelemetry-specification/tree/v1.43.0/specification/logs/api.md) that conforms to the conventions included here.
@ -50,7 +50,7 @@ Recommendations for defining events:
collection of [standard](https://github.com/open-telemetry/opentelemetry-specification/tree/v1.43.0/specification/common#attribute) collection of [standard](https://github.com/open-telemetry/opentelemetry-specification/tree/v1.43.0/specification/common#attribute)
attributes. attributes.
* Events SHOULD be generated / produced / recorded using the * Events SHOULD be generated / produced / recorded using the
[Log API](https://github.com/open-telemetry/opentelemetry-specification/tree/v1.43.0/specification/logs/api.md#emit-a-logrecord) [Logs API](https://github.com/open-telemetry/opentelemetry-specification/tree/v1.43.0/specification/logs/api.md#emit-a-logrecord)
to ensure that the event is created using the configured SDK instance. to ensure that the event is created using the configured SDK instance.
* The Emit Event API is not yet available in all OpenTelemetry SDKs. Check [spec-compliance matrix](https://github.com/open-telemetry/opentelemetry-specification/tree/v1.43.0/spec-compliance-matrix.md#logs) to see the implementation status in corresponding language. * The Emit Event API is not yet available in all OpenTelemetry SDKs. Check [spec-compliance matrix](https://github.com/open-telemetry/opentelemetry-specification/tree/v1.43.0/spec-compliance-matrix.md#logs) to see the implementation status in corresponding language.
* It's NOT RECOMMENDED to prefix the _payload_ (body) _fields_ with the `EventName` to * It's NOT RECOMMENDED to prefix the _payload_ (body) _fields_ with the `EventName` to