org.apache.rocketmq.shaded.io.opentelemetry.sdk.logs.LogEmitterBuilder Maven / Gradle / Ivy
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.apache.rocketmq.shaded.io.opentelemetry.sdk.logs;
/** Builder class for creating {@link LogEmitter} instances. */
public interface LogEmitterBuilder {
/**
* Assign an OpenTelemetry schema URL to the resulting {@link LogEmitter}.
*
* @param schemaUrl the URL of the OpenTelemetry schema being used by this instrumentation scope
* @return this
*/
LogEmitterBuilder setSchemaUrl(String schemaUrl);
/**
* Assign a version to the instrumentation scope that is using the resulting {@link LogEmitter}.
*
* @param instrumentationScopeVersion the version of the instrumentation scope
* @return this
*/
LogEmitterBuilder setInstrumentationVersion(String instrumentationScopeVersion);
/**
* Gets or creates a {@link LogEmitter} instance.
*
* @return a log emitter instance configured with the provided options
*/
LogEmitter build();
}