Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dustinspecker/ginkgo-gomega-open-telemetry
https://github.com/dustinspecker/ginkgo-gomega-open-telemetry
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dustinspecker/ginkgo-gomega-open-telemetry
- Owner: dustinspecker
- License: mit
- Created: 2024-07-14T22:45:05.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-17T18:10:05.000Z (4 months ago)
- Last Synced: 2024-07-19T11:58:22.392Z (4 months ago)
- Language: Go
- Homepage: https://dustinspecker.com/posts/open-telemetry-tracing-ginkgo/
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# ginkgo-gomega-open-telemetry
> Example of using OpenTelemetry tracing through Ginkgo tests
## Usage
1. Start a Jaeger all-in-one instance:
```bash
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
```1. Start an open-telemetry-collector instance:
```bash
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
```1. Start microservice-a:
```bash
go run ./cmd/microservice-a
```1. Start microservice-b:
```bash
go run ./cmd/microservice-b
```1. Install Ginkgo:
```bash
go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo
```1. Run Ginkgo tests:
```bash
ginkgo run -v ./test/...
```