Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[user_events] Set EventHeader name to the event_name property #533

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
merged 7 commits into from
Mar 12, 2025

Conversation

ThomsonTan
Copy link
Contributor

With below PR in main, the user_events Log exporter could create EventBuilder during calling into Recordable with event_name, and also no need to cache the Log attributes which would require extra dynamic memory allocation.

open-telemetry/opentelemetry-cpp#3296

@ThomsonTan ThomsonTan requested a review from lalitb March 11, 2025 10:02
@ThomsonTan ThomsonTan requested a review from a team as a code owner March 11, 2025 10:02
return;
}

auto event_name = !event_name_.empty() ? event_name_.data() : "OpenTelemetryLogs";
Copy link
Member

@lalitb lalitb Mar 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otel-rust uses default as "Logs". Either is fine, as long as long as we are consistent. cc @cijothomas.

Copy link
Member

@lalitb lalitb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. With nit comment. Thanks for the PR.

@ThomsonTan ThomsonTan merged commit 4d2eb80 into open-telemetry:main Mar 12, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants