Skip to content

telemetry: OneCollector silently 401-ing all events due to wrong envelope iKey wire format #465

Description

@timenick

Symptom

DEBUG log: telemetry backend returned 400 (also seen as 401 depending on the exact rejection path). All telemetry events have been silently dropped since the OneCollector path shipped — clients don't notice because errors in the telemetry pipeline are intentionally swallowed.

Root cause

The exporter was embedding the full instrumentation key in both the x-apikey HTTP header AND the envelope's iKey field. OneCollector expects the envelope iKey in o:<tenant_token> form (just the portion before the first -); sending the full ikey there gets the request rejected with Collector-Error: Invalid Tenant Token.

Validation

Verified end-to-end against the live OneCollector ingest with a real ikey: post-fix, a single Heartbeat envelope returns status: 200, body: {"acc":1}.

Fix

Fixed by #456 (also included: kill-tokens handling, richer DEBUG log on non-2xx, consent prompt rebrand).

Closing as fixed.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions