Skip to content
@archipel/platform-telemetry Auto-generated

@pixel-brewery/archipel-platform-telemetry ​

Classes ​

ClassDescription
MeasurementSinkPortDestination for individual numeric measurements.
MeasurementsInterceptorRecords completed HTTP request values through the direct measurement path.
MeasurementsModuleInstalls one direct measurement sink and optional HTTP instrumentation.
MeasurementsServiceRecords individual numeric values without imposing an aggregation model.
MetricsServiceRecords application metrics through OpenTelemetry instruments.
NoopMeasurementSinkExplicit no-op sink for individual numeric measurements.
NoopTelemetryFacade-
OtelMetricClientOwns OpenTelemetry metric instruments and their recording semantics.
OtelMetricsInterceptorRecords completed HTTP requests through OpenTelemetry instruments.
OtelSdkHolderHolds a reference to the selected OpenTelemetry SDK components and performs a graceful shutdown when the application terminates.
TelemetryCacheMetricsRecorderGeneric cache metrics recorder that forwards cache lifecycle events into the telemetry facade (which may be a noop when disabled).
TelemetryFacade-
TelemetryHealthIndicatorHealth indicator for the telemetry infrastructure. Checks whether the OpenTelemetry SDK has been initialized via OtelSdkHolder.
TelemetryLoggerService-
TelemetryModule-
TelemetryRuleEngine-
VercelMeasurementSinkSends each observation to Vercel Custom Metrics for the current Function invocation.

Interfaces ​

InterfaceDescription
IMeasurementsModuleOptionsConfiguration for one direct numeric measurement sink.
IMetricInstrumentsBuilt-in OpenTelemetry instruments used by telemetry operations.
IMetricReaderOptionsCollection interval for an OpenTelemetry push metric reader.
ITelemetryFacade-
ITelemetryMetricsOptions-
ITelemetryModuleOptionsTelemetry SDK options with explicitly selected OpenTelemetry metric readers.
ITelemetryOptions-
ITelemetryTracesOptions-

Type Aliases ​

Type AliasDescription
MetricKindOpenTelemetry instrument kinds supported by MetricsService.

Variables ​

VariableDescription
CONSOLE_CONFIG_ENTRIESConsole output requires no configuration entries.
defaultTelemetryOptions-
EMPTY_CONFIG_ENTRIESThe disabled measurement sink needs no configuration entries.
OTLP_GRPC_CONFIG_ENTRIESThis reader uses the standard OTEL_EXPORTER_OTLP_* settings.
OTLP_HTTP_CONFIG_ENTRIESThis reader uses the standard OTEL_EXPORTER_OTLP_* settings.
PROMETHEUS_CONFIG_ENTRIESThe Prometheus scrape port is passed explicitly to the reader factory.
TELEMETRY_ENABLED-
TELEMETRY_FACADE-
TELEMETRY_OPTIONS-
VERCEL_CONFIG_ENTRIESVercel Custom Metrics use the current Function invocation and need no configuration entries.

Functions ​

FunctionDescription
createConsoleMetricReaderCreates a console reader for local diagnostics.
createOtlpGrpcMetricReaderCreates an OTLP/gRPC reader using the standard OpenTelemetry exporter configuration.
createOtlpHttpMetricReaderCreates an OTLP/HTTP reader using the standard OpenTelemetry exporter configuration.
createPrometheusMetricReaderCreates an OpenTelemetry scrape reader for long-running Prometheus targets.
validateTelemetryOptionsValidates telemetry options and throws on invalid values.

Released under the MIT License.