Skip to content

feat: allow disabling otel exporter#1436

Open
Misfits09 wants to merge 1 commit intohyperdxio:mainfrom
Misfits09:feature/allow-disabling-otel-exporter
Open

feat: allow disabling otel exporter#1436
Misfits09 wants to merge 1 commit intohyperdxio:mainfrom
Misfits09:feature/allow-disabling-otel-exporter

Conversation

@Misfits09
Copy link

@Misfits09 Misfits09 commented Dec 3, 2025

Context

The default behavior to try to export logs/metrics/traces to an otel collector is causing issues in cases where this collector is not publicly accessible. Therefore adding an option to disable it would avoid having many errors in the Network tabs of the browser.

It has been briefly discussed here on discord

Changes

Added a new HDX_EXPORTER_ENABLED configuration variable that prevents the instanciation of HyperDX.init() from @hyperdx/browser. Which disables sending metrics to the collector

@changeset-bot
Copy link

changeset-bot bot commented Dec 3, 2025

🦋 Changeset detected

Latest commit: f8afa16

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

This PR includes changesets to release 3 packages
Name Type
@hyperdx/app Patch
@hyperdx/api Patch
@hyperdx/otel-collector 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

@vercel
Copy link

vercel bot commented Dec 3, 2025

@Misfits09 is attempting to deploy a commit to the HyperDX Team on Vercel.

A member of the Team first needs to authorize it.

@Misfits09 Misfits09 force-pushed the feature/allow-disabling-otel-exporter branch 3 times, most recently from 60f179a to 36d4dd0 Compare December 3, 2025 16:45
@wrn14897
Copy link
Member

wrn14897 commented Jan 2, 2026

@Misfits09 Lmk if comments make sense. Would love to get this PR out

@wrn14897
Copy link
Member

wrn14897 commented Feb 2, 2026

@Misfits09 Any updates? Let me know or I will port this to another PR

@Misfits09 Misfits09 force-pushed the feature/allow-disabling-otel-exporter branch from 36d4dd0 to 8fd9bb2 Compare February 12, 2026 22:21
@Misfits09
Copy link
Author

@Misfits09 Any updates? Let me know or I will port this to another PR

Very sorry for the delay, i missed the gh notifications !!

@Misfits09 Misfits09 requested a review from wrn14897 February 12, 2026 22:23
@Misfits09 Misfits09 force-pushed the feature/allow-disabling-otel-exporter branch from 8fd9bb2 to 183cdb0 Compare February 12, 2026 22:31
) {
res.status(200).json({
apiKey: HDX_API_KEY,
exporterEnabled: HDX_EXPORTER_ENABLED,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need exporterEnabled? Since apiKey will be undefined if exporterEnabled is falsy, right?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good point ! Fixed it 👍

},
"[typescriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
"editor.defaultFormatter": "vscode.typescript-language-features"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what this is for

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not supposed to be there ! Removed it just now

@wrn14897
Copy link
Member

@Misfits09 Any updates? Let me know or I will port this to another PR

Very sorry for the delay, i missed the gh notifications !!

Nw, thanks for checking this out

@Misfits09 Misfits09 closed this Feb 13, 2026
@Misfits09 Misfits09 force-pushed the feature/allow-disabling-otel-exporter branch from 183cdb0 to 7e3d630 Compare February 13, 2026 14:24
@Misfits09 Misfits09 reopened this Feb 13, 2026
@Misfits09
Copy link
Author

Nw, thanks for checking this out

We should be good now 😄

@Misfits09 Misfits09 requested a review from wrn14897 February 13, 2026 14:27
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