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

Fix tracing of recordDirtyKeys #2505

Merged
merged 2 commits into from Dec 18, 2021
Merged

Fix tracing of recordDirtyKeys #2505

merged 2 commits into from Dec 18, 2021

Conversation

pepeiborra
Copy link
Collaborator

@pepeiborra pepeiborra commented Dec 18, 2021

I misunderstood how OpenTelemetry.Eventlog.addEvent works, which is not totally surprising since there are no docs.

But it looks like, judging by other call sites, that the event goes in the second argument and the first argument is always "":

liftIO $ withSpan (fromString name) (\sp -> addEvent sp "" (fromString $ name <> " received") >> runInIO (act sp))

@pepeiborra pepeiborra added the merge me Label to trigger pull request merge label Dec 18, 2021
Copy link
Collaborator

@Anton-Latukha Anton-Latukha left a comment

Choose a reason for hiding this comment

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

"" argument leads to: https://hackage.haskell.org/package/opentelemetry-0.7.0/docs/src/OpenTelemetry.Eventlog_Internal.html#local-6989586621679057309
It is k there.

So it is a prefix/part of the message monoid.

There are is a minor cleaned-up detail (withEventTrace :: ... no longer needs CPP), but that is a self-solving later refactoring detail.

Seems trivial enough to be approved by me.

@mergify mergify bot merged commit ff770e0 into master Dec 18, 2021
pepeiborra added a commit that referenced this pull request Dec 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants