Skip to main content

OtelServiceParameters

@webda/otel • Readme | API


Class: OtelServiceParameters

Extends​

  • ServiceParameters

Constructors​

new OtelServiceParameters(params)​

new OtelServiceParameters(params): OtelServiceParameters

Copy all parameters into the object by default

Parameters​

• params: any

from webda.config.json

Returns​

OtelServiceParameters

Inherited from​

ServiceParameters.constructor

Source​

core/lib/services/service.d.ts:109

Properties​

diagnostic?​

diagnostic?: "ERROR" | "WARN" | "INFO" | "DEBUG" | "TRACE" | "NONE" | "ALL"

Default​

NONE

Source​

otel/src/otel.ts:68


loggerExporter?​

loggerExporter?: Object

Logger export If empty it is disabled

Type declaration​

enable?​

enable?: boolean

Allow to disable the logger

Default​
true
type?​

type?: "otlp"

url?​

url?: string

Default​
http://localhost:4317

Source​

otel/src/otel.ts:53


metricExporter?​

metricExporter?: Object

Type declaration​

enable?​

enable?: boolean

Allow to disable the logger

Default​
true
type​

type: "console" | "otlp"

Source​

otel/src/otel.ts:41


name?​

name?: string

Source​

otel/src/otel.ts:69


openapi?​

openapi?: OpenAPIWebdaDefinition

OpenAPI override

Schema Ignore​

Inherited from​

ServiceParameters.openapi

Source​

core/lib/services/service.d.ts:103


traceExporter?​

traceExporter?: Object

Type declaration​

enable?​

enable?: boolean

Allow to disable the logger

Default​
true
type​

type: "console" | "otlp"

Source​

otel/src/otel.ts:33


type​

type: string

Type of the service

Inherited from​

ServiceParameters.type

Source​

core/lib/services/service.d.ts:94


url?​

url?: string

URL on which to serve the content

Inherited from​

ServiceParameters.url

Source​

core/lib/services/service.d.ts:98