Class OpenTelemetryUtils

java.lang.Object
com.sap.cds.services.impl.utils.OpenTelemetryUtils

public class OpenTelemetryUtils extends Object
  • Method Details

    • createSpan

      public static Optional<io.opentelemetry.api.trace.Span> createSpan(OpenTelemetryUtils.CdsSpanType type)
    • createSpan

      public static Optional<io.opentelemetry.api.trace.Span> createSpan(OpenTelemetryUtils.CdsSpanType type, io.opentelemetry.context.Context parentContext)
    • updateSpan

      public static void updateSpan(Optional<io.opentelemetry.api.trace.Span> span, String serviceName, String eventName, String entityName)
    • updateSpan

      public static void updateSpan(Optional<io.opentelemetry.api.trace.Span> span, RequestContextSPI requestContext)
    • updateSpan

      public static void updateSpan(Optional<io.opentelemetry.api.trace.Span> span, ChangeSetContextImpl changeSetContext)
    • endSpan

      public static void endSpan(Optional<io.opentelemetry.api.trace.Span> span)
    • recordException

      public static void recordException(Optional<io.opentelemetry.api.trace.Span> span, Exception e)
    • setTracerProvider

      public static void setTracerProvider(io.opentelemetry.api.trace.TracerProvider tracerProvider)