Skip to main content

@webda/otelReadme | 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:110

Properties

diagnostic?

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

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:104


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:95


url?

url?: string

URL on which to serve the content

Inherited from

ServiceParameters.url

Source

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