Effect CommunityEC
Effect Community•2y ago•
1 reply
Patrick Roza

Tim Updated Dependencies in Effect-TS Repo

tim, updated deps. 🙂 https://github.com/Effect-TS/effect/pull/2736

utils/observability.ts:139:3 - error TS2769: No overload matches this call.
  Overload 1 of 2, '(evaluate: LazyArg<Configuration>): Layer<Resource, never, never>', gave the following error.
    Type 'BatchSpanProcessor' is not assignable to type 'SpanProcessor'.
  Overload 2 of 2, '(evaluate: Effect<unknown, unknown, Configuration>): Layer<Resource, unknown, unknown>', gave the following error.
    Argument of type '() => { resource: { readonly serviceName: string; readonly serviceVersion?: string | undefined; readonly attributes?: Attributes | undefined; }; spanProcessor: BatchSpanProcessor[]; }' is not assignable to parameter of type 'Effect<unknown, unknown, Configuration>'.

139   layer(() => ({
      ~~~~~


utils/observability.ts:166:5 - error TS2769: No overload matches this call.
  Overload 1 of 2, '(evaluate: LazyArg<Configuration>): Layer<Resource, never, never>', gave the following error.
    Type 'BatchSpanProcessor' is not assignable to type 'SpanProcessor'.
      Types of property 'onStart' are incompatible.
        Type '(_span: Span, _parentContext: Context) => void' is not assignable to type '(span: Span, parentContext: Context) => void'.
          Types of parameters '_span' and 'span' are incompatible.
            Type 'import("/Users/patrickroza/pj/macs/scanner/node_modules/.pnpm/@opentelemetry+sdk-trace-base@1.24.1_@opentelemetry+api@1.8.0/node_modules/@opentelemetry/sdk-trace-base/build/src/Span").Span' is not assignable to type 'import("/Users/patrickroza/pj/macs/scanner/node_modules/.pnpm/@opentelemetry+sdk-trace-base@1.24.0_@opentelemetry+api@1.8.0/node_modules/@opentelemetry/sdk-trace-base/build/src/Span").Span'.
              Types have separate declarations of a private property '_spanContext'.
  Overload 2 of 2, '(evaluate: Effect<unknown, unknown, Configuration>): Layer<Resource, unknown, unknown>', gave the following error.
    Argument of type '() => { resource: { readonly serviceName: string; readonly serviceVersion?: string | undefined; readonly attributes?: Attributes | undefined; }; spanProcessor: (SentrySpanProcessor | BatchSpanProcessor)[]; }' is not assignable to parameter of type 'Effect<unknown, unknown, Configuration>'.

166     layer(() => ({
        ~~~~~



Found 2 errors in the same file, starting at: utils/observability.ts:139
Was this page helpful?