-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[DebugExporter] Add EventName from LogRecord to output #11967
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
Merged
codeboten
merged 22 commits into
open-telemetry:main
from
cijothomas:cijothomas/eventname-debug-exporter
Jan 9, 2025
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
6d41b39
[DebugExporter] Add EventName to output
cijothomas ab5ad97
Merge branch 'main' into cijothomas/eventname-debug-exporter
cijothomas 9708b55
Update CONTRIBUTING.md
cijothomas f7b0a95
Update .chloggen/add-eventname-debug-exporter.yaml
cijothomas 47a26f5
Merge branch 'main' into cijothomas/eventname-debug-exporter
cijothomas 5e55e8f
fix tests
cijothomas e6f71df
emit eventname only if not empty
cijothomas c7cfa25
Merge branch 'main' into cijothomas/eventname-debug-exporter
cijothomas 059cdcf
Merge branch 'main' into cijothomas/eventname-debug-exporter
codeboten 553e8db
add test
cijothomas 65f13b1
Merge branch 'main' into cijothomas/eventname-debug-exporter
cijothomas e633aec
Merge branch 'main' into cijothomas/eventname-debug-exporter
cijothomas 3a27ff1
Merge branch 'main' into cijothomas/eventname-debug-exporter
cijothomas 653f703
Merge branch 'main' into cijothomas/eventname-debug-exporter
cijothomas ec90084
Merge branch 'main' into cijothomas/eventname-debug-exporter
cijothomas ee6d146
Merge branch 'main' into cijothomas/eventname-debug-exporter
cijothomas ac45991
Merge branch 'main' into cijothomas/eventname-debug-exporter
cijothomas f0f0c47
Merge branch 'main' into cijothomas/eventname-debug-exporter
codeboten 67a302e
Merge branch 'main' into cijothomas/eventname-debug-exporter
cijothomas 8232ddd
Merge branch 'main' into cijothomas/eventname-debug-exporter
cijothomas 431330f
Merge branch 'main' into cijothomas/eventname-debug-exporter
cijothomas c969458
Merge branch 'main' into cijothomas/eventname-debug-exporter
cijothomas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Use this changelog template to create an entry for release notes. | ||
|
||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: enhancement | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver) | ||
component: debugexporter | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: "Add EventName to debug exporter for Logs. EventName was added as top-level field in the LogRecord from 1.5.0 of proto definition." | ||
|
||
# One or more tracking issues or pull requests related to the change | ||
issues: [11966] | ||
|
||
# (Optional) One or more lines of additional information to render under the primary note. | ||
# These lines will be padded with 2 spaces and then inserted directly into the document. | ||
# Use pipe (|) for multiline entries. | ||
subtext: | ||
|
||
# Optional: The change log or logs in which this entry should be included. | ||
# e.g. '[user]' or '[user, api]' | ||
# Include 'user' if the change is relevant to end users. | ||
# Include 'api' if there is a change to a library API. | ||
# Default: '[user]' | ||
change_logs: [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
exporter/debugexporter/internal/otlptext/testdata/logs/log_with_event_name.out
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
ResourceLog #0 | ||
Resource SchemaURL: | ||
ScopeLogs #0 | ||
ScopeLogs SchemaURL: | ||
InstrumentationScope | ||
LogRecord #0 | ||
ObservedTimestamp: 1970-01-01 00:00:00 +0000 UTC | ||
Timestamp: 2020-02-11 20:26:13.000000789 +0000 UTC | ||
SeverityText: Info | ||
SeverityNumber: Info(9) | ||
EventName: event_name | ||
Body: Str(This is a log message) | ||
Attributes: | ||
-> app: Str(server) | ||
-> instance_num: Int(1) | ||
Trace ID: 08040201000000000000000000000000 | ||
Span ID: 0102040800000000 | ||
Flags: 0 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.