@interopio/otel 0.1.0 → 0.1.1
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.
- package/dist/index.d.ts +0 -16
- package/dist/index.js.map +1 -1
- package/insights.d.ts +0 -17
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -84,13 +84,6 @@ export type TracingState = IOInsights.TracingState;
|
|
|
84
84
|
export type WithSpanCallback<T> = IOInsights.WithSpanCallback<T>;
|
|
85
85
|
export type WithSpanOptions = IOInsights.WithSpanOptions;
|
|
86
86
|
export type WithSpanDecoratorOptions = IOInsights.WithSpanDecoratorOptions;
|
|
87
|
-
export type ioInsightsAutoInstrumentationsPlugin = {
|
|
88
|
-
registerInstrumentations: (options: AutoLoaderOptions) => void;
|
|
89
|
-
newDocumentLoadInstrumentation: (config?: DocumentLoadInstrumentationConfig) => DocumentLoadInstrumentation;
|
|
90
|
-
newUserInteractionInstrumentation: (config?: UserInteractionInstrumentationConfig) => UserInteractionInstrumentation;
|
|
91
|
-
newFetchInstrumentation: (config?: FetchInstrumentationConfig) => FetchInstrumentation;
|
|
92
|
-
newXMLHttpRequestInstrumentation: (config?: XMLHttpRequestInstrumentationConfig) => XMLHttpRequestInstrumentation;
|
|
93
|
-
};
|
|
94
87
|
import Traces, { withSpan } from "./traces/traces";
|
|
95
88
|
export { Traces, withSpan };
|
|
96
89
|
export declare const OTEL_PI_KEY = "__interopIOTracePropagationInfo";
|
|
@@ -102,15 +95,6 @@ export type ioInsightsLogsPlugin = {
|
|
|
102
95
|
export type LogsManager = IOInsights.LogsManager;
|
|
103
96
|
export type LogsSettings = IOInsights.LogsSettings;
|
|
104
97
|
export { Logs } from "./logs/logs";
|
|
105
|
-
export { type DocumentLoadInstrumentationConfig } from "@opentelemetry/instrumentation-document-load";
|
|
106
|
-
export { type FetchInstrumentationConfig } from "@opentelemetry/instrumentation-fetch";
|
|
107
|
-
export type UserInteractionInstrumentationConfig = IOInsights.UserInteractionInstrumentationConfig;
|
|
108
|
-
export { type XMLHttpRequestInstrumentationConfig } from "@opentelemetry/instrumentation-xml-http-request";
|
|
109
|
-
import { type DocumentLoadInstrumentation, type DocumentLoadInstrumentationConfig } from "@opentelemetry/instrumentation-document-load";
|
|
110
|
-
import { type UserInteractionInstrumentation } from "@opentelemetry/instrumentation-user-interaction";
|
|
111
|
-
import { type FetchInstrumentation, type FetchInstrumentationConfig } from "@opentelemetry/instrumentation-fetch";
|
|
112
|
-
import { type XMLHttpRequestInstrumentation, type XMLHttpRequestInstrumentationConfig } from "@opentelemetry/instrumentation-xml-http-request";
|
|
113
|
-
import { type AutoLoaderOptions } from "@opentelemetry/instrumentation";
|
|
114
98
|
import { type DiagAPI } from "@opentelemetry/api";
|
|
115
99
|
import { type DetectedResourceAttributes, type Resource } from "@opentelemetry/resources";
|
|
116
100
|
import { type InMemoryMetricExporter } from "@opentelemetry/sdk-metrics";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASC,CAAC;AAKF,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,wDAAuD;AAA9C,8GAAA,aAAa,OAAA;AACtB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AA0BlB,uCAA4C;AAAnC,kGAAA,UAAU,OAAA;AACnB,+EAA8E;AAArE,oIAAA,wBAAwB,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASC,CAAC;AAKF,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,wDAAuD;AAA9C,8GAAA,aAAa,OAAA;AACtB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AA0BlB,uCAA4C;AAAnC,kGAAA,UAA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7 +13,6 @@ import {
|
|
|
13
13
|
type TimeInput,
|
|
14
14
|
type TracerProvider,
|
|
15
15
|
} from "@opentelemetry/api";
|
|
16
|
-
import { type UserInteractionInstrumentationConfig as UserInteractionInstrumentationConfigBase } from "@opentelemetry/instrumentation-user-interaction";
|
|
17
16
|
import { type LogRecord } from "@opentelemetry/api-logs";
|
|
18
17
|
import {
|
|
19
18
|
type CompressionAlgorithm,
|
|
@@ -27,9 +26,6 @@ import {
|
|
|
27
26
|
type SpanProcessor,
|
|
28
27
|
type TracerConfig,
|
|
29
28
|
} from "@opentelemetry/sdk-trace-base";
|
|
30
|
-
import { type DocumentLoadInstrumentationConfig } from "@opentelemetry/instrumentation-document-load";
|
|
31
|
-
import { type FetchInstrumentationConfig } from "@opentelemetry/instrumentation-fetch";
|
|
32
|
-
import { type XMLHttpRequestInstrumentationConfig } from "@opentelemetry/instrumentation-xml-http-request";
|
|
33
29
|
import {
|
|
34
30
|
type BatchLogRecordProcessorBrowserConfig,
|
|
35
31
|
type LoggerProvider,
|
|
@@ -1727,19 +1723,6 @@ export namespace IOInsights {
|
|
|
1727
1723
|
sample: number | boolean;
|
|
1728
1724
|
}
|
|
1729
1725
|
|
|
1730
|
-
/**
|
|
1731
|
-
* Configuration for automatic instrumentation of user interactions.
|
|
1732
|
-
* Extends the base OpenTelemetry user interaction instrumentation with additional throttling options.
|
|
1733
|
-
*/
|
|
1734
|
-
export interface UserInteractionInstrumentationConfig
|
|
1735
|
-
extends UserInteractionInstrumentationConfigBase {
|
|
1736
|
-
/**
|
|
1737
|
-
* Minimum interval in milliseconds between capturing consecutive user interaction events.
|
|
1738
|
-
* Used to throttle high-frequency interactions and reduce span volume.
|
|
1739
|
-
*/
|
|
1740
|
-
throttleIntervalMs?: number;
|
|
1741
|
-
}
|
|
1742
|
-
|
|
1743
1726
|
/**
|
|
1744
1727
|
* Configuration for Clickstream trace behavior.
|
|
1745
1728
|
* Controls how user interaction events are tracked and organized in traces.
|