hyperdxio / hyperdxio/hyperdx-js

Add programmatic url configuration option to node-opentelemetry package

Open
#210 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
25
Forks
30
Avg merge
4h 26m
Merged PRs (30d)
6

Description

Problem
Currently, the HyperDX Node SDK reads the OTLP endpoint exclusively from environment variables (OTEL_EXPORTER_OTLP_ENDPOINT). This works well for simple setups, but becomes problematic when running multiple OTEL collectors in the same environment.

In my team's case, we use multiple OTEL collectors and need to send telemetry from HyperDX to a different endpoint than our other instrumentation. Since OTEL_EXPORTER_OTLP_ENDPOINT is already in use, and the SDK defaults to https://in-otel.hyperdx.io/ when not set, there's no way to programmatically override the endpoint.

Proposed Solution
So, I've added an optional endpoint config option to init() / initSDK():

HyperDX.init({service: 'my-app', apiKey: process.env.HYPERDX_API_KEY, url: 'http://my-otel-collector:4318',});

Gives users explicit control over where telemetry is sent. Created PR https://github.com/hyperdxio/hyperdx-js/pull/209 to address this issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the init() and initSDK() entry points described in the issue and review PR #209, which already addresses this request. Confirm that an optional url can override OTEL_EXPORTER_OTLP_ENDPOINT and the default endpoint, including the multiple-collector use case.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
observability
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.