hyperdxio / hyperdxio/hyperdx

Support Source Map Uploads in HyperDX v2

Open
#1,544 3 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature
Dominant language
TypeScript
Stars
9.9k
Forks
471
Avg merge
2d 4h
Merged PRs (30d)
117

Description

Problem

When using the latest version of HyperDX (v2), there's no way to upload JavaScript source maps. The @hyperdx/cli upload-sourcemaps command only works with the HyperDX Cloud (v1), as it requires the /api/v1/sourcemaps/upload-presigned-urls endpoint.

This means frontend errors captured via @hyperdx/browser SDK show minified stack traces, making debugging difficult.

Current Behaviour

npx @hyperdx/cli upload-sourcemaps \
  --serviceKey "..." \
  --apiUrl "https://my-clickstack-instance" \
  --path .next

# Fails because HyperDX doesn't have the sourcemap upload API

Expected Behaviour

HyperDX deployments should support source map uploads, either:

  1. Built-in storage within HyperDX (e.g., storing source maps in ClickHouse or a configurable S3-compatible storage)
  2. Client-side source map resolution (as suggested in #1501)
  3. Documentation for self-hosting the source map API component

Use Case

We're using HyperDX v2 for observability. We have a SvelteKit frontend instrumented with @hyperdx/browser for session replay and error tracking. Without source maps, stack traces in captured exceptions are unreadable.

Environment

  • Deployment: ClickStack on ClickHouse Cloud
  • Frontend: SvelteKit with @hyperdx/browser SDK
  • Build tool: Vite (generates .js.map files)

Related

  • #1501 - Client-side source map resolution proposal

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 @hyperdx/cli upload-sourcemaps command, its /api/v1/sourcemaps/upload-presigned-urls dependency, and the client-side source map resolution proposal in #1501. Compare the current HyperDX v1 flow with the ClickStack deployment described here, then define which v2 upload or resolution path is supported and verify that Vite-generated .js.map files produce readable @hyperdx/browser stack traces.

Written by the indexing model from the issue text.

Assessment

Tech stack
clickhouse, javascript, typescript, vite
Domain
cloud, frontend, observability
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.