OpenTelemetry
Altix ErrorTrack utiliza el protocolo de Sentry, por lo que puedes usar el SDK oficial de OTLP/HTTP exporter. Los fragmentos a continuación usan un DSN de ejemplo; la página de configuración de tu proyecto los muestra con el real.
Instalar el SDK
Añade
OTLP/HTTP exporter, el SDK oficial de Sentry. Funciona sin modificaciones con Altix ErrorTrack.bash
# Any OpenTelemetry SDK with the OTLP/HTTP exporter, http/protobuf (the # default) or http/json. Counters must use delta temporality. export OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE=deltaConfigurarlo
Inicializa el SDK lo antes posible en tu aplicación, con tu DSN.
bash
# Your DSN: https://<public-key>@errortrack.altixcode.com/<project-id> export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=https://errortrack.altixcode.com/api/%3Cproject-id%3E/otlp/v1/traces export OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=https://errortrack.altixcode.com/api/%3Cproject-id%3E/otlp/v1/logs export OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=https://errortrack.altixcode.com/api/%3Cproject-id%3E/otlp/v1/metrics export OTEL_EXPORTER_OTLP_HEADERS="x-sentry-auth=sentry sentry_key=%3Cpublic-key%3E"Verificar
Provoca un error a propósito. Aparecerá en tu lista de incidencias en cuestión de segundos.
text
Start your service and send one request: its trace appears under Traces.
Crea un proyecto y su página de configuración completará tu DSN real.