xk6-tcp
    Preparing search index...

    Interface SocketOptions

    Configuration options for creating a new TCP socket.

    const socket = new Socket({
    tags: { endpoint: 'api', environment: 'prod' }
    });
    interface SocketOptions {
        tags?: Record<string, string>;
    }
    Index

    Properties

    Properties

    tags?: Record<string, string>

    Optional key-value pairs for metrics collection and logging. These tags will be attached to all metrics generated by this socket.