OtelServiceParameters
Class: OtelServiceParameters
Defined in: otel/src/otel.service.ts:48
OpenTelemetry service parameters
Extends
ServiceParameters
Constructors
Constructor
new OtelServiceParameters():
OtelServiceParameters
Returns
OtelServiceParameters
Inherited from
ServiceParameters.constructor
Properties
diagnostic?
optionaldiagnostic?:"ERROR"|"WARN"|"INFO"|"DEBUG"|"TRACE"|"NONE"|"ALL"
Defined in: otel/src/otel.service.ts:98
Default
NONE
loggerExporter?
optionalloggerExporter?:object
Defined in: otel/src/otel.service.ts:81
Logger export If empty it is disabled
Values (url, headers...) can be encrypted with webda config encrypt
enable?
optionalenable?:boolean
Allow to disable the logger
Default
true
type?
optionaltype?:"otlp"
url?
optionalurl?:string|SecretString
Can be encrypted with webda config encrypt (when it holds credentials)
Default
http://localhost:4317
metricExporter?
optionalmetricExporter?:object
Defined in: otel/src/otel.service.ts:67
enable?
optionalenable?:boolean
Allow to disable the metric exporter
Default
true
type
type:
"console"|"otlp"
name?
optionalname?:string
Defined in: otel/src/otel.service.ts:102
Service name reported to OpenTelemetry, default to the package name
traceExporter
traceExporter:
object
Defined in: otel/src/otel.service.ts:53
Trace export configuration
enable?
optionalenable?:boolean
Allow to disable the trace exporter
Default
true
sampling
sampling:
number
Between 0.0 and 1.0
Default
0.01
type
type:
"console"|"otlp"
Default
{"type":"otlp","enable":true,"sampling":0.01}
type
type:
string
Defined in: core/lib/services/serviceparameters.d.ts:9
Type of the service
Inherited from
ServiceParameters.type
Methods
load()
load(
params?):this
Defined in: otel/src/otel.service.ts:109
Apply default values
Parameters
params?
any = {}
the service parameters
Returns
this
this
Overrides
ServiceParameters.load
update()
update(
params,delta):this
Defined in: core/lib/application/parameters.d.ts:21
Update parameters and call watchers if a parameter was changed
Parameters
params
any
the service parameters
delta
any
the delta
Returns
this
this for chaining
Inherited from
ServiceParameters.update
with()
with(
callback):this
Defined in: core/lib/application/parameters.d.ts:27
Watch for changes on the parameters and call watchers when a parameter is changed
Parameters
callback
(params) => void
the callback function
Returns
this
this for chaining
Inherited from
ServiceParameters.with