Skip to content

Enhance TracingInterceptor to decorate Span when exception occurs #147

@rafaelbey

Description

@rafaelbey

Currently, the TracingInterceptor just add the error tag whenever an exception occurs.

I will like to be able to decorate the Span with other details about the exception, like the exception message. This will help our users find errors specially when exceptions are thrown while streaming data, where the response is just an incomplete stream, and have little detail on the underlying cause.

One idea I can think is to enhance the InterceptorSpanDecorator to have two new methods: decorateReadException and decorateWriteException, and call these when an error is catch. I will submit a PR with this idea shortly to better visualize it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions