OtelInstrumentation
Defined in: packages/core/src/core/events/otel-handler.ts:31
Methods
Section titled “Methods”addCounter()
Section titled “addCounter()”addCounter(
name,value,attributes):void
Defined in: packages/core/src/core/events/otel-handler.ts:40
Parameters
Section titled “Parameters”string
number
attributes
Section titled “attributes”Record<string, string>
Returns
Section titled “Returns”void
recordHistogram()
Section titled “recordHistogram()”recordHistogram(
name,value,attributes):void
Defined in: packages/core/src/core/events/otel-handler.ts:39
Parameters
Section titled “Parameters”string
number
attributes
Section titled “attributes”Record<string, string>
Returns
Section titled “Returns”void
shutdown()
Section titled “shutdown()”shutdown():
Promise<void>
Defined in: packages/core/src/core/events/otel-handler.ts:41
Returns
Section titled “Returns”Promise<void>
startSpan()
Section titled “startSpan()”startSpan(
name,attributes,parent?):void
Defined in: packages/core/src/core/events/otel-handler.ts:34
Record a span for one security event. The parent trace context comes from the event metadata (traceparent/tracestate) when present.
Parameters
Section titled “Parameters”string
attributes
Section titled “attributes”Record<string, string | number>
parent?
Section titled “parent?”Returns
Section titled “Returns”void