@downtrace/agent 0.1.0 → 0.1.2

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
@@ -20,13 +20,13 @@ NODE_OPTIONS="--import @downtrace/agent/register" node server.js
20
20
  | Variable | Required | What it is |
21
21
  |---|---|---|
22
22
  | `DOWNTRACE_TOKEN` | yes | The project's ingest token |
23
- | `DOWNTRACE_URL` | yes | Base URL of the cloud (`https://…`) |
23
+ | `DOWNTRACE_URL` | yes | Base URL of the cloud, `http://` or `https://`; trailing slashes are ignored |
24
24
  | `DOWNTRACE_ENV` | no | Environment; falls back to `NODE_ENV`, then `production` |
25
25
  | `DOWNTRACE_VERSION` | no | Deployed version or commit; detected from `APP_VERSION`, `GIT_SHA`, `VERCEL_GIT_COMMIT_SHA`, `HEROKU_SLUG_COMMIT`, `SOURCE_VERSION`, `RENDER_GIT_COMMIT`, `RAILWAY_GIT_COMMIT_SHA`; else `unknown` |
26
- | `DOWNTRACE_DEBUG` | no | `1` to log the agent's own activity to stderr |
27
- | `DOWNTRACE_INTERVAL_MS` | no | Aggregation interval (min 1000; default 10000) |
26
+ | `DOWNTRACE_DEBUG` | no | `1` or `true` to log the agent's own activity to stderr |
27
+ | `DOWNTRACE_INTERVAL_MS` | no | Aggregation interval in ms (min 1000; default 10000; anything else falls back to the default) |
28
28
 
29
- Without `DOWNTRACE_TOKEN` and `DOWNTRACE_URL` the agent prints one warning and does nothing else.
29
+ Without `DOWNTRACE_TOKEN` and `DOWNTRACE_URL` (or with a `DOWNTRACE_URL` that is not `http(s)://`) the agent prints one warning and does nothing else.
30
30
 
31
31
  ## What leaves your server
32
32
 
@@ -42,7 +42,11 @@ Only structural metadata: method, **route template** (`/products/:id`, never the
42
42
 
43
43
  ## Requirements
44
44
 
45
- Node.js 20 or newer (see `engines`). Express route templates are used when present; without a framework, identifier-looking path segments (numbers, UUIDs, long hex) are collapsed into `:id`.
45
+ Node.js 20 or newer (see `engines`); the built package is exercised on Node 20, 22 and 24 in CI. Express route templates are used when present; without a framework, identifier-looking path segments (numbers, UUIDs, long hex) are collapsed into `:id`.
46
+
47
+ ## Changelog
48
+
49
+ See [`CHANGELOG.md`](https://github.com/RadW2020/downtrace-agent/blob/main/packages/agent/CHANGELOG.md).
46
50
 
47
51
  ## Source
48
52
 
@@ -236,7 +236,7 @@ var Sender = class {
236
236
  //#endregion
237
237
  //#region src/version.ts
238
238
  /** Version of this agent build, from package.json. */
239
- const AGENT_VERSION = "0.1.0";
239
+ const AGENT_VERSION = "0.1.2";
240
240
  //#endregion
241
241
  //#region src/agent.ts
242
242
  const REQUEST_START = "http.server.request.start";
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as createAgent, c as Sender, d as IntervalAggregator, f as OTHER_ROUTE, h as routeOf, i as Agent, l as createLogger, m as normalizeMethod, n as configFromEnv, o as AGENT_VERSION, p as heuristicTemplate, r as detectVersion, s as DEFAULT_MAX_QUEUED, t as DEFAULT_INTERVAL_MS, u as DEFAULT_MAX_ROUTES } from "./config-nKU1VRvi.js";
1
+ import { a as createAgent, c as Sender, d as IntervalAggregator, f as OTHER_ROUTE, h as routeOf, i as Agent, l as createLogger, m as normalizeMethod, n as configFromEnv, o as AGENT_VERSION, p as heuristicTemplate, r as detectVersion, s as DEFAULT_MAX_QUEUED, t as DEFAULT_INTERVAL_MS, u as DEFAULT_MAX_ROUTES } from "./config-DrGYaP4a.js";
2
2
  export { AGENT_VERSION, Agent, DEFAULT_INTERVAL_MS, DEFAULT_MAX_QUEUED, DEFAULT_MAX_ROUTES, IntervalAggregator, OTHER_ROUTE, Sender, configFromEnv, createAgent, createLogger, detectVersion, heuristicTemplate, normalizeMethod, routeOf };
package/dist/register.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as createAgent, l as createLogger, n as configFromEnv } from "./config-nKU1VRvi.js";
1
+ import { a as createAgent, l as createLogger, n as configFromEnv } from "./config-DrGYaP4a.js";
2
2
  //#region src/register.ts
3
3
  /**
4
4
  * Entry point users load with `node --import @downtrace/agent/register`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@downtrace/agent",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Downtrace agent for Node.js: a flight recorder for your backend. Observes HTTP requests, aggregates locally, ships compact batches, never in your request path.",
5
5
  "type": "module",
6
6
  "exports": {