@capxul/observability 1.2.2 → 2.0.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 +1 -1
- package/dist/engineering.d.mts +1 -2
- package/dist/engineering.mjs +1 -3
- package/dist/index.d.mts +404 -1287
- package/dist/index.mjs +101 -384
- package/package.json +6 -3
- package/dist/engineering.d.mts.map +0 -1
- package/dist/engineering.mjs.map +0 -1
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ isolation — is what keeps a production surface from reading dev traffic. It is
|
|
|
14
14
|
REQUIRED on every catalog event, together with `producer`. Call sites do not
|
|
15
15
|
pass them: the emit boundary stamps them with `stampTelemetryEnvelope`, and the
|
|
16
16
|
schema refuses anything that arrives without them. The rest of the envelope
|
|
17
|
-
(`journey_id`, `correlation_id`, `sdk_version
|
|
17
|
+
(`journey_id`, `correlation_id`, `sdk_version`) is
|
|
18
18
|
optional and snake_case; the camelCase spellings are retired.
|
|
19
19
|
|
|
20
20
|
## Two browser privacy profiles (ADR-0020 A6)
|
package/dist/engineering.d.mts
CHANGED
|
@@ -22,5 +22,4 @@ declare const makeLeakSafeEngineeringTracer: (delegate: Tracer.Tracer) => Tracer
|
|
|
22
22
|
/** Shared browser/server OTLP layer. OtlpLogger merges with incumbent loggers once. */
|
|
23
23
|
declare const makeEngineeringTelemetryLayer: (config: EngineeringTelemetryConfig) => Layer.Layer<OtlpExporter.Flusher, never, never>;
|
|
24
24
|
//#endregion
|
|
25
|
-
export { EngineeringCapxulEnv, EngineeringProducer, EngineeringTelemetryConfig, makeEngineeringTelemetryLayer, makeLeakSafeEngineeringTracer, postHogOtlpEndpoints, traceHeaderFilter };
|
|
26
|
-
//# sourceMappingURL=engineering.d.mts.map
|
|
25
|
+
export { EngineeringCapxulEnv, EngineeringProducer, EngineeringTelemetryConfig, makeEngineeringTelemetryLayer, makeLeakSafeEngineeringTracer, postHogOtlpEndpoints, traceHeaderFilter };
|
package/dist/engineering.mjs
CHANGED
|
@@ -40,7 +40,7 @@ const validateEngineeringTelemetryConfig = (config) => {
|
|
|
40
40
|
} catch {
|
|
41
41
|
throw new TypeError("engineering telemetry host must be an absolute HTTPS URL");
|
|
42
42
|
}
|
|
43
|
-
if (url.protocol !== "https:" || url.username.length > 0 || url.password.length > 0 || url.pathname !== "/" || url.search.length > 0 || url.hash.length > 0) throw new TypeError("engineering telemetry host must be a credential-free HTTPS origin");
|
|
43
|
+
if (url.protocol !== "https:" || url.username.length > 0 || url.password.length > 0 || url.pathname !== "/" || url.search.length > 0 || url.hash.length > 0 || !(url.hostname === "posthog.com" || url.hostname.endsWith(".posthog.com"))) throw new TypeError("engineering telemetry host must be a credential-free HTTPS origin");
|
|
44
44
|
if (!ENGINEERING_CAPXUL_ENVS.has(config.capxulEnv)) throw new TypeError("engineering telemetry capxulEnv is not canonical");
|
|
45
45
|
if (!ENGINEERING_PRODUCERS.has(config.producer)) throw new TypeError("engineering telemetry producer is not canonical");
|
|
46
46
|
if (!SAFE_RESOURCE_VALUE.test(config.sdkVersion)) throw new TypeError("engineering telemetry sdkVersion must be a bounded safe value");
|
|
@@ -105,5 +105,3 @@ const makeEngineeringTelemetryLayer = (config) => {
|
|
|
105
105
|
};
|
|
106
106
|
//#endregion
|
|
107
107
|
export { makeEngineeringTelemetryLayer, makeLeakSafeEngineeringTracer, postHogOtlpEndpoints, traceHeaderFilter };
|
|
108
|
-
|
|
109
|
-
//# sourceMappingURL=engineering.mjs.map
|