Skip to content

dustinspecker/ginkgo-gomega-open-telemetry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ginkgo-gomega-open-telemetry

Example of using OpenTelemetry tracing through Ginkgo tests

Usage

  1. Start a Jaeger all-in-one instance:

    docker run \
      --interactive \
      --name jaeger \
      --rm \
      --tty \
      --env COLLECTOR_OTLP_ENABLED=true \
      --publish 0.0.0.0:16686:16686 \
      --publish 0.0.0.0:4317:4317 \
      --publish 0.0.0.0:44317:44317 \
      jaegertracing/all-in-one:1.35
  2. Start an open-telemetry-collector instance:

    docker run \
      --interactive \
      --network container:jaeger \
      --rm \
      --tty \
      --volume "$PWD/open-telemetry-config.yaml:/open-telemetry-config.yaml" \
      otel/opentelemetry-collector-contrib:0.104.0 --config /open-telemetry-config.yaml
  3. Start microservice-a:

    go run ./cmd/microservice-a
  4. Start microservice-b:

    go run ./cmd/microservice-b
  5. Install Ginkgo:

    go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo
  6. Run Ginkgo tests:

    ginkgo run -v ./test/...

Releases

No releases published

Packages

 
 
 

Contributors

Languages