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 <[email protected]> * feature: calls every span processor that has on_ending implemented right after setting the end timestamp Signed-off-by: Gustavo Pantuza <[email protected]> * test: adds tests for the new on_ending method from span processors Signed-off-by: Gustavo Pantuza <[email protected]> * docs: Informs the on_ending callback is an experimental features from official spec Signed-off-by: Gustavo Pantuza <[email protected]> * Update sdk/lib/opentelemetry/sdk/trace/span_processor.rb Co-authored-by: Kayla Reopelle <[email protected]> * Update sdk/lib/opentelemetry/sdk/trace/span_processor.rb Co-authored-by: Kayla Reopelle <[email protected]> * refactor: switch method name from on_ending to on_finish to comply with project name strategy Signed-off-by: Gustavo Pantuza <[email protected]> --------- Signed-off-by: Gustavo Pantuza <[email protected]> Co-authored-by: Kayla Reopelle <[email protected]>
- Loading branch information