Skip to content

Exception / error.type: suggest unwrapping 'junk' exceptions #3588

@lmolkova

Description

@lmolkova

E.g. Java

public Throwable extract(Throwable error) {
    if (error.getCause() != null
        && (error instanceof ExecutionException
            || isInstanceOfCompletionException(error)
            || error instanceof InvocationTargetException
            || error instanceof UndeclaredThrowableException)) {
      return extract(error.getCause());
    }
    return error;
  }

there are known exception that wrap things and are not informative. Instrumentations that can reliably identify that exception type is not useful, MAY unwrap it.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Status

Accepted

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions