Skip to content

[Stateful Encoding] Add service as top level field to logs#474

Open
TheSafo wants to merge 1 commit intomasterfrom
jsaf/service-toplevel
Open

[Stateful Encoding] Add service as top level field to logs#474
TheSafo wants to merge 1 commit intomasterfrom
jsaf/service-toplevel

Conversation

@TheSafo
Copy link
Copy Markdown
Contributor

@TheSafo TheSafo commented Apr 20, 2026

This is needed to fix a class of mismatches caused by extracting service from ddtags - sometimes service needs to exist in ddtags and on the top level log json, sometimes its only in the top level json. This enables our protocol to differentiate the two.

Copy link
Copy Markdown
Contributor Author

TheSafo commented Apr 20, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@TheSafo TheSafo changed the title toplevel [Stateful Encoding] Add service as top level field to logs Apr 20, 2026
@TheSafo TheSafo marked this pull request as ready for review April 20, 2026 22:26
@TheSafo TheSafo requested review from a team as code owners April 20, 2026 22:26
// status changes per log while other tags remain stable, which would defeat delta encoding.
DynamicValue status = 6;

// Service is sent separately becaues sometimes service is a top level field on the log json AND also in ddtags, and sometimes it's just the top level field.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
// Service is sent separately becaues sometimes service is a top level field on the log json AND also in ddtags, and sometimes it's just the top level field.
// Service is sent separately because sometimes service is a top level field on the log json AND also in ddtags, and sometimes it's just the top level field.

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