Skip to content
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

[Prototype] How to support complex attributes in logs/events? (Option D) #6973

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

trask
Copy link
Member

@trask trask commented Dec 19, 2024

@trask trask marked this pull request as ready for review December 19, 2024 16:46
@trask trask requested a review from a team as a code owner December 19, 2024 16:46
@trask trask changed the title [Prototype] How to support complex attributes in logs/events? (Option C) [Prototype] How to support complex attributes in logs/events? (Option D) Dec 19, 2024
*/
// TODO (trask) how to use pre-encoded key?
// - is ComplexAttributeKey too broad (covers all nested attribute types)?
default LogRecordBuilder setAttribute(String key, ComplexAttribute value) {
Copy link
Member

Choose a reason for hiding this comment

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

Why introduce a new ComplexAttribute type instead of just setAttribute(String, Value)?

Only reason I can think of is for code generation in semantic-convention-java.

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