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

Don't reset telemetry when forking a thread #201

Merged
merged 5 commits into from
Oct 13, 2023

Conversation

istathar
Copy link
Member

@istathar istathar commented Oct 12, 2023

Change forkThread to no longer fork the Datum object, as this had the result of silently discarding telemetry that the user thought they were adding to the in-flight enclosing span

As discussed in

this is not ideal, so this branch changes this built in behaviour. The major version of core-program is bumped to 0.7.0 by way of signalling this change.

Closes #200

@istathar istathar added core-program Issues involving the Program type and command-line options & argument parsing core-telemetry Issues involving sending telemetry to an observability service labels Oct 12, 2023
@istathar istathar self-assigned this Oct 12, 2023
@istathar
Copy link
Member Author

@dmvianna added documentation about the behaviour and bumped version as requested.

core-program/lib/Core/Program/Threads.hs Outdated Show resolved Hide resolved
Copy link
Contributor

@dmvianna dmvianna left a comment

Choose a reason for hiding this comment

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

Much clearer!

@istathar istathar merged commit 8d0ebc5 into aesiniath:main Oct 13, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-program Issues involving the Program type and command-line options & argument parsing core-telemetry Issues involving sending telemetry to an observability service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

forkThreads should inherit parent thread's telemetry Datum
2 participants