Repository navigation
fix(otel-logs): Fix some issues with otel logs, move expansion into processor - #5136
Merged
Merged
Conversation
Dav1dde
force-pushed
the
dav1d/otlp-logs-processing
branch
from
September 16, 2025 11:36
2ffd33b to
9de674e
Compare
Dav1dde
marked this pull request as ready for review
September 16, 2025 11:37
loewenheim
reviewed
Sep 16, 2025
Comment on lines
+102
to
+103
| attribute_data.insert("instrumentation.name".to_owned(), scope.name.clone()); | ||
| attribute_data.insert("instrumentation.version".to_owned(), scope.version.clone()); |
Contributor
There was a problem hiding this comment.
Where do these names come from?
Member
Author
There was a problem hiding this comment.
The old code:
relay/relay-server/src/services/processor/ourlog.rs
Lines 25 to 41 in 6e360df
jjbayer
approved these changes
Sep 16, 2025
Comment on lines
+64
to
+67
| let span_id = SpanId::try_from(span_id.as_slice()) | ||
| .map_or_else(|err| Annotated::from_error(err, None), Annotated::new); | ||
| let trace_id = TraceId::try_from(trace_id.as_slice()) | ||
| .map_or_else(|err| Annotated::from_error(err, None), Annotated::new); |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The implementation in #5130 added the expansion right into the processor service, not the logs processor (e.g. how the old implementation did it #5082). This not only means we have to serialize and deserialize an additional time, it also goes against the design where we want to go towards. This was most likely caused by my 'NEL' hack, which I now also separated out again. We can implement a proper NEL processor once we pick up the NEL work again.
The implementation also did not deal with outcomes correctly. This implementation fixes the issues and also introduces
RecordKeeper::modify_byto track changes in outcome quantities exactly, instead of justleniently. We can also work towards moving all occurrences oflenienttomodify_byin follow-up PRs.