@downtrace/agent 0.1.1 → 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 +4 -4
- package/dist/{config-IDWW6i_8.js → config-DrGYaP4a.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/register.js +1 -1
- package/package.json +1 -1
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
|
|
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
|
|
|
@@ -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.
|
|
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-
|
|
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-
|
|
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.
|
|
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": {
|