mirror of
https://github.com/google/nomulus.git
synced 2025-06-30 00:03:37 +02:00
Add instrumentation implementation
The instrumentation implementation adds the ability to track counters for dimensional data in the codebase. Instrumentation points will be added to different parts of the codebase in upcoming CLs. The ability to export the data to Stackdriver will also be added in an upcoming CL. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=130195199
This commit is contained in:
parent
3efe09616c
commit
82ab624b36
2 changed files with 12 additions and 0 deletions
|
@ -480,6 +480,17 @@ public final class ConfigModule {
|
|||
return Duration.standardSeconds(30);
|
||||
}
|
||||
|
||||
/**
|
||||
* Time interval between metric writes to Stackdriver.
|
||||
*
|
||||
* @see google.registry.monitoring.stackdriver.MonitoringComponent
|
||||
*/
|
||||
@Provides
|
||||
@Config("metricWriteInterval")
|
||||
public static Duration provideMetricWriteInterval() {
|
||||
return Duration.standardSeconds(60);
|
||||
}
|
||||
|
||||
/** Duration after watermark where we shouldn't deposit, because transactions might be pending. */
|
||||
@Provides
|
||||
@Config("transactionCooldown")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue