-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve CLI UI + add metric reader + more configs (#139)
* feat: improve cli ui * feat: handle shutdown * feat: config logger * feat: get logger exporter url * feat: enable console + exception + sentry int by default for init * docs: add changeset * feat: add HDX_STARTUP_LOGS flag * style: pretty print configs * feat: open dashboard automatically on local * feat: disable browser thing for now * feat: enable betaMode by default * feat: add hyperdx metric meter + flags to disable logs/tracing/metrics * feat: env to disable logs/metrics/tracing + inject metric exporter headers * style: set the otlp header env * chore: disable betaMode for now
- Loading branch information
Showing
10 changed files
with
599 additions
and
324 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@hyperdx/node-opentelemetry': patch | ||
--- | ||
|
||
feat: config logger |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@hyperdx/node-opentelemetry': patch | ||
--- | ||
|
||
feat: improve CLI UI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
import { | ||
MeterProvider, | ||
PeriodicExportingMetricReader, | ||
} from '@opentelemetry/sdk-metrics'; | ||
import { OTLPMetricExporter } from '@opentelemetry/exporter-metrics-otlp-proto'; | ||
import { PeriodicExportingMetricReader } from '@opentelemetry/sdk-metrics'; | ||
|
||
export const metricReader = new PeriodicExportingMetricReader({ | ||
exporter: new OTLPMetricExporter(), | ||
exportIntervalMillis: 1000, | ||
}); | ||
import { DEFAULT_OTEL_METRICS_EXPORTER_URL } from './constants'; | ||
|
||
export const meterProvider = new MeterProvider({}); | ||
meterProvider.addMetricReader(metricReader); | ||
export const getHyperDXMetricReader = () => | ||
new PeriodicExportingMetricReader({ | ||
exporter: new OTLPMetricExporter({ | ||
url: DEFAULT_OTEL_METRICS_EXPORTER_URL, | ||
}), | ||
exportIntervalMillis: 1000, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.