autotel-tanstack 1.13.58 → 1.14.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/README.md CHANGED
@@ -199,7 +199,7 @@ const handler = createTracingServerHandler({
199
199
 
200
200
  ### Server Function Spans
201
201
 
202
- - `rpc.system` - "tanstack-start"
202
+ - `rpc.system.name` - "tanstack-start"
203
203
  - `rpc.method` - Function name
204
204
  - `tanstack.server_function.name` - Function name
205
205
  - `tanstack.server_function.method` - HTTP method
package/dist/auto.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { n as instrument } from "./instrument-B4bfWksz.js";
2
2
  import { functionTracingMiddleware, tracingMiddleware } from "./middleware.js";
3
3
  import { traceServerFn } from "./server-functions.js";
4
- import { n as traceBeforeLoad, r as traceLoader } from "./loaders-v21GtI_c.js";
4
+ import { n as traceBeforeLoad, r as traceLoader } from "./loaders-CTK-UHdg.js";
5
5
  //#region src/auto.d.ts
6
6
  /** Check if auto-instrumentation is active. */
7
7
  declare function isAutoInstrumentationActive(): boolean;
@@ -1,4 +1,4 @@
1
- import { c as WrapStartHandlerConfig } from "../types-BJ7FyVoX.js";
1
+ import { c as WrapStartHandlerConfig } from "../types-CrBF_-MC.js";
2
2
  //#region src/browser/handlers.d.ts
3
3
  /**
4
4
  * Handler type
@@ -1,5 +1,5 @@
1
1
  import { HeadersInitType, createTracedHeaders, extractContextFromRequest, getActiveContext, getCurrentSpanId, getCurrentTraceId, getTraceParent, getTraceState, injectContextToHeaders, runInContext } from "./context.js";
2
- import { a as TraceLoaderConfig, c as WrapStartHandlerConfig, i as TanStackInstrumentationConfig, n as DEFAULT_CONFIG, o as TraceServerFnConfig, r as SPAN_ATTRIBUTES, s as TracingMiddlewareConfig, t as Attributes } from "../types-BJ7FyVoX.js";
2
+ import { a as TraceLoaderConfig, c as WrapStartHandlerConfig, i as TanStackInstrumentationConfig, n as DEFAULT_CONFIG, o as TraceServerFnConfig, r as SPAN_ATTRIBUTES, s as TracingMiddlewareConfig, t as Attributes } from "../types-CrBF_-MC.js";
3
3
  import { MiddlewareHandler, createTracingMiddleware, createTracingServerHandler, functionTracingMiddleware, tracingMiddleware } from "./middleware.js";
4
4
  import { debugHeadersMiddleware } from "./debug-headers.js";
5
5
  import { ErrorEntry, clearErrors, createErrorReportingHandler, getRecentErrors, reportError, withErrorReporting } from "./error-reporting.js";
@@ -1,4 +1,4 @@
1
- import { a as TraceLoaderConfig } from "../types-BJ7FyVoX.js";
1
+ import { a as TraceLoaderConfig } from "../types-CrBF_-MC.js";
2
2
  //#region src/browser/loaders.d.ts
3
3
  /**
4
4
  * Loader context type (compatible with TanStack router loader context)
@@ -1,4 +1,4 @@
1
- import { s as TracingMiddlewareConfig } from "../types-BJ7FyVoX.js";
1
+ import { s as TracingMiddlewareConfig } from "../types-CrBF_-MC.js";
2
2
  //#region src/browser/middleware.d.ts
3
3
  /**
4
4
  * Generic middleware handler type
@@ -1,4 +1,4 @@
1
- import { o as TraceServerFnConfig } from "../types-BJ7FyVoX.js";
1
+ import { o as TraceServerFnConfig } from "../types-CrBF_-MC.js";
2
2
  //#region src/browser/server-functions.d.ts
3
3
  /**
4
4
  * Browser stub: Returns the server function unchanged
@@ -1,2 +1,2 @@
1
- import { a as TraceLoaderConfig, c as WrapStartHandlerConfig, i as TanStackInstrumentationConfig, n as DEFAULT_CONFIG, o as TraceServerFnConfig, r as SPAN_ATTRIBUTES, s as TracingMiddlewareConfig, t as Attributes } from "../types-BJ7FyVoX.js";
1
+ import { a as TraceLoaderConfig, c as WrapStartHandlerConfig, i as TanStackInstrumentationConfig, n as DEFAULT_CONFIG, o as TraceServerFnConfig, r as SPAN_ATTRIBUTES, s as TracingMiddlewareConfig, t as Attributes } from "../types-CrBF_-MC.js";
2
2
  export { Attributes, DEFAULT_CONFIG, SPAN_ATTRIBUTES, TanStackInstrumentationConfig, TraceLoaderConfig, TraceServerFnConfig, TracingMiddlewareConfig, WrapStartHandlerConfig };
@@ -19,7 +19,7 @@ const SPAN_ATTRIBUTES = {
19
19
  URL_PATH: "url.path",
20
20
  URL_QUERY: "url.query",
21
21
  URL_FULL: "url.full",
22
- RPC_SYSTEM: "rpc.system",
22
+ RPC_SYSTEM: "rpc.system.name",
23
23
  RPC_METHOD: "rpc.method",
24
24
  TANSTACK_TYPE: "tanstack.type",
25
25
  TANSTACK_SERVER_FN_NAME: "tanstack.server_function.name",
@@ -19,7 +19,7 @@ const SPAN_ATTRIBUTES = {
19
19
  URL_PATH: "url.path",
20
20
  URL_QUERY: "url.query",
21
21
  URL_FULL: "url.full",
22
- RPC_SYSTEM: "rpc.system",
22
+ RPC_SYSTEM: "rpc.system.name",
23
23
  RPC_METHOD: "rpc.method",
24
24
  TANSTACK_TYPE: "tanstack.type",
25
25
  TANSTACK_SERVER_FN_NAME: "tanstack.server_function.name",
@@ -1,4 +1,4 @@
1
- import { s as WrapStartHandlerConfig } from "./types-zkKShSiK.js";
1
+ import { s as WrapStartHandlerConfig } from "./types-BZNf5yHJ.js";
2
2
  //#region src/handlers.d.ts
3
3
  /**
4
4
  * Request handler type (compatible with TanStack Start handlers)
package/dist/handlers.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as SPAN_ATTRIBUTES, n as isRealError, r as DEFAULT_CONFIG, t as isControlFlowSignal } from "./control-flow-Bahm3i0B.js";
1
+ import { i as SPAN_ATTRIBUTES, n as isRealError, r as DEFAULT_CONFIG, t as isControlFlowSignal } from "./control-flow-BsrFPBj2.js";
2
2
  import { extractContextFromRequest } from "./context.js";
3
3
  import { t as isExcludedPath } from "./route-filter-dLg-j3jR.js";
4
4
  import { SpanStatusCode, context } from "@opentelemetry/api";
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { n as instrument, t as InstrumentOptions } from "./instrument-B4bfWksz.js";
2
- import { a as TraceServerFnConfig, i as TraceLoaderConfig, n as SPAN_ATTRIBUTES, o as TracingMiddlewareConfig, r as TanStackInstrumentationConfig, s as WrapStartHandlerConfig, t as DEFAULT_CONFIG } from "./types-zkKShSiK.js";
2
+ import { a as TraceServerFnConfig, i as TraceLoaderConfig, n as SPAN_ATTRIBUTES, o as TracingMiddlewareConfig, r as TanStackInstrumentationConfig, s as WrapStartHandlerConfig, t as DEFAULT_CONFIG } from "./types-BZNf5yHJ.js";
3
3
  import { MiddlewareHandler, createTracingMiddleware, createTracingServerHandler, functionTracingMiddleware, tracingMiddleware } from "./middleware.js";
4
4
  import { createTracedServerFnFactory, traceServerFn } from "./server-functions.js";
5
- import { n as traceBeforeLoad, r as traceLoader, t as createTracedRoute } from "./loaders-v21GtI_c.js";
5
+ import { n as traceBeforeLoad, r as traceLoader, t as createTracedRoute } from "./loaders-CTK-UHdg.js";
6
6
  import { HeadersInitType, createTracedHeaders, extractContextFromRequest, getActiveContext, getCurrentSpanId, getCurrentTraceId, getTraceParent, getTraceState, injectContextToHeaders, runInContext } from "./context.js";
7
7
  import { DebugHeadersConfig, debugHeadersMiddleware } from "./debug-headers.js";
8
8
  import { ErrorReport, createErrorReportingHandler, errorStore, reportError, withErrorReporting } from "./error-reporting.js";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as SPAN_ATTRIBUTES, r as DEFAULT_CONFIG } from "./control-flow-Bahm3i0B.js";
1
+ import { i as SPAN_ATTRIBUTES, r as DEFAULT_CONFIG } from "./control-flow-BsrFPBj2.js";
2
2
  import { createTracedHeaders, extractContextFromRequest, getActiveContext, getCurrentSpanId, getCurrentTraceId, getTraceParent, getTraceState, injectContextToHeaders, runInContext } from "./context.js";
3
3
  import { n as isNode, r as isServerSide, t as isBrowser } from "./env-BpFWNnpL.js";
4
4
  import { createTracingMiddleware, createTracingServerHandler, functionTracingMiddleware, tracingMiddleware } from "./middleware.js";
@@ -1,4 +1,4 @@
1
- import { i as TraceLoaderConfig } from "./types-zkKShSiK.js";
1
+ import { i as TraceLoaderConfig } from "./types-BZNf5yHJ.js";
2
2
  import * as React$2 from "react";
3
3
  import React$1 from "react";
4
4
  //#region ../../node_modules/.pnpm/@tanstack+history@1.162.0/node_modules/@tanstack/history/dist/esm/index.d.ts
package/dist/loaders.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { i as LoaderFnContext, n as traceBeforeLoad, r as traceLoader, t as createTracedRoute } from "./loaders-v21GtI_c.js";
1
+ import { i as LoaderFnContext, n as traceBeforeLoad, r as traceLoader, t as createTracedRoute } from "./loaders-CTK-UHdg.js";
2
2
  export { type LoaderFnContext, createTracedRoute, traceBeforeLoad, traceLoader };
package/dist/loaders.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as SPAN_ATTRIBUTES, n as isRealError, t as isControlFlowSignal } from "./control-flow-Bahm3i0B.js";
1
+ import { i as SPAN_ATTRIBUTES, n as isRealError, t as isControlFlowSignal } from "./control-flow-BsrFPBj2.js";
2
2
  import { r as isServerSide } from "./env-BpFWNnpL.js";
3
3
  import { SpanStatusCode } from "@opentelemetry/api";
4
4
  import { trace as trace$1 } from "autotel";
@@ -1,4 +1,4 @@
1
- import { o as TracingMiddlewareConfig } from "./types-zkKShSiK.js";
1
+ import { o as TracingMiddlewareConfig } from "./types-BZNf5yHJ.js";
2
2
  //#region src/middleware.d.ts
3
3
  /**
4
4
  * Generic middleware handler type (compatible with TanStack's middleware pattern)
@@ -1,4 +1,4 @@
1
- import { i as SPAN_ATTRIBUTES, n as isRealError, r as DEFAULT_CONFIG, t as isControlFlowSignal } from "./control-flow-Bahm3i0B.js";
1
+ import { i as SPAN_ATTRIBUTES, n as isRealError, r as DEFAULT_CONFIG, t as isControlFlowSignal } from "./control-flow-BsrFPBj2.js";
2
2
  import { extractContextFromRequest } from "./context.js";
3
3
  import { r as isServerSide } from "./env-BpFWNnpL.js";
4
4
  import { t as isExcludedPath } from "./route-filter-dLg-j3jR.js";
@@ -1,4 +1,4 @@
1
- import { a as TraceServerFnConfig } from "./types-zkKShSiK.js";
1
+ import { a as TraceServerFnConfig } from "./types-BZNf5yHJ.js";
2
2
  //#region src/server-functions.d.ts
3
3
  /**
4
4
  * Wrap a TanStack server function with OpenTelemetry tracing
@@ -1,4 +1,4 @@
1
- import { i as SPAN_ATTRIBUTES, n as isRealError, t as isControlFlowSignal } from "./control-flow-Bahm3i0B.js";
1
+ import { i as SPAN_ATTRIBUTES, n as isRealError, t as isControlFlowSignal } from "./control-flow-BsrFPBj2.js";
2
2
  import { r as isServerSide } from "./env-BpFWNnpL.js";
3
3
  import { SpanStatusCode } from "@opentelemetry/api";
4
4
  import { trace as trace$1 } from "autotel";
package/dist/testing.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { AttributeValue, Attributes, Context, HrTime, Link, SpanContext, SpanKind, SpanStatus } from "@opentelemetry/api";
2
- //#region ../../node_modules/.pnpm/@opentelemetry+resources@2.10.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/types.d.ts
2
+ //#region ../../node_modules/.pnpm/@opentelemetry+resources@2.11.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/types.d.ts
3
3
  type MaybePromise<T> = T | Promise<T>;
4
4
  type RawResourceAttribute = [string, MaybePromise<AttributeValue | undefined>];
5
5
  //#endregion
6
- //#region ../../node_modules/.pnpm/@opentelemetry+resources@2.10.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/Resource.d.ts
6
+ //#region ../../node_modules/.pnpm/@opentelemetry+resources@2.11.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/Resource.d.ts
7
7
  /**
8
8
  * An interface that represents a resource. A Resource describes the entity for which signals (metrics or trace) are
9
9
  * collected.
@@ -48,7 +48,7 @@ interface Resource {
48
48
  getRawAttributes(): RawResourceAttribute[];
49
49
  }
50
50
  //#endregion
51
- //#region ../../node_modules/.pnpm/@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/core/build/src/common/types.d.ts
51
+ //#region ../../node_modules/.pnpm/@opentelemetry+core@2.11.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/core/build/src/common/types.d.ts
52
52
  /**
53
53
  * An instrumentation scope consists of the name and optional version
54
54
  * used to obtain a tracer or meter from a provider. This metadata is made
@@ -60,7 +60,7 @@ interface InstrumentationScope {
60
60
  readonly schemaUrl?: string;
61
61
  }
62
62
  //#endregion
63
- //#region ../../node_modules/.pnpm/@opentelemetry+sdk-trace@2.10.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/sdk-trace/build/src/TimedEvent.d.ts
63
+ //#region ../../node_modules/.pnpm/@opentelemetry+sdk-trace@2.11.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/sdk-trace/build/src/TimedEvent.d.ts
64
64
  /**
65
65
  * Represents a timed event.
66
66
  * A timed event is an event with a timestamp.
@@ -75,7 +75,7 @@ interface TimedEvent {
75
75
  droppedAttributesCount?: number;
76
76
  }
77
77
  //#endregion
78
- //#region ../../node_modules/.pnpm/@opentelemetry+sdk-trace@2.10.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/sdk-trace/build/src/export/ReadableSpan.d.ts
78
+ //#region ../../node_modules/.pnpm/@opentelemetry+sdk-trace@2.11.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/sdk-trace/build/src/export/ReadableSpan.d.ts
79
79
  interface ReadableSpan {
80
80
  readonly name: string;
81
81
  readonly kind: SpanKind;
@@ -135,7 +135,7 @@ declare const SPAN_ATTRIBUTES: {
135
135
  readonly URL_PATH: "url.path";
136
136
  readonly URL_QUERY: "url.query";
137
137
  readonly URL_FULL: "url.full";
138
- readonly RPC_SYSTEM: "rpc.system";
138
+ readonly RPC_SYSTEM: "rpc.system.name";
139
139
  readonly RPC_METHOD: "rpc.method";
140
140
  readonly TANSTACK_TYPE: "tanstack.type";
141
141
  readonly TANSTACK_SERVER_FN_NAME: "tanstack.server_function.name";
@@ -69,7 +69,7 @@ declare const SPAN_ATTRIBUTES: {
69
69
  readonly URL_PATH: "url.path";
70
70
  readonly URL_QUERY: "url.query";
71
71
  readonly URL_FULL: "url.full";
72
- readonly RPC_SYSTEM: "rpc.system";
72
+ readonly RPC_SYSTEM: "rpc.system.name";
73
73
  readonly RPC_METHOD: "rpc.method";
74
74
  readonly TANSTACK_TYPE: "tanstack.type";
75
75
  readonly TANSTACK_SERVER_FN_NAME: "tanstack.server_function.name";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autotel-tanstack",
3
- "version": "1.13.58",
3
+ "version": "1.14.0",
4
4
  "description": "OpenTelemetry instrumentation for TanStack Start - automatic tracing for server functions, middleware, and route loaders",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -118,9 +118,9 @@
118
118
  "license": "Apache-2.0",
119
119
  "dependencies": {
120
120
  "@opentelemetry/api": "^1.9.1",
121
- "autotel": "7.4.0",
122
- "autotel-adapters": "2.0.14",
123
- "autotel-edge": "5.0.0"
121
+ "autotel": "7.6.0",
122
+ "autotel-adapters": "2.0.16",
123
+ "autotel-edge": "5.1.0"
124
124
  },
125
125
  "peerDependencies": {
126
126
  "@tanstack/react-start": "^1.168.32",
@@ -135,7 +135,7 @@
135
135
  }
136
136
  },
137
137
  "devDependencies": {
138
- "@opentelemetry/sdk-trace-base": "^2.10.0",
138
+ "@opentelemetry/sdk-trace-base": "^2.11.0",
139
139
  "@tanstack/react-router": "^1.170.18",
140
140
  "@types/node": "^26.1.2",
141
141
  "rimraf": "^6.1.3",