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

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

There is a newer version: 1.44.1
Show 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.api.common.Attributes;
import io.opentelemetry.api.trace.SpanContext;
import io.opentelemetry.sdk.metrics.data.ExemplarData;
import io.opentelemetry.sdk.metrics.data.LongExemplarData;
import io.opentelemetry.sdk.metrics.data.PointData;
import javax.annotation.concurrent.Immutable;

/**
 * An {@link ExemplarData} with {@code long} measurements.
 *
 * 

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 ImmutableLongExemplarData implements LongExemplarData { /** * Construct a new exemplar. * * @param filteredAttributes The set of {@link Attributes} not already associated with the {@link * PointData}. * @param recordTimeNanos The time when the sample qas recorded in nanoseconds. * @param spanContext The associated span context. * @param value The value recorded. */ public static LongExemplarData create( Attributes filteredAttributes, long recordTimeNanos, SpanContext spanContext, long value) { return new AutoValue_ImmutableLongExemplarData( filteredAttributes, recordTimeNanos, spanContext, value); } ImmutableLongExemplarData() {} }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy