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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setRequestHeaders
(@NonNull List<String> requestHeaders) void
setResponseHeaders
(@NonNull List<String> responseHeaders)
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
OpenTelemetryHttpServerConfig
public OpenTelemetryHttpServerConfig()
-
-
Method Details
-
getResponseHeaders
- Returns:
- The List of response headers that will be included inside spans
-
setResponseHeaders
- Parameters:
responseHeaders
- The response headers
-
getRequestHeaders
- Returns:
- The List of request headers that will be included inside spans
-
setRequestHeaders
- Parameters:
requestHeaders
- The request headers
-