🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore: remove process detector instrumentation (#15391)
Steffen Schmitz1ce352af2c4f
diff --git a/web/src/observability.config.ts b/web/src/observability.config.tsindex 344901d773..aaa4a613fa 100644--- a/web/src/observability.config.ts+++ b/web/src/observability.config.ts@@ -20,11 +20,7 @@ import { WinstonInstrumentation } from "@opentelemetry/instrumentation-winston";import { AwsInstrumentation } from "@opentelemetry/instrumentation-aws-sdk";import { BullMQInstrumentation } from "@appsignal/opentelemetry-instrumentation-bullmq";import { ioredisRequestHook } from "@langfuse/shared/src/server";-import {- envDetector,- processDetector,- resourceFromAttributes,-} from "@opentelemetry/resources";+import { envDetector, resourceFromAttributes } from "@opentelemetry/resources";import { awsEcsDetector } from "@opentelemetry/resource-detector-aws";import { containerDetector } from "@opentelemetry/resource-detector-container";import { env } from "@/src/env.mjs";@@ -153,12 +149,7 @@ const sdk = new NodeSDK({new WinstonInstrumentation({ disableLogSending: true }),new BullMQInstrumentation({ useProducerSpanAsConsumerParent: true }),],- resourceDetectors: [- envDetector,- processDetector,- awsEcsDetector,- containerDetector,- ],+ resourceDetectors: [envDetector, awsEcsDetector, containerDetector],sampler: new TraceIdRatioBasedSampler(env.OTEL_TRACE_SAMPLING_RATIO),});diff --git a/worker/src/instrumentation.ts b/worker/src/instrumentation.tsindex 1e64ef76c5..a088aaffab 100644--- a/worker/src/instrumentation.ts+++ b/worker/src/instrumentation.ts@@ -10,11 +10,7 @@ import { WinstonInstrumentation } from "@opentelemetry/instrumentation-winston";import { AwsInstrumentation } from "@opentelemetry/instrumentation-aws-sdk";import { BullMQInstrumentation } from "@appsignal/opentelemetry-instrumentation-bullmq";import { ioredisRequestHook } from "@langfuse/shared/src/server";-import {- envDetector,- processDetector,- resourceFromAttributes,-} from "@opentelemetry/resources";+import { envDetector, resourceFromAttributes } from "@opentelemetry/resources";import { awsEcsDetector } from "@opentelemetry/resource-detector-aws";import { containerDetector } from "@opentelemetry/resource-detector-container";import { env } from "./env";@@ -99,12 +95,7 @@ const sdk = new NodeSDK({new WinstonInstrumentation({ disableLogSending: true }),new BullMQInstrumentation({ useProducerSpanAsConsumerParent: true }),],- resourceDetectors: [- envDetector,- processDetector,- awsEcsDetector,- containerDetector,- ],+ resourceDetectors: [envDetector, awsEcsDetector, containerDetector],});sdk.start();