@@ -39,10 +39,10 @@ Defined in: [supertokens-plugins/packages/opentelemetry-nodejs/src/pluginImpl.ts
3939| <a id = " gettracer" ></a > ` getTracer ` | (` this ` : [ ` PluginImpl ` ] ( #pluginimpl ) ) => ` Tracer ` | [ supertokens-plugins/packages/opentelemetry-nodejs/src/pluginImpl.ts:34] ( https://github.com/supertokens/supertokens-plugins/blob/main/packages/opentelemetry-nodejs/src/pluginImpl.ts#L34 ) |
4040| <a id = " gettracingheadersforcorecall" ></a > ` getTracingHeadersForCoreCall ` | (` this ` : [ ` PluginImpl ` ] ( #pluginimpl ) , ` req ` : ` HttpRequest ` , ` userContext ` : ` UserContext ` ) => [ ` Record ` ] ( https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type ) \< ` string ` , ` string ` \> | [ supertokens-plugins/packages/opentelemetry-nodejs/src/pluginImpl.ts:62] ( https://github.com/supertokens/supertokens-plugins/blob/main/packages/opentelemetry-nodejs/src/pluginImpl.ts#L62 ) |
4141| <a id = " startactivespan" ></a > ` startActiveSpan ` | \< ` T ` \> (` this ` : [ ` PluginImpl ` ] ( #pluginimpl ) , ` tracer ` : ` Tracer ` , ` spanName ` : ` string ` , ` attributes ` : [ ` Record ` ] ( https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type ) \< ` string ` , ` any ` \> , ` fn ` : (` span ` : ` Span ` ) => ` T ` ) => ` T ` | [ supertokens-plugins/packages/opentelemetry-nodejs/src/pluginImpl.ts:24] ( https://github.com/supertokens/supertokens-plugins/blob/main/packages/opentelemetry-nodejs/src/pluginImpl.ts#L24 ) |
42- | <a id = " startspan" ></a > ` startSpan ` | (` this ` : [ ` PluginImpl ` ] ( #pluginimpl ) , ` tracer ` : ` Tracer ` , ` spanName ` : ` string ` , ` attributes ` : [ ` Record ` ] ( https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type ) \< ` string ` , ` any ` \> ) => \{ ` addEvent ` : (` eventName ` : ` string ` , ` attributes ` : [ ` Record ` ] ( https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type ) \< ` string ` , ` AttributeValue ` \> ) => ` void ` ; ` end ` : () => ` void ` ; ` setAttributes ` : (` attributes ` : [ ` Record ` ] ( https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type ) \< ` string ` , ` AttributeValue ` \> ) => ` void ` ; ` setStatus ` : (` status ` : ` SpanStatus ` ) => ` void ` ; \} | [ supertokens-plugins/packages/opentelemetry-nodejs/src/pluginImpl.ts:10] ( https://github.com/supertokens/supertokens-plugins/blob/main/packages/opentelemetry-nodejs/src/pluginImpl.ts#L10 ) |
43- | <a id = " transformerrortoattributes" ></a > ` transformErrorToAttributes ` | (` this ` : [ ` PluginImpl ` ] ( #pluginimpl ) , ` error ` : ` unknown ` ) => [ ` Record ` ] ( https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type ) \< ` string ` , ` AttributeValue ` \> | [ supertokens-plugins/packages/opentelemetry-nodejs/src/pluginImpl.ts:50] ( https://github.com/supertokens/supertokens-plugins/blob/main/packages/opentelemetry-nodejs/src/pluginImpl.ts#L50 ) |
44- | <a id = " transforminputtoattributes" ></a > ` transformInputToAttributes ` | (` this ` : [ ` PluginImpl ` ] ( #pluginimpl ) , ` input ` : ` unknown ` ) => [ ` Record ` ] ( https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type ) \< ` string ` , ` AttributeValue ` \> | [ supertokens-plugins/packages/opentelemetry-nodejs/src/pluginImpl.ts:38] ( https://github.com/supertokens/supertokens-plugins/blob/main/packages/opentelemetry-nodejs/src/pluginImpl.ts#L38 ) |
45- | <a id = " transformresulttoattributes" ></a > ` transformResultToAttributes ` | (` this ` : [ ` PluginImpl ` ] ( #pluginimpl ) , ` input ` : ` unknown ` ) => [ ` Record ` ] ( https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type ) \< ` string ` , ` AttributeValue ` \> | [ supertokens-plugins/packages/opentelemetry-nodejs/src/pluginImpl.ts:44] ( https://github.com/supertokens/supertokens-plugins/blob/main/packages/opentelemetry-nodejs/src/pluginImpl.ts#L44 ) |
42+ | <a id = " startspan" ></a > ` startSpan ` | (` this ` : [ ` PluginImpl ` ] ( #pluginimpl ) , ` tracer ` : ` Tracer ` , ` spanName ` : ` string ` , ` attributes ` : [ ` Record ` ] ( https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type ) \< ` string ` , ` any ` \> ) => \{ ` addEvent ` : (` eventName ` : ` string ` , ` attributes ` : [ ` Record ` ] ( https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type ) \< ` string ` , [ ` BaseFormSection ` ] ( profile-details-nodejs.mdx#baseformsection ) \> ) => ` void ` ; ` end ` : () => ` void ` ; ` setAttributes ` : (` attributes ` : [ ` Record ` ] ( https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type ) \< ` string ` , [ ` BaseFormSection ` ] ( profile-details-nodejs.mdx#baseformsection ) \> ) => ` void ` ; ` setStatus ` : (` status ` : ` SpanStatus ` ) => ` void ` ; \} | [ supertokens-plugins/packages/opentelemetry-nodejs/src/pluginImpl.ts:10] ( https://github.com/supertokens/supertokens-plugins/blob/main/packages/opentelemetry-nodejs/src/pluginImpl.ts#L10 ) |
43+ | <a id = " transformerrortoattributes" ></a > ` transformErrorToAttributes ` | (` this ` : [ ` PluginImpl ` ] ( #pluginimpl ) , ` error ` : ` unknown ` ) => [ ` Record ` ] ( https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type ) \< ` string ` , [ ` BaseFormSection ` ] ( profile-details-nodejs.mdx#baseformsection ) \> | [ supertokens-plugins/packages/opentelemetry-nodejs/src/pluginImpl.ts:50] ( https://github.com/supertokens/supertokens-plugins/blob/main/packages/opentelemetry-nodejs/src/pluginImpl.ts#L50 ) |
44+ | <a id = " transforminputtoattributes" ></a > ` transformInputToAttributes ` | (` this ` : [ ` PluginImpl ` ] ( #pluginimpl ) , ` input ` : ` unknown ` ) => [ ` Record ` ] ( https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type ) \< ` string ` , [ ` BaseFormSection ` ] ( profile-details-nodejs.mdx#baseformsection ) \> | [ supertokens-plugins/packages/opentelemetry-nodejs/src/pluginImpl.ts:38] ( https://github.com/supertokens/supertokens-plugins/blob/main/packages/opentelemetry-nodejs/src/pluginImpl.ts#L38 ) |
45+ | <a id = " transformresulttoattributes" ></a > ` transformResultToAttributes ` | (` this ` : [ ` PluginImpl ` ] ( #pluginimpl ) , ` input ` : ` unknown ` ) => [ ` Record ` ] ( https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type ) \< ` string ` , [ ` BaseFormSection ` ] ( profile-details-nodejs.mdx#baseformsection ) \> | [ supertokens-plugins/packages/opentelemetry-nodejs/src/pluginImpl.ts:44] ( https://github.com/supertokens/supertokens-plugins/blob/main/packages/opentelemetry-nodejs/src/pluginImpl.ts#L44 ) |
4646
4747## Type Aliases
4848
@@ -66,7 +66,7 @@ type OTSpan = {
6666 addEvent: (eventName : string , attributes : Record <string , any >) => void ;
6767 end: () => void ;
6868 setAttributes: (attributes : Record <string , any >) => void ;
69- setStatus: (status : SpanStatus ) => void ;
69+ setStatus: (status : BaseFormSection ) => void ;
7070};
7171```
7272
@@ -79,7 +79,7 @@ Defined in: [supertokens-plugins/packages/opentelemetry-nodejs/src/types.ts:5](h
7979| <a id = " addevent" ></a > ` addEvent ` | (` eventName ` : ` string ` , ` attributes ` : [ ` Record ` ] ( https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type ) \< ` string ` , ` any ` \> ) => ` void ` | [ supertokens-plugins/packages/opentelemetry-nodejs/src/types.ts:7] ( https://github.com/supertokens/supertokens-plugins/blob/main/packages/opentelemetry-nodejs/src/types.ts#L7 ) |
8080| <a id = " end" ></a > ` end ` | () => ` void ` | [ supertokens-plugins/packages/opentelemetry-nodejs/src/types.ts:6] ( https://github.com/supertokens/supertokens-plugins/blob/main/packages/opentelemetry-nodejs/src/types.ts#L6 ) |
8181| <a id = " setattributes" ></a > ` setAttributes ` | (` attributes ` : [ ` Record ` ] ( https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type ) \< ` string ` , ` any ` \> ) => ` void ` | [ supertokens-plugins/packages/opentelemetry-nodejs/src/types.ts:8] ( https://github.com/supertokens/supertokens-plugins/blob/main/packages/opentelemetry-nodejs/src/types.ts#L8 ) |
82- | <a id = " setstatus" ></a > ` setStatus ` | (` status ` : ` SpanStatus ` ) => ` void ` | [ supertokens-plugins/packages/opentelemetry-nodejs/src/types.ts:9] ( https://github.com/supertokens/supertokens-plugins/blob/main/packages/opentelemetry-nodejs/src/types.ts#L9 ) |
82+ | <a id = " setstatus" ></a > ` setStatus ` | (` status ` : [ ` BaseFormSection ` ] ( profile-details-nodejs.mdx#baseformsection ) ) => ` void ` | [ supertokens-plugins/packages/opentelemetry-nodejs/src/types.ts:9] ( https://github.com/supertokens/supertokens-plugins/blob/main/packages/opentelemetry-nodejs/src/types.ts#L9 ) |
8383
8484***
8585
@@ -117,7 +117,7 @@ Defined in: [supertokens-plugins/packages/opentelemetry-nodejs/src/index.ts:5](h
117117
118118| Name | Type | Description | Defined in |
119119| ------ | ------ | ------ | ------ |
120- | <a id = " init" ></a > ` init ` | ` any ` | [ supertokens-plugins/packages/opentelemetry-nodejs/src/index.ts:5] ( https://github.com/supertokens/supertokens-plugins/blob/main/packages/opentelemetry-nodejs/src/index.ts#L5 ) |
120+ | <a id = " init" ></a > ` init ` | ` any ` | import { diag , DiagConsoleLogger , DiagLogLevel } from ' @ opentelemetry/api '; diag.setLogger(new DiagConsoleLogger(), DiagLogLevel.DEBUG); | [ supertokens-plugins/packages/opentelemetry-nodejs/src/index.ts:5] ( https://github.com/supertokens/supertokens-plugins/blob/main/packages/opentelemetry-nodejs/src/index.ts#L5 ) |
121121
122122***
123123
0 commit comments