tracegen

command module
v0.41.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

README

Trace generator for OpenTelemetry

This utility simulates a client generating traces, useful for testing and demonstration purposes.

Installing

$ go get github.com/open-telemetry/opentelemetry-collector-contrib/tracegen

Running

First, you'll need an OpenTelemetry Collector to receive the trace data. Follow the project's instructions for a detailed setting up guide. The following configuration file should be sufficient:

receivers:
  otlp:
    protocols:
      grpc:
        endpoint: localhost:4317

processors:

exporters:
  logging:

service:
  pipelines:
    traces:
      receivers:
      - otlp
      processors: []
      exporters:
      - logging

Once the OpenTelemetry Collector instance is up and running, run tracegen:

$ tracegen -otlp-insecure -duration 5s

Or, to generate a specific number of traces:

$ tracegen -otlp-insecure -traces 1

Check -help for all the options.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL