Support Source Map Uploads in HyperDX v2
Nobody has claimed this yet.
- 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:
- Built-in storage within HyperDX (e.g., storing source maps in ClickHouse or a configurable S3-compatible storage)
- Client-side source map resolution (as suggested in #1501)
- 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/browserSDK - Build tool: Vite (generates
.js.mapfiles)
Related
- #1501 - Client-side source map resolution proposal
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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