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

org.apache.rocketmq.shaded.io.opentelemetry.api.baggage.BaggageEntryMetadata 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.baggage;

import javax.annotation.concurrent.Immutable;

/**
 * Metadata associated with an {@link BaggageEntry}. For the moment this is an opaque wrapper for a
 * String metadata value.
 */
@Immutable
public interface BaggageEntryMetadata {

  /** Returns an empty {@link BaggageEntryMetadata}. */
  static BaggageEntryMetadata empty() {
    return ImmutableEntryMetadata.EMPTY;
  }

  /** Returns a new {@link BaggageEntryMetadata} with the given value. */
  static BaggageEntryMetadata create(String metadata) {
    return ImmutableEntryMetadata.create(metadata);
  }

  /** Returns the String value of this {@link BaggageEntryMetadata}. */
  String getValue();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy