Skip to content

StatsReporter and Scope use deprecated Buckets interface #104

@gmkohler

Description

@gmkohler

This makes for awkward implementations of the interfaces for projects that treat warnings as errors.

/**
* Report a {@link Histogram}.
* @param name name of {@link Histogram} to report
* @param tags tags to report on
* @param buckets {@link Buckets} of the {@link Histogram}
* @param bucketLowerBound lower bound of the bucket to report
* @param bucketUpperBound upper bound of the bucket to report
* @param samples samples to report
*/
void reportHistogramValueSamples(
String name,
Map<String, String> tags,
Buckets buckets,
double bucketLowerBound,
double bucketUpperBound,
long samples
);
/**
* Report a {@link Histogram}.
* @param name name of {@link Histogram} to report
* @param tags tags to report on
* @param buckets {@link Buckets} of the {@link Histogram}
* @param bucketLowerBound lower bound of the bucket to report
* @param bucketUpperBound upper bound of the bucket to report
* @param samples samples to report
*/
void reportHistogramDurationSamples(
String name,
Map<String, String> tags,
Buckets buckets,
Duration bucketLowerBound,
Duration bucketUpperBound,
long samples
);

Histogram histogram(String name, @Nullable Buckets buckets);

/**
* @deprecated DO NOT USE
*
* Please use {@link ImmutableBuckets} instead
*/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions