Skip to content

ref(ourlogs): Removes support for the envelope otel log item type - #5082

Merged
Dav1dde merged 5 commits into
masterfrom
dav1d/rm-otel-log
Aug 29, 2025
Merged

Dav1dde merged 5 commits into
masterfrom
dav1d/rm-otel-log

Conversation

@Dav1dde

@Dav1dde Dav1dde commented Aug 27, 2025 •

Copy link
Copy Markdown
Member

Closes: #4884

In a follow up, we can remove the relay-ourlogs crate, as this is basically empty now.

@Dav1dde
Dav1dde force-pushed the dav1d/rm-otel-log branch from 7715730 to 824f78e Compare August 27, 2025 09:01
@Dav1dde
Dav1dde marked this pull request as ready for review August 27, 2025 09:01
@Dav1dde
Dav1dde requested a review from a team as a code owner August 27, 2025 09:01
@Dav1dde
Dav1dde force-pushed the dav1d/rm-otel-log branch from 824f78e to 9af4eab Compare August 27, 2025 10:05
@Dav1dde Dav1dde self-assigned this Aug 27, 2025
@Dav1dde
Dav1dde force-pushed the dav1d/rm-otel-log branch from 9af4eab to 96456b9 Compare August 27, 2025 11:33
@Dav1dde
Dav1dde enabled auto-merge August 29, 2025 06:56
@Dav1dde
Dav1dde added this pull request to the merge queue Aug 29, 2025
Merged via the queue into master with commit 4f8da3c Aug 29, 2025
@Dav1dde
Dav1dde deleted the dav1d/rm-otel-log branch August 29, 2025 10:40
jan-auer added a commit that referenced this pull request Aug 29, 2025
* master:
  test(spanv2): Slightly increase timeout to reduce flakes (#5100)
  fix(genai): Use correct pii maybe, not false (#5099)
  ref(metric-stats): Purges metric stats from the codebase (#5097)
  ref(ourlogs): Removes support for the envelope otel log item type (#5082)
github-merge-queue Bot pushed a commit that referenced this pull request Sep 11, 2025
#skip-changelog

As per #5111, we'd like to add
an OTLP logs endpoint to Relay. More details on the motivation can be
found in this internal notion doc:
https://www.notion.so/sentry/Logs-OTLP-Endpoint-2638b10e4b5d8050a147d0dd46df1915
(contains screenshots so can't put them in GH).

Before we implement the endpoint itself, this PR adds a
`otel_to_sentry_log` to the `relay-ourlogs` crate. `otel_to_sentry_log`
is a cleaned up version of the otel log to sentry log transform we had
previously implemented and then removed in
#5082.

To make the `otel_to_sentry_log`, I extracted out a `otel_value_to_attr`
from the `relay-spans` crate into a `relay-otel` crate. Not sure if this
is the correct level of abstraction, would appreciate feedback.

Skipping changelog as this does not expose any user facing changes, only
new methods and refactors. Once I add the endpoint in a future PR, I
will add a changelog there.
github-merge-queue Bot pushed a commit that referenced this pull request Sep 17, 2025
…rocessor (#5136)

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_by` to track changes in outcome quantities
exactly, instead of just `lenient`ly. We can also work towards moving
all occurrences of `lenient` to `modify_by` in follow-up PRs.
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.

Remove OTel Log support

2 participants