Class OtelHttpServerHandler

java.lang.Object
io.micrometer.tracing.otel.bridge.OtelHttpServerHandler
All Implemented Interfaces:
io.micrometer.tracing.http.HttpServerHandler

@Deprecated public class OtelHttpServerHandler extends Object implements io.micrometer.tracing.http.HttpServerHandler
Deprecated.
scheduled for removal in 1.4.0
OpenTelemetry implementation of a HttpServerHandler.
Since:
1.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    OtelHttpServerHandler(io.opentelemetry.api.OpenTelemetry openTelemetry, io.micrometer.tracing.http.HttpRequestParser httpServerRequestParser, io.micrometer.tracing.http.HttpResponseParser httpServerResponseParser, Pattern skipPattern, io.opentelemetry.instrumentation.api.instrumenter.http.HttpServerAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse> httpAttributesExtractor)
    Deprecated.
    Creates a new instance of OtelHttpServerHandler.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.micrometer.tracing.Span
    handleReceive(io.micrometer.tracing.http.HttpServerRequest request)
    Deprecated.
     
    void
    handleSend(io.micrometer.tracing.http.HttpServerResponse response, io.micrometer.tracing.Span span)
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OtelHttpServerHandler

      public OtelHttpServerHandler(io.opentelemetry.api.OpenTelemetry openTelemetry, @Nullable io.micrometer.tracing.http.HttpRequestParser httpServerRequestParser, @Nullable io.micrometer.tracing.http.HttpResponseParser httpServerResponseParser, Pattern skipPattern, io.opentelemetry.instrumentation.api.instrumenter.http.HttpServerAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse> httpAttributesExtractor)
      Deprecated.
      Creates a new instance of OtelHttpServerHandler.
      Parameters:
      openTelemetry - open telemetry
      httpServerRequestParser - http client request parser
      httpServerResponseParser - http client response parser
      skipPattern - skip pattern
      httpAttributesExtractor - http attributes extractor
  • Method Details

    • handleReceive

      public io.micrometer.tracing.Span handleReceive(io.micrometer.tracing.http.HttpServerRequest request)
      Deprecated.
      Specified by:
      handleReceive in interface io.micrometer.tracing.http.HttpServerHandler
    • handleSend

      public void handleSend(io.micrometer.tracing.http.HttpServerResponse response, io.micrometer.tracing.Span span)
      Deprecated.
      Specified by:
      handleSend in interface io.micrometer.tracing.http.HttpServerHandler