Skip to content

Commit

Permalink
chore(instrumentation-runtime-node): set default monitoringPrecision …
Browse files Browse the repository at this point in the history
…to 10ms, change scrape method to private
  • Loading branch information
pikalovArtemN committed Jul 16, 2024
1 parent 6a84254 commit 5efdd9d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { HeapSpacesSizeAndUsedCollector } from './metrics/heapSpacesSizeAndUsedC
import { ConventionalNamePrefix } from './types/ConventionalNamePrefix';

const DEFAULT_CONFIG: RuntimeNodeInstrumentationConfig = {
monitoringPrecision: 5000,
monitoringPrecision: 10,
};

export class RuntimeNodeInstrumentation extends InstrumentationBase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class EventLoopDelayCollector extends BaseCollector {
this._histogram.disable();
}

protected scrape(): EventLoopLagInformation {
private scrape(): EventLoopLagInformation {
return {
min: this.checkNan(this._histogram.min / 1e9),
max: this.checkNan(this._histogram.max / 1e9),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class EventLoopUtilizationCollector extends BaseCollector {

protected internalEnable(): void {}

protected scrape(): EventLoopUtilization {
private scrape(): EventLoopUtilization {
return eventLoopUtilizationCollector();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class HeapSpacesSizeAndUsedCollector extends BaseCollector {

internalDisable(): void {}

protected scrape(): HeapSpaceInfo[] {
private scrape(): HeapSpaceInfo[] {
return v8.getHeapSpaceStatistics();
}
}

0 comments on commit 5efdd9d

Please sign in to comment.