Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thmshmm/xk6-opentelemetry
k6 extension to generate OpenTelemetry signals for load testing
https://github.com/thmshmm/xk6-opentelemetry
k6 k6-extension opentelemetry xk6
Last synced: 4 months ago
JSON representation
k6 extension to generate OpenTelemetry signals for load testing
- Host: GitHub
- URL: https://github.com/thmshmm/xk6-opentelemetry
- Owner: thmshmm
- License: apache-2.0
- Created: 2023-03-04T15:43:47.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-26T08:55:55.000Z (6 months ago)
- Last Synced: 2024-06-26T10:24:54.576Z (6 months ago)
- Topics: k6, k6-extension, opentelemetry, xk6
- Language: Go
- Homepage:
- Size: 136 KB
- Stars: 23
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-k6 - xk6-opentelemetry - Generate OpenTelemetry signals from within your test scripts. (Extensions / Community)
- awesome-k6 - xk6-opentelemetry - Generate OpenTelemetry signals from within your test scripts. (Extensions / Community)
README
# xk6-opentelemetry
The xk6-opentelemetry project is a [k6 extension](https://k6.io/docs/extensions/guides/what-are-k6-extensions/) that enables k6 users to generate random [OpenTelemetry signals](https://opentelemetry.io/docs/reference/specification/glossary/#signals) (metrics, logs, traces) for testing purposes.
Check the [examples](./examples/) directory which contains some scripts to get started.
## Features
- Generate
- ExportLogsServiceRequest
- ExportMetricsServiceRequest (Types: gauge, sum, histogram)
- ExportTraceServiceRequest
- Set resource attributes## Usage
### Docker
The easiest way to get started is to build the provided Docker image and run k6 scripts inside the container.
Build the image:
```
docker build -t xk6-opentelemetry .
```Run a local k6 script:
```
docker run --rm -i xk6-opentelemetry run - .js
```Run all examples:
```
task run-examples
```