Skip to content

Implements OpenTelemetry Instrumentation for Observability #395

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

shikokuchuo
Copy link
Member

@shikokuchuo shikokuchuo commented Aug 7, 2025

Closes #394.

Current behaviour:

  • daemons(n) creates a persistent otel span
  • mirai() fires an event with a child span
  • Evaluation of the mirai() call on the daemon activates child span (for duration of evaluation)
    • Includes daemon identifier as an attribute so we know where it ran
  • daemons(0) ends the persistent span

Test using:

pak::pak("r-lib/mirai@feat-otel")

library(mirai)
daemons(2)
m1 <- mirai(Sys.sleep(2))
m2 <- mirai(Sys.sleep(2))
m1[]
m2[]
daemons(0)

@shikokuchuo shikokuchuo force-pushed the feat-otel branch 3 times, most recently from eb6a508 to 3ba64ef Compare August 13, 2025 11:58
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.

OpenTelemetry for Observability
1 participant