@sypnia/telemetry 0.3.0 → 0.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.1 (2026-11-17)
4
+
5
+ - Node and Next.js: a request of an anonymous route records its route in `url.path` (`/invite/:id`), never the path with its ids or tokens, like the browser.
6
+
3
7
  ## 0.3.0 (2026-11-17)
4
8
 
5
9
  Anonymous visitors (docs: https://telemetry.docs.sypnia.com/sdks/anonymous-visitors).
@@ -1,3 +1,3 @@
1
- export { flush, getSessionId, identify, init, notifyNavigation, optIn, optOut, reportError, track } from '../chunk-YGXX6CWT.js';
1
+ export { flush, getSessionId, identify, init, notifyNavigation, optIn, optOut, reportError, track } from '../chunk-E2RSHYUO.js';
2
2
  import '../chunk-UPXOW6QR.js';
3
3
  import '../chunk-P5DK2OU7.js';
@@ -182,7 +182,7 @@ var SessionStore = class {
182
182
 
183
183
  // ../browser/src/version.ts
184
184
  var SDK_NAME = "@sypnia/telemetry/browser" ;
185
- var SDK_VERSION = "0.3.0" ;
185
+ var SDK_VERSION = "0.3.1" ;
186
186
 
187
187
  // ../browser/src/transport.ts
188
188
  function uuid() {
@@ -1,5 +1,5 @@
1
- import { init, notifyNavigation } from '../chunk-YGXX6CWT.js';
2
- export { flush, getSessionId, identify, optIn, optOut, reportError, track } from '../chunk-YGXX6CWT.js';
1
+ import { init, notifyNavigation } from '../chunk-E2RSHYUO.js';
2
+ export { flush, getSessionId, identify, optIn, optOut, reportError, track } from '../chunk-E2RSHYUO.js';
3
3
  import { readConfig } from '../chunk-WUAOTFVV.js';
4
4
  import '../chunk-UPXOW6QR.js';
5
5
  import { routeNamer } from '../chunk-2RMEOMSD.js';
@@ -1,4 +1,4 @@
1
- import { startNode } from '../chunk-LBKUMS7U.js';
1
+ import { startNode } from '../chunk-BSVLHKIB.js';
2
2
  import { CONFIG_ENV, readConfig } from '../chunk-WUAOTFVV.js';
3
3
  import { readFileSync } from 'fs';
4
4
  import { join } from 'path';
@@ -10,7 +10,7 @@ async function register() {
10
10
  if (process.env.NEXT_RUNTIME !== "nodejs") return;
11
11
  const config = readConfig();
12
12
  if (!config) return;
13
- const { startNode } = await import('../start-TW6OBKK7.js');
13
+ const { startNode } = await import('../start-MKLQU3SQ.js');
14
14
  node = await startNode(config);
15
15
  } catch {
16
16
  }
@@ -723,6 +723,7 @@ function startRequest(sdk, request) {
723
723
  if (isAnonymousRoute(sdk.options, request.path)) {
724
724
  trace.anonymous = true;
725
725
  setAttribute(server.attributes, "sypnia.anonymous", true);
726
+ setAttribute(server.attributes, "url.path", routeOf(request.path));
726
727
  }
727
728
  return trace;
728
729
  }
@@ -1380,7 +1381,7 @@ function resolveOptions(options) {
1380
1381
 
1381
1382
  // ../node/src/version.ts
1382
1383
  var SDK_NAME = "@sypnia/telemetry/node" ;
1383
- var SDK_VERSION = "0.3.0" ;
1384
+ var SDK_VERSION = "0.3.1" ;
1384
1385
 
1385
1386
  // ../node/src/api.ts
1386
1387
  var BRIDGE_MARKER = /* @__PURE__ */ Symbol.for("sypnia.otel.bridge");
@@ -0,0 +1,2 @@
1
+ export { startNode } from './chunk-BSVLHKIB.js';
2
+ import './chunk-WUAOTFVV.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sypnia/telemetry",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Sypnia Telemetry: errors, sessions, replays, performance and traces for the browser, Node and Next.js, in one package.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,2 +0,0 @@
1
- export { startNode } from './chunk-LBKUMS7U.js';
2
- import './chunk-WUAOTFVV.js';
File without changes