diff --git a/src/appservice/cli.ts b/src/appservice/cli.ts index 65d775b4..0147cb9f 100644 --- a/src/appservice/cli.ts +++ b/src/appservice/cli.ts @@ -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 === "") {