Skip to content

Use otelgotest wrapper instead of raw go test #1

@shykes

Description

@shykes

Problem

Go tests run through this module have no OTel instrumentation. There are no spans per package or test.

Solution

Replace go test with otelgotest here. It's a drop-in replacement that emits OTel spans for each package and test automatically. Build it from source since we're already in a Go build environment.

The Cloud UI can then group results by package in its test view. Tests using testctx with custom spans nest properly.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions