Skip to main content

@supertokens-plugins/opentelemetry-nodejs

Classes

PluginImpl

Defined in: supertokens-plugins/packages/opentelemetry-nodejs/src/pluginImpl.ts:7

Constructors

Constructor
new PluginImpl(config: {
}): PluginImpl;

Defined in: supertokens-plugins/packages/opentelemetry-nodejs/src/pluginImpl.ts:8

Parameters
ParameterType
config{ }
Returns

PluginImpl

Properties

PropertyTypeDefined in
getSensitiveFields(this: PluginImpl, defaultSensitiveFields: string[]) => string[]supertokens-plugins/packages/opentelemetry-nodejs/src/pluginImpl.ts:58
getTracer(this: PluginImpl) => Tracersupertokens-plugins/packages/opentelemetry-nodejs/src/pluginImpl.ts:34
getTracingHeadersForCoreCall(this: PluginImpl, req: HttpRequest, userContext: UserContext) => Record<string, string>supertokens-plugins/packages/opentelemetry-nodejs/src/pluginImpl.ts:62
startActiveSpan<T>(this: PluginImpl, tracer: Tracer, spanName: string, attributes: Record<string, any>, fn: (span: Span) => T) => Tsupertokens-plugins/packages/opentelemetry-nodejs/src/pluginImpl.ts:24
startSpan(this: PluginImpl, tracer: Tracer, spanName: string, attributes: Record<string, any>) => { addEvent: (eventName: string, attributes: Record<string, BaseFormSection>) => void; end: () => void; setAttributes: (attributes: Record<string, BaseFormSection>) => void; setStatus: (status: SpanStatus) => void; }supertokens-plugins/packages/opentelemetry-nodejs/src/pluginImpl.ts:10
transformErrorToAttributes(this: PluginImpl, error: unknown) => Record<string, BaseFormSection>supertokens-plugins/packages/opentelemetry-nodejs/src/pluginImpl.ts:50
transformInputToAttributes(this: PluginImpl, input: unknown) => Record<string, BaseFormSection>supertokens-plugins/packages/opentelemetry-nodejs/src/pluginImpl.ts:38
transformResultToAttributes(this: PluginImpl, input: unknown) => Record<string, BaseFormSection>supertokens-plugins/packages/opentelemetry-nodejs/src/pluginImpl.ts:44

Type Aliases

OpenTelemetryLoggerPluginConfig

type OpenTelemetryLoggerPluginConfig = 
| {
}
| undefined;

Defined in: supertokens-plugins/packages/opentelemetry-nodejs/src/types.ts:3

OTSpan

type OTSpan = {
addEvent: (eventName: string, attributes: Record<string, any>) => void;
end: () => void;
setAttributes: (attributes: Record<string, any>) => void;
setStatus: (status: BaseFormSection) => void;
};

Defined in: supertokens-plugins/packages/opentelemetry-nodejs/src/types.ts:5

Properties

OTTracer

type OTTracer = {
startActiveSpan: (spanName: string, attributes: Record<string, any>, fn: (span: OTSpan) => void) => void;
startSpan: (spanName: string, attributes: Record<string, any>) => OTSpan;
};

Defined in: supertokens-plugins/packages/opentelemetry-nodejs/src/types.ts:12

Properties

PropertyTypeDefined in
startActiveSpan(spanName: string, attributes: Record<string, any>, fn: (span: OTSpan) => void) => voidsupertokens-plugins/packages/opentelemetry-nodejs/src/types.ts:14
startSpan(spanName: string, attributes: Record<string, any>) => OTSpansupertokens-plugins/packages/opentelemetry-nodejs/src/types.ts:13

Variables

default

default: {
init: any;
};

Defined in: supertokens-plugins/packages/opentelemetry-nodejs/src/index.ts:5

Type Declaration

init

const init: any;

Defined in: supertokens-plugins/packages/opentelemetry-nodejs/src/plugin.ts:11

PLUGIN_ID

const PLUGIN_ID: "supertokens-plugin-opentelemetry" = "supertokens-plugin-opentelemetry";

Defined in: supertokens-plugins/packages/opentelemetry-nodejs/src/config.ts:3

PLUGIN_SDK_VERSION

const PLUGIN_SDK_VERSION: ">=23.0.0" = ">=23.0.0";

Defined in: supertokens-plugins/packages/opentelemetry-nodejs/src/config.ts:4

Functions

validatePluginConfig()

function validatePluginConfig(config: {
}): void;

Defined in: supertokens-plugins/packages/opentelemetry-nodejs/src/config.ts:7

eslint-disable-next-line @typescript-eslint/no-unused-vars

Parameters

ParameterType
config{ }

Returns

void