Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds on_ending callback to allow processors to mutate spans before En…
…d operation (#1713) * feature: adds on_ending method as an optional callback for span processors Signed-off-by: Gustavo Pantuza <gustavopantuza@gmail.com> * feature: calls every span processor that has on_ending implemented right after setting the end timestamp Signed-off-by: Gustavo Pantuza <gustavopantuza@gmail.com> * test: adds tests for the new on_ending method from span processors Signed-off-by: Gustavo Pantuza <gustavopantuza@gmail.com> * docs: Informs the on_ending callback is an experimental features from official spec Signed-off-by: Gustavo Pantuza <gustavopantuza@gmail.com> * Update sdk/lib/opentelemetry/sdk/trace/span_processor.rb Co-authored-by: Kayla Reopelle <87386821+kaylareopelle@users.noreply.github.com> * Update sdk/lib/opentelemetry/sdk/trace/span_processor.rb Co-authored-by: Kayla Reopelle <87386821+kaylareopelle@users.noreply.github.com> * refactor: switch method name from on_ending to on_finish to comply with project name strategy Signed-off-by: Gustavo Pantuza <gustavopantuza@gmail.com> --------- Signed-off-by: Gustavo Pantuza <gustavopantuza@gmail.com> Co-authored-by: Kayla Reopelle <87386821+kaylareopelle@users.noreply.github.com>
- Loading branch information