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

Validate tracing for actors #1154

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Conversation

artursouza
Copy link
Member

@artursouza artursouza commented Oct 23, 2024

Description

Implements tracing for actors. It has never been done before.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #1151

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

Signed-off-by: Artur Souza <[email protected]>
@artursouza
Copy link
Member Author

This is just a test scenario, not yet the fix.

@artursouza artursouza changed the title Implements tracing for actors Validate tracing for actors Nov 13, 2024
Comment on lines +50 to +64
try (DaprClient client = run.newDaprClientBuilder().build()) {
MyActor myActor =
new ActorProxyBuilder<>(
"MyActorTest",
MyActor.class,
clientRun.newActorClient()).build(new ActorId("123456"));
try (Scope scope = span.makeCurrent()) {
client.waitForSidecar(10000).block();
myActor.say("hello world")
.contextWrite(getReactorContext(openTelemetry))
.block();
}
} finally {
span.end();
}
Copy link
Member Author

Choose a reason for hiding this comment

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

This is an example showing how the client app should invoke actors and tracing headers to work.

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.

Can't propagate trace headers with actors
1 participant