-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.ts
More file actions
64 lines (56 loc) · 1.65 KB
/
Copy pathindex.ts
File metadata and controls
64 lines (56 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
/**
* `@objectstack/observability` — vendor-neutral contracts and exporters
* for ObjectStack metrics, errors, and logs.
*
* @see {@link MetricsRegistry} {@link ErrorReporter} {@link Logger}
*/
// Contracts
export type { MetricsRegistry, MetricSample, ErrorReporter, CapturedError, Logger } from './contracts.js';
// Service-registry names (consumed by runtime's ObservabilityServicePlugin and lookup sites)
export { OBSERVABILITY_METRICS_SERVICE, OBSERVABILITY_ERRORS_SERVICE } from './service-names.js';
// Semantic conventions
export { SEMCONV, RUNTIME_METRICS } from './semconv.js';
// Metric exporters
export {
NoopMetricsRegistry,
InMemoryMetricsRegistry,
ConsoleMetricsRegistry,
OtlpHttpMetricsRegistry,
type OtlpHttpExporterOptions,
} from './metrics-exporters.js';
// Error reporters
export {
NoopErrorReporter,
InMemoryErrorReporter,
ConsoleErrorReporter,
} from './error-exporters.js';
// Loggers
export {
NoopLogger,
ConsoleLogger,
JsonLogger,
LOG_LEVELS,
type LogLevel,
} from './loggers.js';
// Per-request performance timing (Server-Timing header)
export {
PerfTiming,
perfNow,
formatServerTiming,
runWithPerfTiming,
currentPerfTiming,
recordServerTiming,
startServerTiming,
measureServerTiming,
countServerTiming,
recordServerTimingDetail,
runWithPerfDisclosure,
allowPerfDisclosure,
isPerfDisclosureAllowed,
isPerfDisclosurePrivileged,
isPerfDisclosurePrincipal,
type ServerTimingMark,
type ServerTimingDetail,
type PerfDisclosureGate,
} from './perf-timing.js';