Integrating Effect with OpenTelemetry and Sentry

How does Effect work with open telemetry and Sentry?
The documentation only talks about printing the spans to the console but i don't know if it overwrites the sentry implementation or something, i'm not familiar with open telemetry
Do i really have to provide a NodeSDK from "@effect/opentelemetry"?
Does sentry already hook up into it?

This is the code I have:

// opentelemetry.ts
import { NodeSdk } from "@effect/opentelemetry";

export const NodeSdkLive = NodeSdk.layer(() => ({
  resource: { serviceName: "vipago" },
}))

// index.ts
import { Hono } from 'hono';
import { cors } from 'hono/cors';
import { logger } from 'hono/logger';
import { sentry } from '@hono/sentry';

const hono = new Hono();
hono.use(cors());
hono.use(logger());
hono.use(
  sentry({
    tracesSampleRate: 1.0,
    sampleRate: 1.0,
    integrations: [],
    environment: process.env.NODE_ENV,
    dsn: process.env.SENTRY_DSN
  }),
);


If i do something like
import { NodeSdkLive } from "./opentelemetry"
pipe(
  Effect.void,
  Effect.withSpan("foo"),
  Effect.provide(NodeSdkLive),
  Effect.runSync
)

Will it already be sent to sentry?
Was this page helpful?