@interopio/otel 0.0.184 → 0.0.186
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,9 +12,7 @@ export declare class NullTracesManager extends NullManager<IOInsights.TracesSett
|
|
|
12
12
|
withSpan<T>(source: string, filteringContextOrCallback: IOInsights.FilteringContext | IOInsights.WithSpanCallback<T>, propagationInfoOrCallback?: IOInsights.PropagationInfo | IOInsights.PropagationInfoCarrier | IOInsights.WithSpanCallback<T> | null, optionsOrCallback?: IOInsights.WithSpanOptions | IOInsights.WithSpanCallback<T> | null, callback?: IOInsights.WithSpanCallback<T>): T;
|
|
13
13
|
setFilterConfig(filters: IOInsights.SpanFilter[]): void;
|
|
14
14
|
get startupTraceFinished(): (() => void) | undefined;
|
|
15
|
-
setStartupTraceFinished(startupTraceFinished: () => void): void;
|
|
16
15
|
get userJourneyMarker(): IOInsights.MarkerSpanCallback | undefined;
|
|
17
16
|
setUserJourneyMarker(userJourneyMarker: IOInsights.MarkerSpanCallback): void;
|
|
18
17
|
get clickstreamMarker(): IOInsights.MarkerSpanCallback | undefined;
|
|
19
|
-
setClickstreamMarker(clickstreamMarker: IOInsights.MarkerSpanCallback): void;
|
|
20
18
|
}
|
|
@@ -72,8 +72,6 @@ class NullTracesManager extends nullManager_1.NullManager {
|
|
|
72
72
|
get startupTraceFinished() {
|
|
73
73
|
return (() => { });
|
|
74
74
|
}
|
|
75
|
-
setStartupTraceFinished(startupTraceFinished) {
|
|
76
|
-
}
|
|
77
75
|
get userJourneyMarker() {
|
|
78
76
|
return (() => { });
|
|
79
77
|
}
|
|
@@ -82,8 +80,6 @@ class NullTracesManager extends nullManager_1.NullManager {
|
|
|
82
80
|
get clickstreamMarker() {
|
|
83
81
|
return (() => { });
|
|
84
82
|
}
|
|
85
|
-
setClickstreamMarker(clickstreamMarker) {
|
|
86
|
-
}
|
|
87
83
|
}
|
|
88
84
|
exports.NullTracesManager = NullTracesManager;
|
|
89
85
|
//# sourceMappingURL=nullTracesManager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nullTracesManager.js","sourceRoot":"","sources":["../../src/traces/nullTracesManager.ts"],"names":[],"mappings":";;;;;;AAAA,0EAAkD;AAClD,sDAA8B;AAE9B,gDAA6C;AAC7C,4DAAwD;AACxD,MAAa,iBAAkB,SAAQ,yBAAsC;IAE3E,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,IAAK,EAAgC,CAAC;IAC7D,CAAC;IACD,IAAW,QAAQ,CAAC,KAAgC;QAClD,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;IACzB,CAAC;IACD,YAAoB,SAAgD,EAAE,YAA6C,EAAU,MAAqC;QAChK,IAAI,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,oBAAoB,MAAK,KAAK,EAAE;YAChD,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAC,4CAA4C,IAAA,8BAAa,EAAC,SAAS,CAAC,EAAE,CAAC,CAAC;SACtF;QACD,KAAK,EAAE,CAAC;QAJU,cAAS,GAAT,SAAS,CAAuC;QAAyD,WAAM,GAAN,MAAM,CAA+B;IAKlK,CAAC;IAED,IAAI,mBAAmB;QACrB,OAAO,IAAI,0BAAgB,CAAC,kBAAkB,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;IAED,IAAI,mBAAmB,CAAC,EAAkC;IAC1D,CAAC;IAED,kBAAkB,CAAC,SAA8B;QAC/C,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IAED,QAAQ,CACN,MACU,EACV,0BAEkC,EAClC,yBAIQ,EACR,iBAGQ,EACR,QACkC;;QAElC,MAAM,cAAc;QAClB,6CAA6C;QAC7C,OAAO,0BAA0B,KAAK,UAAU;YAC9C,CAAC,CAAC,0BAA0B;YAC5B,CAAC,CAAC,OAAO,yBAAyB,KAAK,UAAU;gBACjD,CAAC,CAAC,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DAAyD;QACzD,MAAM,GAAG,GAAG,IAAI,0BAAgB,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAErD,gBAAM,CAAC,mBAAmB,GAAG,GAAG,CAAC;QACjC,IAAI;YACF,OAAO,cAAc,CAAC,GAAG,CAAC,CAAC;SAC5B;gBAAS;YACR,gBAAM,CAAC,mBAAmB,GAAG,IAAI,CAAC;SACnC;IACH,CAAC;IAED,eAAe,CAAC,OAAgC;IAChD,CAAC;IAED,IAAW,oBAAoB;QAC7B,OAAO,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;IACpB,CAAC;IAED,IAAW,iBAAiB;QAC1B,OAAO,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;IACpB,CAAC;IAED,oBAAoB,CAAC,iBAAgD;IACrE,CAAC;IAED,IAAW,iBAAiB;QAC1B,OAAO,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;IACpB,CAAC;CACF;AApGD,8CAoGC"}
|
package/insights.d.ts
CHANGED
|
@@ -653,8 +653,6 @@ export namespace IOInsights {
|
|
|
653
653
|
*/
|
|
654
654
|
startupTraceFinished?: () => void;
|
|
655
655
|
|
|
656
|
-
setStartupTraceFinished(startupTraceFinished: () => void): void;
|
|
657
|
-
|
|
658
656
|
/**
|
|
659
657
|
* Optional callback function to programmatically create marker spans in the User Journey trace.
|
|
660
658
|
* Allows applications to mark significant points in a user's journey through the application
|
|
@@ -685,7 +683,6 @@ export namespace IOInsights {
|
|
|
685
683
|
* Works in conjunction with the clickstream setting to track detailed user interaction patterns.
|
|
686
684
|
*/
|
|
687
685
|
clickstreamMarker?: MarkerSpanCallback;
|
|
688
|
-
setClickstreamMarker(clickstreamMarker: MarkerSpanCallback): void;
|
|
689
686
|
|
|
690
687
|
setFilterConfig(filters: SpanFilter[]): void;
|
|
691
688
|
withSpan<T>(source: string, callback: WithSpanCallback<T>): T;
|
|
@@ -865,7 +862,7 @@ export namespace IOInsights {
|
|
|
865
862
|
* property to resolve the current context. See the documentation
|
|
866
863
|
* of the `useOTELContextManager` property for more details.
|
|
867
864
|
*
|
|
868
|
-
* @default
|
|
865
|
+
* @default false
|
|
869
866
|
*/
|
|
870
867
|
hybridContextMode?: boolean;
|
|
871
868
|
|
|
@@ -916,11 +913,6 @@ export namespace IOInsights {
|
|
|
916
913
|
* automatically be nested under the application startup trace.
|
|
917
914
|
*/
|
|
918
915
|
startupParentSpanTimeoutMs?: number;
|
|
919
|
-
/**
|
|
920
|
-
* Called by the application to signify that its startup has completed
|
|
921
|
-
* and no further spans should be nested under the startup trace.
|
|
922
|
-
*/
|
|
923
|
-
startupTraceFinished?: () => void;
|
|
924
916
|
|
|
925
917
|
/**
|
|
926
918
|
* If `true`, the application will create a span with the name `interopio.api.application.close` when
|
|
@@ -930,34 +922,6 @@ export namespace IOInsights {
|
|
|
930
922
|
* @default false
|
|
931
923
|
*/
|
|
932
924
|
closeTrace?: boolean;
|
|
933
|
-
/**
|
|
934
|
-
* Optional callback function to programmatically create marker spans in the Clickstream trace.
|
|
935
|
-
* Allows applications to mark specific user interaction events beyond automatic click tracking
|
|
936
|
-
* (e.g., custom UI interactions, gesture events, programmatic actions).
|
|
937
|
-
*
|
|
938
|
-
* The callback receives:
|
|
939
|
-
* - source: A descriptive name for the marker (e.g., "user-swiped-left", "custom-button-action")
|
|
940
|
-
* - data: Optional span data organized by verbosity level for detailed context
|
|
941
|
-
*
|
|
942
|
-
* Returns either PropagationInfo to link the marker span to other traces, or void.
|
|
943
|
-
*
|
|
944
|
-
* Works in conjunction with the clickstream setting to track detailed user interaction patterns.
|
|
945
|
-
*/
|
|
946
|
-
clickstreamMarker?: MarkerSpanCallback;
|
|
947
|
-
/**
|
|
948
|
-
* Optional callback function to programmatically create marker spans in the User Journey trace.
|
|
949
|
-
* Allows applications to mark significant points in a user's journey through the application
|
|
950
|
-
* (e.g., navigation events, key user actions, milestone completions).
|
|
951
|
-
*
|
|
952
|
-
* The callback receives:
|
|
953
|
-
* - source: A descriptive name for the marker (e.g., "user-navigated-to-dashboard")
|
|
954
|
-
* - data: Optional span data organized by verbosity level for detailed context
|
|
955
|
-
*
|
|
956
|
-
* Returns either PropagationInfo to link the marker span to other traces, or void.
|
|
957
|
-
*
|
|
958
|
-
* Works in conjunction with the userJourney setting to track the user's entire session flow.
|
|
959
|
-
*/
|
|
960
|
-
userJourneyMarker?: MarkerSpanCallback;
|
|
961
925
|
|
|
962
926
|
/**
|
|
963
927
|
* If an OTEL TraceProvider isn't provided to the library,
|
|
@@ -1393,7 +1357,7 @@ export namespace IOInsights {
|
|
|
1393
1357
|
export type MarkerSpanCallback = (
|
|
1394
1358
|
source: string,
|
|
1395
1359
|
data?: { [level in SpanVerbosity]: any }
|
|
1396
|
-
) => Promise<PropagationInfo> | void;
|
|
1360
|
+
) => Promise<PropagationInfo | null> | void;
|
|
1397
1361
|
|
|
1398
1362
|
/**
|
|
1399
1363
|
* Array type for span/log attributes that can contain primitive values or null/undefined.
|