-
Notifications
You must be signed in to change notification settings - Fork 41
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
Add effects_so_far
to Sage.Tracer
callbacks
#61
Comments
Hello @ulissesalmeida. Can you please elaborate a bit on how it's going to be used? In theory, if you know the name you should know that should be put under that name (otherwise you can't compose the saga). I'm asking because even though I'm not opposed to adding it I want to make sure that there is no better way. The biggest concern is that it's not a safe change - effects can be very large (we don't know what people put there) and sending them can cause some issues in production. |
Thank you for the quick reply ❤️ Today we have something like this: @impl true
def handle_event(step_name, :start_transaction, opts) do
span_opts = %{attributes: [{"sage_opts", Traceable.attributes(opts)}}
OpenTelemetry.Tracer.start_span(to_string(step_name), span_opts)
opts
end
def handle_event(step_name, :finish_transaction, _opts) do
OpenTelemetry.Tracer.end_span()
opts
end
I imagine adding What do you think? |
Hey 👋 That would be great. I'm using sage as the executor, so I can use all the features it provides, but I have a module that wraps sage, so I can decide if a specific function should be retried, skipped, or even if the whole process should stop and wait for manual intervention. For context: I have a use case, that involves third parties services that don't allow compensation and are not idempotent. Having the I like the suggestion of |
Hi everyone, any updates on this? Having the |
@rauann we can extend the callback and make it accept |
Hi! I'm implementing
opentelemetry
tracing on my job application and collecting theeffects_so_far
as tracing attributes would be a very handful to understand some Sage pipelines. Today Sage provides the hook's name, the action, and the shared opts.What do you all think about this idea?
The text was updated successfully, but these errors were encountered: