@stainlessdev/xray-core 0.4.0 → 0.5.0
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.cjs +29 -105
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +38 -105
- package/dist/index.js.map +1 -1
- package/dist/internal.d.cts +2 -1
- package/dist/internal.d.ts +2 -1
- package/dist/{types-f9NNWwCi.d.cts → types-BA4cE85r.d.cts} +8 -1
- package/dist/{types-f9NNWwCi.d.ts → types-BA4cE85r.d.ts} +8 -1
- package/package.json +1 -3
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as _opentelemetry_sdk_trace_base from '@opentelemetry/sdk-trace-base';
|
|
2
|
+
|
|
1
3
|
interface ExporterConfig {
|
|
2
4
|
endpointUrl: string;
|
|
3
5
|
headers?: Record<string, string>;
|
|
@@ -38,6 +40,11 @@ interface XrayConfig {
|
|
|
38
40
|
requestId?: Partial<RequestIdConfig>;
|
|
39
41
|
route?: Partial<RouteConfig>;
|
|
40
42
|
}
|
|
43
|
+
type XrayRuntimeConfig = Omit<XrayConfig, 'exporter'> & {
|
|
44
|
+
exporter?: Partial<ExporterConfig> & {
|
|
45
|
+
instance?: _opentelemetry_sdk_trace_base.SpanExporter;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
41
48
|
interface ResolvedXrayConfig {
|
|
42
49
|
serviceName: string;
|
|
43
50
|
environment?: string;
|
|
@@ -128,4 +135,4 @@ interface XrayEmitter {
|
|
|
128
135
|
shutdown(): Promise<void>;
|
|
129
136
|
}
|
|
130
137
|
|
|
131
|
-
export { type AttributeValue as A, type CapturedBody as C, type ExporterConfig as E, type LogLevel as L, type NormalizedRequest as N, type RequestLog as R, type XrayConfig as X, type XrayEmitter as a, type Logger as b, type NormalizedResponse as c, type XrayContext as d, type CaptureConfig as e, type RedactionConfig as f, type RequestIdConfig as g, type ResolvedXrayConfig as h, type RouteConfig as i,
|
|
138
|
+
export { type AttributeValue as A, type CapturedBody as C, type ExporterConfig as E, type LogLevel as L, type NormalizedRequest as N, type RequestLog as R, type XrayConfig as X, type XrayEmitter as a, type Logger as b, type NormalizedResponse as c, type XrayContext as d, type CaptureConfig as e, type RedactionConfig as f, type RequestIdConfig as g, type ResolvedXrayConfig as h, type RouteConfig as i, type XrayRuntimeConfig as j, XrayConfigError as k, normalizeConfig as n };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as _opentelemetry_sdk_trace_base from '@opentelemetry/sdk-trace-base';
|
|
2
|
+
|
|
1
3
|
interface ExporterConfig {
|
|
2
4
|
endpointUrl: string;
|
|
3
5
|
headers?: Record<string, string>;
|
|
@@ -38,6 +40,11 @@ interface XrayConfig {
|
|
|
38
40
|
requestId?: Partial<RequestIdConfig>;
|
|
39
41
|
route?: Partial<RouteConfig>;
|
|
40
42
|
}
|
|
43
|
+
type XrayRuntimeConfig = Omit<XrayConfig, 'exporter'> & {
|
|
44
|
+
exporter?: Partial<ExporterConfig> & {
|
|
45
|
+
instance?: _opentelemetry_sdk_trace_base.SpanExporter;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
41
48
|
interface ResolvedXrayConfig {
|
|
42
49
|
serviceName: string;
|
|
43
50
|
environment?: string;
|
|
@@ -128,4 +135,4 @@ interface XrayEmitter {
|
|
|
128
135
|
shutdown(): Promise<void>;
|
|
129
136
|
}
|
|
130
137
|
|
|
131
|
-
export { type AttributeValue as A, type CapturedBody as C, type ExporterConfig as E, type LogLevel as L, type NormalizedRequest as N, type RequestLog as R, type XrayConfig as X, type XrayEmitter as a, type Logger as b, type NormalizedResponse as c, type XrayContext as d, type CaptureConfig as e, type RedactionConfig as f, type RequestIdConfig as g, type ResolvedXrayConfig as h, type RouteConfig as i,
|
|
138
|
+
export { type AttributeValue as A, type CapturedBody as C, type ExporterConfig as E, type LogLevel as L, type NormalizedRequest as N, type RequestLog as R, type XrayConfig as X, type XrayEmitter as a, type Logger as b, type NormalizedResponse as c, type XrayContext as d, type CaptureConfig as e, type RedactionConfig as f, type RequestIdConfig as g, type ResolvedXrayConfig as h, type RouteConfig as i, type XrayRuntimeConfig as j, XrayConfigError as k, normalizeConfig as n };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stainlessdev/xray-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Core instrumentation for Stainless X-ray request logging",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@opentelemetry/api": "^1.9.0",
|
|
29
29
|
"@opentelemetry/core": "^2.2.0",
|
|
30
|
-
"@opentelemetry/otlp-transformer": "^0.208.0",
|
|
31
30
|
"@opentelemetry/resources": "^2.2.0",
|
|
32
31
|
"@opentelemetry/sdk-trace-base": "^2.2.0",
|
|
33
32
|
"@opentelemetry/semantic-conventions": "^1.29.0",
|
|
@@ -40,7 +39,6 @@
|
|
|
40
39
|
"peerDependencies": {
|
|
41
40
|
"@opentelemetry/api": "^1.9.0",
|
|
42
41
|
"@opentelemetry/core": "^2.2.0",
|
|
43
|
-
"@opentelemetry/otlp-transformer": "^0.208.0",
|
|
44
42
|
"@opentelemetry/resources": "^2.2.0",
|
|
45
43
|
"@opentelemetry/sdk-trace-base": "^2.2.0",
|
|
46
44
|
"@opentelemetry/semantic-conventions": "^1.29.0"
|