Skip to content

Support per-signal OTLP exporter endpoints in hyperdx/browser#234

Open
vinzee wants to merge 1 commit intohyperdxio:mainfrom
vinzee:va/per-signal-otlp-endpoints
Open

Support per-signal OTLP exporter endpoints in hyperdx/browser#234
vinzee wants to merge 1 commit intohyperdxio:mainfrom
vinzee:va/per-signal-otlp-endpoints

Conversation

@vinzee
Copy link
Copy Markdown

@vinzee vinzee commented Apr 17, 2026

Summary

Add optional tracesUrl and logsUrl config options to @hyperdx/browser's init(),
allowing independent configuration of trace and log export endpoints.

This is useful for complex networking environments or when routing different
telemetry signals to different backends (e.g. traces to one collector, session
replay logs to another).

Changes

  • Added optional tracesUrl and logsUrl fields to BrowserSDKConfig
  • When provided, these are used as-is for the Rum (traces) and SessionRecorder (logs)
    OTLP exporters respectively
  • When omitted, the existing behavior is preserved: ${url}/v1/traces and ${url}/v1/logs

Usage

HyperDX.init({
  apiKey: '...',
  service: 'my-app',
  url: 'https://collector.example.com',                // base URL (existing behavior)
  tracesUrl: 'https://traces.example.com/v1/traces',   // optional override
  logsUrl: 'https://logs.example.com/v1/logs',         // optional override
});

Context

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 17, 2026

🦋 Changeset detected

Latest commit: e1b1508

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@hyperdx/browser Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vinzee
Copy link
Copy Markdown
Author

vinzee commented Apr 17, 2026

@vinzee vinzee changed the title Support per-signal OTLP exporter endpoints in @hyperdx/browser Support per-signal OTLP exporter endpoints in hyperdx/browser Apr 17, 2026
@karl-power
Copy link
Copy Markdown

LGTM @vinzee! Can you add a changeset please? yarn changeset from repo root. Thanks!

Add optional `tracesUrl` and `logsUrl` config options to allow
independent configuration of trace and log export endpoints. When
omitted, the existing `${url}/v1/traces` and `${url}/v1/logs`
fallback behavior is preserved.

Refs: hyperdxio/hyperdx#2076, hyperdxio/hyperdx#2098
Made-with: Cursor
@vinzee vinzee force-pushed the va/per-signal-otlp-endpoints branch from 4670367 to e1b1508 Compare April 17, 2026 15:43
@vinzee
Copy link
Copy Markdown
Author

vinzee commented Apr 17, 2026

@karl-power added the changeset

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants