Fix filter for healthcheck traces

This commit is contained in:
MTRNord
2023-09-02 21:56:35 +02:00
parent e587279c22
commit 5a7ac6fa54
+1 -1
View File
@@ -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 === "") {