-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change event.name
attribute into top-level event name field
#4320
Changes from all commits
e994c1b
723c416
e9a8087
d8311a7
98b0960
a1da7c1
3e3eff3
c7cc693
78b21da
49a001b
85fdf71
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,6 +137,7 @@ The API MUST accept the following parameters: | |
- [Severity Text](./data-model.md#field-severitytext) (optional) | ||
- [Body](./data-model.md#field-body) (optional) | ||
- [Attributes](./data-model.md#field-attributes) (optional) | ||
- **Status**: [Development](../document-status.md) - [Event Name](./data-model.md#event-name) (optional) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that The hash should be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, might it be better to present this as:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll send a PR to fix! |
||
|
||
#### Enabled | ||
|
||
|
@@ -173,8 +174,7 @@ formatted as an [event](./data-model.md#events). | |
|
||
**Parameters:** | ||
|
||
* The [`Name`](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/events.md) | ||
of the Event. | ||
* [Event Name](./data-model.md#event-name) (required) | ||
trask marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* [Timestamp](./data-model.md#field-timestamp) (optional) | ||
* [Observed Timestamp](./data-model.md#field-observedtimestamp) (optional). If unspecified | ||
the implementation SHOULD set it equal to the current time. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Logs Data Model | ||
|
||
**Status**: [Stable](../document-status.md) | ||
**Status**: [Stable](../document-status.md), except where otherwise specified | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that this should be reported as:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "Stable, except where otherwise specified" seems more consistent with the rest of the spec? https://github.com/search?q=repo%3Aopen-telemetry%2Fopentelemetry-specification%20except%20where%20otherwise%20specified&type=code |
||
|
||
<details> | ||
<summary>Table of Contents</summary> | ||
|
@@ -34,6 +34,7 @@ | |
* [Field: `InstrumentationScope`](#field-instrumentationscope) | ||
* [Field: `Attributes`](#field-attributes) | ||
+ [Errors and Exceptions](#errors-and-exceptions) | ||
* [Field: `EventName`](#field-eventname) | ||
- [Example Log Records](#example-log-records) | ||
- [Example Mappings](#example-mappings) | ||
- [References](#references) | ||
|
@@ -208,6 +209,7 @@ Body |The body of the log record. | |
Resource |Describes the source of the log. | ||
InstrumentationScope|Describes the scope that emitted the log. | ||
Attributes |Additional information about the event. | ||
**Status**: [Development](../document-status.md) - EventName | Name that identifies the class / type of event. | ||
|
||
Below is the detailed description of each field. | ||
|
||
|
@@ -477,6 +479,16 @@ of the record. | |
If included, they MUST follow the OpenTelemetry | ||
[semantic conventions for exception-related attributes](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/exceptions/exceptions-logs.md). | ||
|
||
### Field: `EventName` | ||
|
||
**Status**: [Development](../document-status.md) | ||
|
||
Type: string. | ||
|
||
Description: Name that identifies the class / type of the [Event](#events). | ||
This name SHOULD uniquely identify the event structure (both attributes and body). | ||
A log record with a non-empty event name is an [Event](#events). | ||
|
||
## Example Log Records | ||
|
||
For example log records see | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like I'm late to the game, but here's some thoughts...
In .NET ILogger API we have CategoryName always and optional EventId structure (which contains Name & Id). So what goes here? EventId.Name may not be present and if it is, presumably, it is only unique the context of a CategoryName. So should this be prefixed? EventName = $"{CategoryName}.{EventName}" or do we also need something like EventNamespace defined?
Seems odd to introduce "Event" into the Log API given there is an "Event" API defined right below. Seems to invite confusion 😄 Why not just "Name" here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check out discussions at https://cloud-native.slack.com/archives/C062HUREGUV/p1733358994263159
and https://cloud-native.slack.com/archives/C062HUREGUV/p1733398117155609
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's going to map to new proto field
event_name
(open-telemetry/opentelemetry-proto#600)