@theholocron/observability 0.7.0-alpha.5 → 0.7.0-alpha.7
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/core.d.mts +1 -1
- package/dist/{create-X1v3LWjb.d.mts → create-CH9CzbAw.d.mts} +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/{logger-DC6M2rL_.d.mts → logger-Coj4J-cM.d.mts} +2 -2
- package/dist/logger.d.mts +3 -3
- package/dist/{pino-DIfQGY7z.d.mts → pino-CuOv3hpS.d.mts} +2 -2
- package/dist/testing.d.mts +2 -2
- package/package.json +10 -10
package/dist/core.d.mts
CHANGED
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
* everywhere; only the process entry point pulls a concrete adapter subpath.
|
|
9
9
|
*/
|
|
10
10
|
import { a as NoopErrorSink, i as NoopAnalyticsSink, n as CommandSpan, r as ErrorSink, t as AnalyticsSink } from "./sinks-D5CwDgDL.mjs";
|
|
11
|
-
import { a as NoopLogger, i as Logger, n as LogEnv, r as LogLevel, t as LOG_LEVELS } from "./logger-
|
|
11
|
+
import { a as NoopLogger, i as Logger, n as LogEnv, r as LogLevel, t as LOG_LEVELS } from "./logger-Coj4J-cM.mjs";
|
|
12
12
|
import { a as redactOptions, i as redactObject, n as REDACT_CENSOR, r as redact, t as REDACTED_PATHS } from "./core-DDpFbotv.mjs";
|
|
13
13
|
export { type AnalyticsSink, type CommandSpan, type ErrorSink, LOG_LEVELS, type LogEnv, type LogLevel, type Logger, NoopAnalyticsSink, NoopErrorSink, NoopLogger, REDACTED_PATHS, REDACT_CENSOR, redact, redactObject, redactOptions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as Logger$1, r as LogLevel } from "./logger-
|
|
1
|
+
import { i as Logger$1, r as LogLevel } from "./logger-Coj4J-cM.mjs";
|
|
2
2
|
import { TransportMultiOptions, TransportSingleOptions } from "pino";
|
|
3
3
|
/** Axiom credentials. The token comes from env vars or the OS keyring — never
|
|
4
4
|
* a committed config file; the dataset name may come from config. */
|
package/dist/index.d.mts
CHANGED
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
* form for a Node process that wants all of it.
|
|
8
8
|
*/
|
|
9
9
|
import { a as NoopErrorSink, i as NoopAnalyticsSink, n as CommandSpan, r as ErrorSink, t as AnalyticsSink } from "./sinks-D5CwDgDL.mjs";
|
|
10
|
-
import { a as detectEnv, c as isTelemetryDisabled, d as resolveLevel, f as ConsoleLogger, i as createPinoInstance, l as parseLogLevel, n as PinoLogger, o as generateRunId, r as buildPinoOptions, s as isCI, t as CreatePinoInstanceInput, u as resolveAxiomFromEnv } from "./pino-
|
|
11
|
-
import { a as NoopLogger, i as Logger, n as LogEnv, r as LogLevel, t as LOG_LEVELS } from "./logger-
|
|
10
|
+
import { a as detectEnv, c as isTelemetryDisabled, d as resolveLevel, f as ConsoleLogger, i as createPinoInstance, l as parseLogLevel, n as PinoLogger, o as generateRunId, r as buildPinoOptions, s as isCI, t as CreatePinoInstanceInput, u as resolveAxiomFromEnv } from "./pino-CuOv3hpS.mjs";
|
|
11
|
+
import { a as NoopLogger, i as Logger, n as LogEnv, r as LogLevel, t as LOG_LEVELS } from "./logger-Coj4J-cM.mjs";
|
|
12
12
|
import { a as redactOptions, i as redactObject, n as REDACT_CENSOR, r as redact, t as REDACTED_PATHS } from "./core-DDpFbotv.mjs";
|
|
13
|
-
import { a as BuildTransportInput, i as AxiomTransportConfig, n as LoggerConfig, o as buildTransport, r as createLogger, t as CreateLoggerResult } from "./create-
|
|
13
|
+
import { a as BuildTransportInput, i as AxiomTransportConfig, n as LoggerConfig, o as buildTransport, r as createLogger, t as CreateLoggerResult } from "./create-CH9CzbAw.mjs";
|
|
14
14
|
import { n as scrubError, t as SentrySink } from "./sentry-sink-C0WWmUBS.mjs";
|
|
15
15
|
import { t as PostHogSink } from "./posthog-sink-CmQmma-o.mjs";
|
|
16
16
|
export { type AnalyticsSink, type AxiomTransportConfig, type BuildTransportInput, type CommandSpan, ConsoleLogger, type CreateLoggerResult, type CreatePinoInstanceInput, type ErrorSink, LOG_LEVELS, type LogEnv, type LogLevel, type Logger, type LoggerConfig, NoopAnalyticsSink, NoopErrorSink, NoopLogger, PinoLogger, PostHogSink, REDACTED_PATHS, REDACT_CENSOR, SentrySink, buildPinoOptions, buildTransport, createLogger, createPinoInstance, detectEnv, generateRunId, isCI, isTelemetryDisabled, parseLogLevel, redact, redactObject, redactOptions, resolveAxiomFromEnv, resolveLevel, scrubError };
|
|
@@ -49,11 +49,11 @@ type LogLevel = "debug" | "info" | "warn" | "error";
|
|
|
49
49
|
declare const LOG_LEVELS: readonly LogLevel[];
|
|
50
50
|
/**
|
|
51
51
|
* Runtime environment a logger was constructed in: `local` (a laptop), `development` (a development instance), `ci`,
|
|
52
|
-
* `test` (a deployed pre-production instance) or `production`. It is bound on every line as `env`, so one Axiom dataset can hold all of them and a query filters by it.
|
|
52
|
+
* `test` (a deployed pre-production instance), `preview` (a preview deployment) or `production`. It is bound on every line as `env`, so one Axiom dataset can hold all of them and a query filters by it.
|
|
53
53
|
* Detection lives in `@theholocron/env-utils` (`detectEnvironment`); this union is written out here because `/core`
|
|
54
54
|
* has no dependencies, and a type test keeps it equal to env-utils' `Environment`.
|
|
55
55
|
*/
|
|
56
|
-
type LogEnv = "local" | "development" | "ci" | "test" | "production";
|
|
56
|
+
type LogEnv = "local" | "development" | "ci" | "test" | "preview" | "production";
|
|
57
57
|
/**
|
|
58
58
|
* The disabled-logging path made explicit — one shared no-op instead of a
|
|
59
59
|
* scatter of `if (!enabled) return` guards at every call site. Symmetric with
|
package/dist/logger.d.mts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* install them alongside this subpath. The {@link Logger} interface itself
|
|
11
11
|
* lives in `/core` and needs none of them.
|
|
12
12
|
*/
|
|
13
|
-
import { i as Logger, n as LogEnv, r as LogLevel, t as LOG_LEVELS } from "./logger-
|
|
14
|
-
import { a as detectEnv, c as isTelemetryDisabled, d as resolveLevel, f as ConsoleLogger, i as createPinoInstance, l as parseLogLevel, n as PinoLogger, o as generateRunId, r as buildPinoOptions, s as isCI, t as CreatePinoInstanceInput, u as resolveAxiomFromEnv } from "./pino-
|
|
15
|
-
import { a as BuildTransportInput, i as AxiomTransportConfig, n as LoggerConfig, o as buildTransport, r as createLogger, t as CreateLoggerResult } from "./create-
|
|
13
|
+
import { i as Logger, n as LogEnv, r as LogLevel, t as LOG_LEVELS } from "./logger-Coj4J-cM.mjs";
|
|
14
|
+
import { a as detectEnv, c as isTelemetryDisabled, d as resolveLevel, f as ConsoleLogger, i as createPinoInstance, l as parseLogLevel, n as PinoLogger, o as generateRunId, r as buildPinoOptions, s as isCI, t as CreatePinoInstanceInput, u as resolveAxiomFromEnv } from "./pino-CuOv3hpS.mjs";
|
|
15
|
+
import { a as BuildTransportInput, i as AxiomTransportConfig, n as LoggerConfig, o as buildTransport, r as createLogger, t as CreateLoggerResult } from "./create-CH9CzbAw.mjs";
|
|
16
16
|
export { type AxiomTransportConfig, type BuildTransportInput, ConsoleLogger, type CreateLoggerResult, type CreatePinoInstanceInput, LOG_LEVELS, type LogEnv, type LogLevel, type Logger, type LoggerConfig, PinoLogger, buildPinoOptions, buildTransport, createLogger, createPinoInstance, detectEnv, generateRunId, isCI, isTelemetryDisabled, parseLogLevel, resolveAxiomFromEnv, resolveLevel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as Logger$1, r as LogLevel } from "./logger-
|
|
2
|
-
import { i as AxiomTransportConfig } from "./create-
|
|
1
|
+
import { i as Logger$1, r as LogLevel } from "./logger-Coj4J-cM.mjs";
|
|
2
|
+
import { i as AxiomTransportConfig } from "./create-CH9CzbAw.mjs";
|
|
3
3
|
import { detectEnvironment as detectEnv, isCI } from "@theholocron/env-utils/lookup";
|
|
4
4
|
import { DestinationStream, Logger, LoggerOptions } from "pino";
|
|
5
5
|
/**
|
package/dist/testing.d.mts
CHANGED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
* {@link NoopLogger} from `/core` instead — it records nothing to assert on.
|
|
13
13
|
*/
|
|
14
14
|
import { n as CommandSpan, r as ErrorSink, t as AnalyticsSink } from "./sinks-D5CwDgDL.mjs";
|
|
15
|
-
import { i as Logger } from "./logger-
|
|
16
|
-
import { r as createLogger } from "./create-
|
|
15
|
+
import { i as Logger } from "./logger-Coj4J-cM.mjs";
|
|
16
|
+
import { r as createLogger } from "./create-CH9CzbAw.mjs";
|
|
17
17
|
import { Mock } from "vitest";
|
|
18
18
|
/** An {@link AnalyticsSink} whose methods are spies. */
|
|
19
19
|
interface FakeAnalyticsSink extends AnalyticsSink {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/observability",
|
|
3
|
-
"version": "0.7.0-alpha.
|
|
3
|
+
"version": "0.7.0-alpha.7",
|
|
4
4
|
"description": "Logging, error tracking, and analytics — one interface, swappable backends.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"dist"
|
|
85
85
|
],
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@theholocron/env-utils": "^1.17.0-alpha.
|
|
87
|
+
"@theholocron/env-utils": "^1.17.0-alpha.6"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
90
|
"@axiomhq/pino": "^2.0.0",
|
|
@@ -94,20 +94,20 @@
|
|
|
94
94
|
"@types/node": "^26",
|
|
95
95
|
"@vitest/coverage-v8": "^5.1.0",
|
|
96
96
|
"@vitest/eslint-plugin": "^1.6.28",
|
|
97
|
-
"eslint": "^10.
|
|
97
|
+
"eslint": "^10.15.0",
|
|
98
98
|
"eslint-plugin-n": "^18.5.0",
|
|
99
99
|
"globals": "^17.14.0",
|
|
100
100
|
"pino": "^10.4.0",
|
|
101
101
|
"pino-pretty": "^13.2.0",
|
|
102
|
-
"posthog-js": "^1.
|
|
103
|
-
"posthog-node": "^5.
|
|
102
|
+
"posthog-js": "^1.450.0",
|
|
103
|
+
"posthog-node": "^5.74.0",
|
|
104
104
|
"tsdown": "^0.23.7",
|
|
105
|
-
"typescript": "^
|
|
105
|
+
"typescript": "^6.0.3",
|
|
106
106
|
"vitest": "^5.1.0",
|
|
107
|
-
"@theholocron/tsconfig": "^8.9.0-alpha.
|
|
108
|
-
"@theholocron/eslint-config": "^8.9.0-alpha.
|
|
109
|
-
"@theholocron/tsdown-config": "^8.9.0-alpha.
|
|
110
|
-
"@theholocron/vitest-config": "^8.9.0-alpha.
|
|
107
|
+
"@theholocron/tsconfig": "^8.9.0-alpha.22",
|
|
108
|
+
"@theholocron/eslint-config": "^8.9.0-alpha.22",
|
|
109
|
+
"@theholocron/tsdown-config": "^8.9.0-alpha.22",
|
|
110
|
+
"@theholocron/vitest-config": "^8.9.0-alpha.22"
|
|
111
111
|
},
|
|
112
112
|
"peerDependencies": {
|
|
113
113
|
"@axiomhq/pino": ">=2",
|