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

datadog.trace.api.PropagationStyle Maven / Gradle / Ivy

There is a newer version: 1.42.2
Show newest version
package datadog.trace.api;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * These are the old propagation styles that have been deprecated in favor of the propagation styles
 * in {@code TracePropagationStyle}
 */
@Deprecated
public enum PropagationStyle {
  DATADOG(TracePropagationStyle.DATADOG),
  B3(TracePropagationStyle.B3SINGLE, TracePropagationStyle.B3MULTI),
  HAYSTACK(TracePropagationStyle.HAYSTACK),
  XRAY(TracePropagationStyle.XRAY);

  private final List newStyles;

  PropagationStyle(TracePropagationStyle... newStyles) {
    this.newStyles = Collections.unmodifiableList(Arrays.asList(newStyles));
  }

  public List getNewStyles() {
    return newStyles;
  }

  public static PropagationStyle valueOfConfigName(String configName) {
    return valueOf(configName.toUpperCase().trim());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy