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

OTEL Context not being propagated to @Asynchronous component #9538

Open
jvissers opened this issue Nov 27, 2024 · 1 comment
Open

OTEL Context not being propagated to @Asynchronous component #9538

jvissers opened this issue Nov 27, 2024 · 1 comment

Comments

@jvissers
Copy link

Environment Details

  • Helidon Version: 4.1.4
  • Helidon MP
  • OpenJDK 64-Bit Server VM (build 23+37-2369, mixed mode, sharing)
  • OS: Ubuntu 24.04.1 LTS

Problem Description

We want to propagate OpenTelemetry context to an @Asynchronous component, but it looks like no context is propagated. Span.current() reports Optional.empty().

@danielkec
Copy link
Contributor

Confirmed, MP Async has one default Helidon context unaware executor which can't be configured in MP.

static {
EXECUTOR.set(LazyValue.create(() -> Executors.newThreadPerTaskExecutor(Thread.ofVirtual()
.name("helidon-ft-", 0)
.factory())));
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triage
Development

No branches or pull requests

2 participants