Skip to content

[TUnit.Aspire]: OtlpReceiver.ProcessLogs, Add exception when available #6347

Description

@AdrianoAE

Problem Statement

Currently when a test fails the output already appends the OTEL Body, but there is no good way of viewing the exception, this is the current output

Image

but the error message itself is not always helpful by itself.

NOTE: Is this specific case I'm using TUnit integration of ReqNRoll, the WatchResourceLogs does not work, also tried multiple custom solutions to get the logs out without success, so this simple addition would already solve the problem of helping identity why my tests started failing in the pipeline

Proposed Solution

When available, also print the exception

Image

Alternatives Considered

No response

Feature Category

Test Output / Reporting

How important is this feature to you?

Important - significantly impacts my workflow

Additional Context

No response

Contribution

  • I'm willing to submit a pull request for this feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions