Skip to content

New component: cmd/golden #39662

Closed
Closed
@atoulme

Description

@atoulme

The purpose and use-cases of the new component

This new component is a command line utility that can listen for traffic over OTLP and OTLPHTTP, and compare it with fixture files. It uses pkg/golden under the hood. It allows to set rules to ignore and rename elements of the fixture file to allow fuzzy matches to the incoming data.

Example configuration for the component

golden --listen-grpc http://localhost:4317 --expected file/foo_expected.yaml --ignore-start-timestamps --ignore-timestamps --ignore-metrics-order --wait 5m

If comparison is successful, the program exits as soon as the condition is matched with an exit code 0.

If the comparison fails, the program eventually exits with error code 1, with the output of the error provided by pkg/golden comparison.

Telemetry data types supported

metrics, traces, logs - start with metrics.

Code Owner(s)

@atoulme

Sponsor (optional)

@atoulme

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions