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

Add DroppedAttributeCount field to Otel/STEF schema #8

Open
tigrannajaryan opened this issue Jan 10, 2025 · 0 comments · May be fixed by #22
Open

Add DroppedAttributeCount field to Otel/STEF schema #8

tigrannajaryan opened this issue Jan 10, 2025 · 0 comments · May be fixed by #22

Comments

@tigrannajaryan
Copy link
Collaborator

No description provided.

tigrannajaryan added a commit that referenced this issue Jan 24, 2025
Resolves #8

Otel/STEF schema changes:

- Renamed "Attributes" multimap to "AttributesList".
- Made "Attributes" a struct, containing 2 fields: a multimap
  of key/values and "DroppedAttributeCount".
- Use the new "Attributes" struct in the "Resource", "Scope", "Span", etc structs.

The schema changes reveal a serialization bug that I had to fix otherwise
the tests were failing.

The bug was in struct's Encode() function, where if a struct was encoded
by reference the struct's modified bits were not correctly reset. The reset
is now done recursively, which is necessary so that the next Encode() correctly
picks up the field modifications.

Also updated testdata files (because the schema is now different) and renamed
the incorrect ".tefz" to ".stefz" extension.
tigrannajaryan added a commit that referenced this issue Jan 24, 2025
Resolves #8

Otel/STEF schema changes:

- Renamed "Attributes" multimap to "AttributesList".
- Made "Attributes" a struct, containing 2 fields: a multimap
  of key/values and "DroppedAttributeCount".
- Use the new "Attributes" struct in the "Resource", "Scope", "Span", etc structs.

The schema changes reveal a serialization bug that I had to fix otherwise
the tests were failing.

The bug was in struct's Encode() function, where if a struct was encoded
by reference the struct's modified bits were not correctly reset. The reset
is now done recursively, which is necessary so that the next Encode() correctly
picks up the field modifications.

Also updated testdata files (because the schema is now different) and renamed
the incorrect ".tefz" to ".stefz" extension.
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 a pull request may close this issue.

1 participant