All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.opentelemetry.sdk.metrics.internal.data.ImmutableSummaryData Maven / Gradle / Ivy

The newest version!
/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package io.opentelemetry.sdk.metrics.internal.data;

import com.google.auto.value.AutoValue;
import io.opentelemetry.sdk.metrics.data.SummaryData;
import io.opentelemetry.sdk.metrics.data.SummaryPointData;
import java.util.Collection;
import java.util.Collections;
import javax.annotation.concurrent.Immutable;

/**
 * A summary metric point.
 *
 * 

See: * https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/datamodel.md#summary * *

Note: This is called "DoubleSummary" to reflect which primitives are used to record it, * however "Summary" is the equivalent OTLP type. * *

Summary is considered a legacy metric type, and shouldn't be produced (by default) from * instruments. * *

This class is internal and is hence not for public use. Its APIs are unstable and can change * at any time. */ @Immutable @AutoValue public abstract class ImmutableSummaryData implements SummaryData { private static final ImmutableSummaryData EMPTY = ImmutableSummaryData.create(Collections.emptyList()); public static ImmutableSummaryData empty() { return EMPTY; } ImmutableSummaryData() {} public static ImmutableSummaryData create(Collection points) { return new AutoValue_ImmutableSummaryData(points); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy