Troubleshooting SentrySpanProcessor with @effect/opentelemetry and Deno Integration

why SentrySpanProcessor() is not working? I followed the documentation but I get no tracing at all using @effect/opentelemetry what I am missing?
import { NodeSdk } from "@effect/opentelemetry";
import { BatchSpanProcessor, ConsoleSpanExporter } from "@opentelemetry/sdk-trace-base";
import { SentrySpanProcessor } from "@sentry/opentelemetry";
import * as Sentry from "https://deno.land/x/sentry/index.mjs";
Sentry.init({
  dsn: "https://188923ebc097a15bdca79f1e4732257a@o4509086654857216.ingest.de.sentry.io/4509305019695184",
});
// setTimeout(() => { this one works and tracing is detected
//  new Error()
//});
...
const NodeSdkLive =  NodeSdk.layer(() => ({
resource: {
    serviceName: "Pictor",
    serviceVersion: "1.2.1",
    attributes: {"deployment.environment": "production"},
},
spanProcessor: new SentrySpanProcessor()})); // no Tracing !!
const runtime = ManagedRuntime.make(
    Layer.mergeAll(ProgramLive, NodeSdkLive, Logger.pretty),
);
await runtime.runPromise(program).catch(console.error).then(E.logInfo).then(
    () => Deno.exit(0),
);
Was this page helpful?