datadog.trace.api.PropagationStyle Maven / Gradle / Ivy
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