github Effect-TS/effect @effect/opentelemetry@0.46.5

latest releases: @effect/cluster@0.48.6, @effect/platform@0.90.9, @effect/workflow@0.9.5...
5 months ago

Patch Changes

  • #4740 b7a64c9 Thanks @tim-smart! - add Otlp module to @effect/opentelemetry

    This module allows you to setup an exporter for Traces, Metrics & Logs with one
    Layer.

    It also has no dependency on the @opentelemetry libraries, so you don't need to
    add any additional deps to your package.json.

    import * as Otlp from "@effect/opentelemetry/Otlp"
    import * as FetchHttpClient from "@effect/platform/FetchHttpClient"
    import { Effect, Layer, Schedule } from "effect"
    
    // Includes an Effect Tracer, Logger & Metric exporter
    const Observability = Otlp.layer({
      baseUrl: "http://localhost:4318",
      resource: {
        serviceName: "my-service"
      }
    }).pipe(Layer.provide(FetchHttpClient.layer))
  • #4740 b7a64c9 Thanks @tim-smart! - add Effect native OtlpMetrics & OtlpLogger

  • Updated dependencies [d78249f]:

    • effect@3.14.9
    • @effect/platform@0.80.9

Don't miss a new effect release

NewReleases is sending notifications on new releases.