mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-06-04 06:41:18 +00:00
Fix filter for healthcheck traces
This commit is contained in:
@@ -40,7 +40,7 @@ if (process.env.TRACING_ENABLED) {
|
||||
}
|
||||
|
||||
function ignoreHealthCheck(spanName: string, spanKind: SpanKind, attributes: Attributes) {
|
||||
return spanKind === SpanKind.SERVER && (attributes[SemanticAttributes.HTTP_ROUTE] !== "/healthz" || attributes[SemanticAttributes.HTTP_ROUTE] !== "/metrics");
|
||||
return attributes[SemanticAttributes.HTTP_ROUTE] !== "/healthz" || attributes[SemanticAttributes.HTTP_ROUTE] !== "/metrics";
|
||||
}
|
||||
|
||||
if (process.env.TRACING_TRACE_URL === undefined || process.env.TRACING_TRACE_URL === "") {
|
||||
|
||||
Reference in New Issue
Block a user