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

org.apache.rocketmq.shaded.io.opentelemetry.api.metrics.MeterBuilder Maven / Gradle / Ivy

There is a newer version: 5.0.7
Show newest version
/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package org.apache.rocketmq.shaded.io.opentelemetry.api.metrics;

/**
 * Builder class for creating {@link Meter} instances.
 *
 * @since 1.4.0
 */
public interface MeterBuilder {

  /**
   * Assigns an OpenTelemetry schema URL to the resulting Meter.
   *
   * 

Schemas are used to identify expected metrics (semantic conventions) and allow backends to * "automatically migrate" to supported versions. * * @param schemaUrl The URL of the OpenTelemetry schema being used by this instrumentation scope. * @return this */ MeterBuilder setSchemaUrl(String schemaUrl); /** * Assigns a version to the instrumentation scope that is using the resulting Meter. * * @param instrumentationScopeVersion The version of the instrumentation scope. * @return this */ MeterBuilder setInstrumentationVersion(String instrumentationScopeVersion); /** * Gets or creates a {@link Meter} instance. * * @return a {@link Meter} instance configured with the provided options. */ Meter build(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy