Skip to main content

Type Alias: TelemetryAttributes

@arolariu/website


@arolariu/website / instrumentation.server / TelemetryAttributes

Type Alias: TelemetryAttributes

TelemetryAttributes = SemanticAttributes | Record<string, string | number | boolean>

Defined in: instrumentation.server.ts:341

General attributes that can be attached to spans, events, and metrics.

Remarks

  • Use SemanticAttributes for standard OpenTelemetry semantic conventions
  • Use this type for custom attributes specific to your application
  • Keep cardinality low to avoid metric explosion
  • Avoid high-cardinality values (user IDs, timestamps, UUIDs) in metrics
// was this page useful?