@contello/opentelemetry 2.1.2 → 2.1.3
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 +3 -6
- package/dist/index.d.cts +0 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -6
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let _entwico_dash = require("@entwico/dash");
|
|
3
3
|
let node_module = require("node:module");
|
|
4
|
-
|
|
4
|
+
// src/api.ts
|
|
5
5
|
function loadApi() {
|
|
6
6
|
try {
|
|
7
7
|
return (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href)("@opentelemetry/api");
|
|
@@ -10,8 +10,7 @@ function loadApi() {
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
const api = loadApi();
|
|
13
|
-
|
|
14
|
-
//#region src/env.ts
|
|
13
|
+
// src/env.ts
|
|
15
14
|
function envFlag(name, defaultValue) {
|
|
16
15
|
const raw = process.env[name];
|
|
17
16
|
if (raw === void 0) return defaultValue;
|
|
@@ -29,8 +28,7 @@ const otelEnv = {
|
|
|
29
28
|
captureQuery: envFlag("OTEL_CONTELLO_CAPTURE_QUERY", false),
|
|
30
29
|
captureVariables: envFlag("OTEL_CONTELLO_CAPTURE_VARIABLES", false)
|
|
31
30
|
};
|
|
32
|
-
|
|
33
|
-
//#region src/index.ts
|
|
31
|
+
// src/index.ts
|
|
34
32
|
const otel = otelEnv.enabled ? api : void 0;
|
|
35
33
|
function parseOperationAttributes(name) {
|
|
36
34
|
const colonIndex = name.indexOf(":");
|
|
@@ -133,7 +131,6 @@ function injectTraceContext(message) {
|
|
|
133
131
|
if (carrier["tracestate"]) message.tracestate = carrier["tracestate"];
|
|
134
132
|
return message;
|
|
135
133
|
}
|
|
136
|
-
//#endregion
|
|
137
134
|
exports.createOperationTelemetry = createOperationTelemetry;
|
|
138
135
|
exports.graphqlOperationAttributes = graphqlOperationAttributes;
|
|
139
136
|
exports.injectTraceContext = injectTraceContext;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/index.d.ts
|
|
2
1
|
export type OperationAttributes = Record<string, string | number | boolean>;
|
|
3
2
|
export type OperationTelemetry = {
|
|
4
3
|
/**
|
|
@@ -29,5 +28,4 @@ export declare function graphqlOperationAttributes(document: string, variables?:
|
|
|
29
28
|
* WebSocket message. Returns the message unchanged when telemetry is disabled.
|
|
30
29
|
*/
|
|
31
30
|
export declare function injectTraceContext(message: any): any;
|
|
32
|
-
//#endregion
|
|
33
31
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":"A,YAMY,sBAAsB;YAEtB;;;;;;EAMV,OAAO,GAAG,cAAc,UAAU,GAAG,aAAa,oCAAoC;;wBAaxE,yBAAyB,gBAAgB;;;;;;;wBA0EzC,iBAAiB;EAC/B;EACA,aAAa;;;;;;wBAyBC,2BACd,kBACA,YAAY,sCACX;;;;;wBAsBa,mBAAmB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/index.d.ts
|
|
2
1
|
export type OperationAttributes = Record<string, string | number | boolean>;
|
|
3
2
|
export type OperationTelemetry = {
|
|
4
3
|
/**
|
|
@@ -29,5 +28,4 @@ export declare function graphqlOperationAttributes(document: string, variables?:
|
|
|
29
28
|
* WebSocket message. Returns the message unchanged when telemetry is disabled.
|
|
30
29
|
*/
|
|
31
30
|
export declare function injectTraceContext(message: any): any;
|
|
32
|
-
//#endregion
|
|
33
31
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":"A,YAMY,sBAAsB;YAEtB;;;;;;EAMV,OAAO,GAAG,cAAc,UAAU,GAAG,aAAa,oCAAoC;;wBAaxE,yBAAyB,gBAAgB;;;;;;;wBA0EzC,iBAAiB;EAC/B;EACA,aAAa;;;;;;wBAyBC,2BACd,kBACA,YAAY,sCACX;;;;;wBAsBa,mBAAmB"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
import { maybeThen } from "@entwico/dash";
|
|
3
|
-
|
|
3
|
+
// src/api.ts
|
|
4
4
|
function loadApi() {
|
|
5
5
|
try {
|
|
6
6
|
return createRequire(import.meta.url)("@opentelemetry/api");
|
|
@@ -9,8 +9,7 @@ function loadApi() {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
const api = loadApi();
|
|
12
|
-
|
|
13
|
-
//#region src/env.ts
|
|
12
|
+
// src/env.ts
|
|
14
13
|
function envFlag(name, defaultValue) {
|
|
15
14
|
const raw = process.env[name];
|
|
16
15
|
if (raw === void 0) return defaultValue;
|
|
@@ -28,8 +27,7 @@ const otelEnv = {
|
|
|
28
27
|
captureQuery: envFlag("OTEL_CONTELLO_CAPTURE_QUERY", false),
|
|
29
28
|
captureVariables: envFlag("OTEL_CONTELLO_CAPTURE_VARIABLES", false)
|
|
30
29
|
};
|
|
31
|
-
|
|
32
|
-
//#region src/index.ts
|
|
30
|
+
// src/index.ts
|
|
33
31
|
const otel = otelEnv.enabled ? api : void 0;
|
|
34
32
|
function parseOperationAttributes(name) {
|
|
35
33
|
const colonIndex = name.indexOf(":");
|
|
@@ -132,7 +130,6 @@ function injectTraceContext(message) {
|
|
|
132
130
|
if (carrier["tracestate"]) message.tracestate = carrier["tracestate"];
|
|
133
131
|
return message;
|
|
134
132
|
}
|
|
135
|
-
//#endregion
|
|
136
133
|
export { createOperationTelemetry, graphqlOperationAttributes, injectTraceContext, updateActiveSpan };
|
|
137
134
|
|
|
138
135
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/api.ts","../src/env.ts","../src/index.ts"],"sourcesContent":["import { createRequire } from 'node:module';\nimport type * as otelApi from '@opentelemetry/api';\n\nexport type OtelApi = typeof otelApi;\n\nfunction loadApi(): OtelApi | undefined {\n try {\n return createRequire(import.meta.url)('@opentelemetry/api') as OtelApi;\n } catch {\n // @opentelemetry/api is not installed — telemetry stays disabled\n return undefined;\n }\n}\n\nexport const api = loadApi();\n","function envFlag(name: string, defaultValue: boolean): boolean {\n const raw = process.env[name];\n\n if (raw === undefined) {\n return defaultValue;\n }\n\n const value = raw.trim().toLowerCase();\n\n if (value === '') {\n return defaultValue;\n }\n\n return !['false', '0', 'no', 'off'].includes(value);\n}\n\nexport const otelEnv = {\n enabled: envFlag('OTEL_CONTELLO_ENABLED', true),\n captureQuery: envFlag('OTEL_CONTELLO_CAPTURE_QUERY', false),\n captureVariables: envFlag('OTEL_CONTELLO_CAPTURE_VARIABLES', false),\n} as const;\n","import { maybeThen } from '@entwico/dash';\nimport { api } from './api';\nimport { otelEnv } from './env';\n\nconst otel = otelEnv.enabled ? api : undefined;\n\nexport type OperationAttributes = Record<string, string | number | boolean>;\n\nexport type OperationTelemetry = {\n /**\n * Runs `fn` inside an active span named `name` (convention: `category:operation`) and records\n * duration/error metrics. Sync results are attributed `cached: true`, promises `cached: false`.\n * Zero-overhead pass-through when `@opentelemetry/api` is absent or `OTEL_CONTELLO_ENABLED=false`.\n */\n wrap: <T>(name: string, fn: () => T, attributes?: OperationAttributes | undefined) => T;\n};\n\nfunction parseOperationAttributes(name: string): OperationAttributes {\n const colonIndex = name.indexOf(':');\n\n if (colonIndex === -1) {\n return { category: 'unknown', operation: name };\n }\n\n return { category: name.slice(0, colonIndex), operation: name.slice(colonIndex + 1) };\n}\n\nexport function createOperationTelemetry(scope: string): OperationTelemetry {\n if (!otel) {\n return { wrap: (_name, fn) => fn() };\n }\n\n const { SpanStatusCode } = otel;\n const tracer = otel.trace.getTracer(scope);\n const meter = otel.metrics.getMeter(scope);\n\n const duration = meter.createHistogram('contello.operation.duration', {\n description: 'duration of contello operations',\n unit: 'ms',\n });\n\n const errors = meter.createCounter('contello.operation.error', {\n description: 'number of failed contello operations',\n });\n\n const wrap = <T>(name: string, fn: () => T, attributes?: OperationAttributes | undefined): T => {\n const attrs = { ...parseOperationAttributes(name), ...attributes };\n\n return tracer.startActiveSpan(name, { attributes: attrs }, (span) => {\n const start = performance.now();\n\n const finish = (cached: boolean) => {\n span.setAttribute('cached', cached);\n duration.record(performance.now() - start, { ...attrs, cached });\n span.end();\n };\n\n const fail = (error: unknown): never => {\n duration.record(performance.now() - start, { ...attrs, cached: false });\n errors.add(1, attrs);\n span.recordException(error as Error);\n span.setStatus({\n code: SpanStatusCode.ERROR,\n message: error instanceof Error ? error.message : String(error),\n });\n span.end();\n\n throw error;\n };\n\n let result: T;\n\n try {\n result = fn();\n } catch (error) {\n return fail(error);\n }\n\n const cached = !(result instanceof Promise);\n\n return maybeThen(\n result,\n (value) => {\n finish(cached);\n\n return value;\n },\n fail,\n ) as T;\n });\n };\n\n return { wrap };\n}\n\n/**\n * Renames the active span and/or merges attributes into it. No-op when telemetry is\n * disabled, `@opentelemetry/api` is absent, or no recording span is active. Used to\n * enrich an outer span (e.g. the platform HTTP server span) with context only the\n * contello layer knows.\n */\nexport function updateActiveSpan(update: {\n name?: string | undefined;\n attributes?: OperationAttributes | undefined;\n}): void {\n if (!otel) {\n return;\n }\n\n const span = otel.trace.getActiveSpan();\n\n if (!span?.isRecording()) {\n return;\n }\n\n if (update.attributes) {\n span.setAttributes(update.attributes);\n }\n\n if (update.name) {\n span.updateName(update.name);\n }\n}\n\n/**\n * Attributes for GraphQL operation spans, gated by `OTEL_CONTELLO_CAPTURE_QUERY` and\n * `OTEL_CONTELLO_CAPTURE_VARIABLES` (both off by default).\n */\nexport function graphqlOperationAttributes(\n document: string,\n variables?: Record<string, unknown> | undefined,\n): OperationAttributes | undefined {\n if (!otel || (!otelEnv.captureQuery && !otelEnv.captureVariables)) {\n return undefined;\n }\n\n const attrs: OperationAttributes = {};\n\n if (otelEnv.captureQuery) {\n attrs['graphql.document'] = document;\n }\n\n if (variables !== undefined && otelEnv.captureVariables) {\n attrs['graphql.variables'] = JSON.stringify(variables);\n }\n\n return attrs;\n}\n\n/**\n * Injects W3C trace context (`traceparent` / `tracestate`) into an outgoing GraphQL\n * WebSocket message. Returns the message unchanged when telemetry is disabled.\n */\nexport function injectTraceContext(message: any): any {\n if (!otel) {\n return message;\n }\n\n const carrier: Record<string, string> = {};\n\n otel.propagation.inject(otel.context.active(), carrier);\n\n if (carrier['traceparent']) {\n message.traceparent = carrier['traceparent'];\n }\n\n if (carrier['tracestate']) {\n message.tracestate = carrier['tracestate'];\n }\n\n return message;\n}\n"],"mappings":";;;AAKA,SAAS,UAA+B;CACtC,IAAI;EACF,OAAO,cAAc,YAAY,GAAG,CAAC,CAAC,oBAAoB;CAC5D,QAAQ;EAEN;CACF;AACF;AAEA,MAAa,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/api.ts","../src/env.ts","../src/index.ts"],"sourcesContent":["import { createRequire } from 'node:module';\nimport type * as otelApi from '@opentelemetry/api';\n\nexport type OtelApi = typeof otelApi;\n\nfunction loadApi(): OtelApi | undefined {\n try {\n return createRequire(import.meta.url)('@opentelemetry/api') as OtelApi;\n } catch {\n // @opentelemetry/api is not installed — telemetry stays disabled\n return undefined;\n }\n}\n\nexport const api = loadApi();\n","function envFlag(name: string, defaultValue: boolean): boolean {\n const raw = process.env[name];\n\n if (raw === undefined) {\n return defaultValue;\n }\n\n const value = raw.trim().toLowerCase();\n\n if (value === '') {\n return defaultValue;\n }\n\n return !['false', '0', 'no', 'off'].includes(value);\n}\n\nexport const otelEnv = {\n enabled: envFlag('OTEL_CONTELLO_ENABLED', true),\n captureQuery: envFlag('OTEL_CONTELLO_CAPTURE_QUERY', false),\n captureVariables: envFlag('OTEL_CONTELLO_CAPTURE_VARIABLES', false),\n} as const;\n","import { maybeThen } from '@entwico/dash';\nimport { api } from './api';\nimport { otelEnv } from './env';\n\nconst otel = otelEnv.enabled ? api : undefined;\n\nexport type OperationAttributes = Record<string, string | number | boolean>;\n\nexport type OperationTelemetry = {\n /**\n * Runs `fn` inside an active span named `name` (convention: `category:operation`) and records\n * duration/error metrics. Sync results are attributed `cached: true`, promises `cached: false`.\n * Zero-overhead pass-through when `@opentelemetry/api` is absent or `OTEL_CONTELLO_ENABLED=false`.\n */\n wrap: <T>(name: string, fn: () => T, attributes?: OperationAttributes | undefined) => T;\n};\n\nfunction parseOperationAttributes(name: string): OperationAttributes {\n const colonIndex = name.indexOf(':');\n\n if (colonIndex === -1) {\n return { category: 'unknown', operation: name };\n }\n\n return { category: name.slice(0, colonIndex), operation: name.slice(colonIndex + 1) };\n}\n\nexport function createOperationTelemetry(scope: string): OperationTelemetry {\n if (!otel) {\n return { wrap: (_name, fn) => fn() };\n }\n\n const { SpanStatusCode } = otel;\n const tracer = otel.trace.getTracer(scope);\n const meter = otel.metrics.getMeter(scope);\n\n const duration = meter.createHistogram('contello.operation.duration', {\n description: 'duration of contello operations',\n unit: 'ms',\n });\n\n const errors = meter.createCounter('contello.operation.error', {\n description: 'number of failed contello operations',\n });\n\n const wrap = <T>(name: string, fn: () => T, attributes?: OperationAttributes | undefined): T => {\n const attrs = { ...parseOperationAttributes(name), ...attributes };\n\n return tracer.startActiveSpan(name, { attributes: attrs }, (span) => {\n const start = performance.now();\n\n const finish = (cached: boolean) => {\n span.setAttribute('cached', cached);\n duration.record(performance.now() - start, { ...attrs, cached });\n span.end();\n };\n\n const fail = (error: unknown): never => {\n duration.record(performance.now() - start, { ...attrs, cached: false });\n errors.add(1, attrs);\n span.recordException(error as Error);\n span.setStatus({\n code: SpanStatusCode.ERROR,\n message: error instanceof Error ? error.message : String(error),\n });\n span.end();\n\n throw error;\n };\n\n let result: T;\n\n try {\n result = fn();\n } catch (error) {\n return fail(error);\n }\n\n const cached = !(result instanceof Promise);\n\n return maybeThen(\n result,\n (value) => {\n finish(cached);\n\n return value;\n },\n fail,\n ) as T;\n });\n };\n\n return { wrap };\n}\n\n/**\n * Renames the active span and/or merges attributes into it. No-op when telemetry is\n * disabled, `@opentelemetry/api` is absent, or no recording span is active. Used to\n * enrich an outer span (e.g. the platform HTTP server span) with context only the\n * contello layer knows.\n */\nexport function updateActiveSpan(update: {\n name?: string | undefined;\n attributes?: OperationAttributes | undefined;\n}): void {\n if (!otel) {\n return;\n }\n\n const span = otel.trace.getActiveSpan();\n\n if (!span?.isRecording()) {\n return;\n }\n\n if (update.attributes) {\n span.setAttributes(update.attributes);\n }\n\n if (update.name) {\n span.updateName(update.name);\n }\n}\n\n/**\n * Attributes for GraphQL operation spans, gated by `OTEL_CONTELLO_CAPTURE_QUERY` and\n * `OTEL_CONTELLO_CAPTURE_VARIABLES` (both off by default).\n */\nexport function graphqlOperationAttributes(\n document: string,\n variables?: Record<string, unknown> | undefined,\n): OperationAttributes | undefined {\n if (!otel || (!otelEnv.captureQuery && !otelEnv.captureVariables)) {\n return undefined;\n }\n\n const attrs: OperationAttributes = {};\n\n if (otelEnv.captureQuery) {\n attrs['graphql.document'] = document;\n }\n\n if (variables !== undefined && otelEnv.captureVariables) {\n attrs['graphql.variables'] = JSON.stringify(variables);\n }\n\n return attrs;\n}\n\n/**\n * Injects W3C trace context (`traceparent` / `tracestate`) into an outgoing GraphQL\n * WebSocket message. Returns the message unchanged when telemetry is disabled.\n */\nexport function injectTraceContext(message: any): any {\n if (!otel) {\n return message;\n }\n\n const carrier: Record<string, string> = {};\n\n otel.propagation.inject(otel.context.active(), carrier);\n\n if (carrier['traceparent']) {\n message.traceparent = carrier['traceparent'];\n }\n\n if (carrier['tracestate']) {\n message.tracestate = carrier['tracestate'];\n }\n\n return message;\n}\n"],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contello/opentelemetry",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "Shared OpenTelemetry telemetry core for @contello packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"directory": "packages/opentelemetry"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@entwico/dash": "^1.
|
|
14
|
+
"@entwico/dash": "^1.4.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@opentelemetry/api": ">=1.9.0"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@opentelemetry/api": "^1.
|
|
25
|
+
"@opentelemetry/api": "^1.10.0"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
28
|
"dist"
|