Class OpenTelemetryHttpServerConfig

java.lang.Object
io.micronaut.tracing.opentelemetry.instrument.http.server.OpenTelemetryHttpServerConfig

@ConfigurationProperties("otel.http.server") public class OpenTelemetryHttpServerConfig extends Object
Stores http Open Telemetry Http server configuration.
Since:
4.2.0
Author:
Nemanja Mikic
  • Field Details

  • Constructor Details

    • OpenTelemetryHttpServerConfig

      public OpenTelemetryHttpServerConfig()
  • Method Details

    • getResponseHeaders

      public List<String> getResponseHeaders()
      Returns:
      The List of response headers that will be included inside spans
    • setResponseHeaders

      public void setResponseHeaders(@NonNull @NonNull List<String> responseHeaders)
      Parameters:
      responseHeaders - The response headers
    • getRequestHeaders

      public List<String> getRequestHeaders()
      Returns:
      The List of request headers that will be included inside spans
    • setRequestHeaders

      public void setRequestHeaders(@NonNull @NonNull List<String> requestHeaders)
      Parameters:
      requestHeaders - The request headers