k6.wiki
k6 Extensions & xk6
Technical articles detailing how to write, compile, and distribute custom Go-based extensions using k6's internal reflection bridge to support non-HTTP protocols, chaos disruptions, and tracing.
xk6 Architecture: Extending the k6 Runtime with Custom Go Bindings
Posted on May 24, 2026 in Extensions
Learn how xk6 dynamically extends Grafana k6. Explore how the internal Go-to-JavaScript bridge exposes Go structs and public methods to the Sobek engine using reflection, mapping PascalCase to camelCase and processing custom JavaScript struct tags.
Enterprise xk6 Extensions: Chaos Disruption, Distributed Tracing, and Direct SQL
Posted on May 24, 2026 in Extensions
Implement chaos engineering, distributed tracing headers, and direct database queries inside your k6 test lifecycle. Learn the internal mechanics of xk6-disruptor, xk6-distributed-tracing, and xk6-sql, and compile customized runner images using multi-stage Dockerfiles.