GithubHelp home page GithubHelp logo

xk6-output-error's Introduction

xk6-output-error

This is a k6 extension using the xk6 system. xk6-output-error is a k6 extension to add more information into StdErr k6. Moreover, you can send logs with errors in your Elasticsearch or other log storage system used for this vector.dev (config vector), filebeat, etc.

Contents

Build

To build a k6 binary with this extension, first ensure you have the prerequisites:

Then:

  1. Install xk6:
go install go.k6.io/xk6/cmd/xk6@latest
  1. Build the binary:
CGO_ENABLED=1
xk6 build --with github.com/Tinkoff/xk6-output-error@latest

If you use Windows:

set CGO_ENABLED=1
xk6 build master --with github.com/Tinkoff/xk6-output-error

Usage

You can use default params:

k6 run -o xk6-output-error sample.js

Also, you can add special fields for output:

k6 run -o xk6-output-error=fields="proto,tls_version" sample.js

Or set an environment variable:

export K6_OUTPUTERROR_FIELDS="proto,tls_version"
k6 run -o xk6-output-error sample.js

Moreover, you can set output into a file:

k6 run -o xk6-output-error=fields="proto,tls_version" ./examples/sample.js 2>error.log

xk6-output-error's People

Contributors

javaducky avatar maksimall89 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

3alster

xk6-output-error's Issues

Needed to maintain listing in k6 Extensions Registry

We've recently updated the requirements for maintaining an extension within the listing on our site. As such, please address the following items to maintain your listing within the registry:

  • add an examples directory containing k6 test scripts making use of your extension
  • needs to build with a recent version of k6; minimum v0.43

For more information on these and other listing requirements, please take a look at the registry requirements.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.