Support per-signal OTLP exporter endpoints for Hyperdx internal telemetry#2098
Support per-signal OTLP exporter endpoints for Hyperdx internal telemetry#2098vinzee wants to merge 1 commit intohyperdxio:mainfrom
Conversation
|
@vinzee is attempting to deploy a commit to the HyperDX Team on Vercel. A member of the Team first needs to authorize it. |
|
PR Review
✅ Core logic is sound — env var → |
a7c35a8 to
e965f04
Compare
This change allows for more granular control over OpenTelemetry data routing by enabling independent configuration of traces, metrics, and logs endpoints. This is particularly useful for complex networking environments or when using different backends for different telemetry types. Additionally, the browser instrumentation has been updated to a local wrapper to better manage these signal-specific configurations and improve internal consistency.
e965f04 to
6a2a41c
Compare
|
Hi @vinzee - thanks for the PR! This is a good idea. I think it would be better to update hyperdx-js directly to support this feature rather than re-implementing it here. |
Summary
This change allows for more granular control over OpenTelemetry data routing by enabling independent configuration of traces, metrics, and logs endpoints. This is particularly useful for complex networking environments or when using different backends for different telemetry types.
Additionally, the browser instrumentation has been updated to a local wrapper to better manage these signal-specific configurations and improve internal consistency.
How to test locally or on Vercel
1. Verify default behavior (no per-signal env vars set)
curl http://localhost:8080/api/config | jq .-- verifycollectorUrlis present andcollectorTracesUrl/collectorMetricsUrl/collectorLogsUrlare absent (undefined values are omitted from JSON).2. Verify per-signal env vars are exposed via the config API
curl http://localhost:8080/api/config | jq .-- confirmcollectorTracesUrlandcollectorLogsUrlnow appear with the values set above.3. Verify browser telemetry routes to separate endpoints
v1/tracesandv1/logs. Confirm trace exports hit:4318and session replay log exports hit:4319.4. Verify server-side Node.js telemetry (API + Next.js server)
@hyperdx/node-opentelemetrynatively reads per-signal env vars. Set them and start:References