public class OtelUtils extends Object
Constructor and Description |
---|
OtelUtils() |
Modifier and Type | Method and Description |
---|---|
static AutoCloseable |
activeSpanIfAvailable(Run run) |
static AutoCloseable |
activeSpanIfAvailable(org.jenkinsci.plugins.workflow.steps.StepContext stepContext) |
static String |
getTraceParent() |
static boolean |
isOpenTelemetryAvailable() |
static AutoCloseable |
noop() |
public static String getTraceParent()
public static AutoCloseable activeSpanIfAvailable(org.jenkinsci.plugins.workflow.steps.StepContext stepContext)
public static AutoCloseable activeSpanIfAvailable(Run run)
@NotNull public static AutoCloseable noop()
@NotNull public static boolean isOpenTelemetryAvailable()
Copyright © 2016–2023. All rights reserved.