interface OpenTelemetryMetricsInit {
    appName?: string;
    appVersion?: string;
    meterName?: string;
    statfsLocation?: string;
}

Properties

appName?: string

The app name used to create the tracer

Default

'js-libp2p'
appVersion?: string

The app version used to create the tracer.

The version number of the running version of libp2p is used as the default.

meterName?: string

The meter name used for creating metrics

Default

'js-libp2p'
statfsLocation?: string

On Node.js platforms the current filesystem usage is reported as the metric nodejs_fs_usage_bytes using the statfs function from node:fs - the default location to stat is the current working directory, configured this location here