Meter provider to write to the standard output or standard error or to a file
Source:R/meter-provider-stdout.R
meter_provider_stdstream.RdWrites metrics measurements to the standard output or error, or to a file. Useful for debugging.
Value
meter_provider_stdstream$new() returns an otel::otel_meter_provider
object.
meter_provider_stdstream$options() returns a named list, the current
values of the options.
Options
Standard stream exporter options
output: where to write the output. Can be"stdout": write output to the standard output,"stderr": write output to the standard error,another string: write output to a file. (To write output to a file named
"stdout"or"stderr", use a./prefix.)
Value is set from
the
optsargument, orthe
OTEL_R_EXPORTER_STDSTREAM_METRICS_OUTPUTenvironment variable, orthe
OTEL_R_EXPORTER_STDSTREAM_OUTPUTenvironment variable, orthe default is
"stdout".
Metric reader options
export_interval: the time interval between the start of two export attempts, in milliseconds. Value is set fromthe
optsargument, orthe
OTEL_METRIC_EXPORT_INTERVALenvironment variable, orthe default is
60000.
export_timeout: Maximum allowed time to export data, in milliseconds. Value is set fromthe
optsargument, orthe
OTEL_METRIC_EXPORT_TIMEOUTenvironment variable, orthe default is
30000.