@@ -813,43 +813,43 @@ declare namespace tracer {
813
813
export interface DogStatsD {
814
814
/**
815
815
* Increments a metric by the specified value, optionally specifying tags.
816
- * @param { string } stat The dot-separated metric name.
817
- * @param { number } value The amount to increment the stat by.
818
- * @param { [tag:string]:string|number } tags Tags to pass along, such as `{ foo: 'bar' }`. Values are combined with config.tags.
816
+ * @param stat The dot-separated metric name.
817
+ * @param value The amount to increment the stat by.
818
+ * @param tags Tags to pass along, such as `{ foo: 'bar' }`. Values are combined with config.tags.
819
819
*/
820
- increment ( stat : string , value ?: number , tags ?: { [ tag : string ] : string | number } ) : void
820
+ increment ( stat : string , value ?: number , tags ?: Record < string , string | number > ) : void
821
821
822
822
/**
823
823
* Decrements a metric by the specified value, optionally specifying tags.
824
- * @param { string } stat The dot-separated metric name.
825
- * @param { number } value The amount to decrement the stat by.
826
- * @param { [tag:string]:string|number } tags Tags to pass along, such as `{ foo: 'bar' }`. Values are combined with config.tags.
824
+ * @param stat The dot-separated metric name.
825
+ * @param value The amount to decrement the stat by.
826
+ * @param tags Tags to pass along, such as `{ foo: 'bar' }`. Values are combined with config.tags.
827
827
*/
828
- decrement ( stat : string , value ?: number , tags ?: { [ tag : string ] : string | number } ) : void
828
+ decrement ( stat : string , value ?: number , tags ?: Record < string , string | number > ) : void
829
829
830
830
/**
831
831
* Sets a distribution value, optionally specifying tags.
832
- * @param { string } stat The dot-separated metric name.
833
- * @param { number } value The amount to increment the stat by.
834
- * @param { [tag:string]:string|number } tags Tags to pass along, such as `{ foo: 'bar' }`. Values are combined with config.tags.
832
+ * @param stat The dot-separated metric name.
833
+ * @param value The amount to increment the stat by.
834
+ * @param tags Tags to pass along, such as `{ foo: 'bar' }`. Values are combined with config.tags.
835
835
*/
836
- distribution ( stat : string , value ?: number , tags ?: { [ tag : string ] : string | number } ) : void
836
+ distribution ( stat : string , value ?: number , tags ?: Record < string , string | number > ) : void
837
837
838
838
/**
839
839
* Sets a gauge value, optionally specifying tags.
840
- * @param { string } stat The dot-separated metric name.
841
- * @param { number } value The amount to increment the stat by.
842
- * @param { [tag:string]:string|number } tags Tags to pass along, such as `{ foo: 'bar' }`. Values are combined with config.tags.
840
+ * @param stat The dot-separated metric name.
841
+ * @param value The amount to increment the stat by.
842
+ * @param tags Tags to pass along, such as `{ foo: 'bar' }`. Values are combined with config.tags.
843
843
*/
844
- gauge ( stat : string , value ?: number , tags ?: { [ tag : string ] : string | number } ) : void
844
+ gauge ( stat : string , value ?: number , tags ?: Record < string , string | number > ) : void
845
845
846
846
/**
847
847
* Sets a histogram value, optionally specifying tags.
848
- * @param { string } stat The dot-separated metric name.
849
- * @param { number } value The amount to increment the stat by.
850
- * @param { [tag:string]:string|number } tags Tags to pass along, such as `{ foo: 'bar' }`. Values are combined with config.tags.
848
+ * @param stat The dot-separated metric name.
849
+ * @param value The amount to increment the stat by.
850
+ * @param tags Tags to pass along, such as `{ foo: 'bar' }`. Values are combined with config.tags.
851
851
*/
852
- histogram ( stat : string , value ?: number , tags ?: { [ tag : string ] : string | number } ) : void
852
+ histogram ( stat : string , value ?: number , tags ?: Record < string , string | number > ) : void
853
853
854
854
/**
855
855
* Forces any unsent metrics to be sent
@@ -871,7 +871,7 @@ declare namespace tracer {
871
871
872
872
/**
873
873
* Links a failed login event to the current trace.
874
- * @param {string } userId The user id of the attemped login.
874
+ * @param {string } userId The user id of the attempted login.
875
875
* @param {boolean } exists If the user id exists.
876
876
* @param {[key: string]: string } metadata Custom fields to link to the login failure event.
877
877
*
0 commit comments