Skip to main content Link Search Menu Expand Document (external link)

NodeSdk overview

Added in v1.0.0


Table of contents


layer

layer

Signature

export declare const layer: {
  (evaluate: LazyArg<Configuration>): Layer.Layer<Resource.Resource>
  <R, E>(evaluate: Effect.Effect<Configuration, E, R>): Layer.Layer<Resource.Resource, E, R>
}

Added in v1.0.0

layerEmpty

Signature

export declare const layerEmpty: Layer.Layer<Resource.Resource>

Added in v2.0.0

layers

layerTracerProvider

Signature

export declare const layerTracerProvider: (
  processor: SpanProcessor | NonEmptyReadonlyArray<SpanProcessor>,
  config?: Omit<TracerConfig, "resource">
) => Layer.Layer<Tracer.OtelTracerProvider, never, Resource.Resource>

Added in v1.0.0

model

Configuration (interface)

Signature

export interface Configuration {
  readonly spanProcessor?: SpanProcessor | ReadonlyArray<SpanProcessor> | undefined
  readonly tracerConfig?: Omit<TracerConfig, "resource"> | undefined
  readonly metricReader?: MetricReader | ReadonlyArray<MetricReader> | undefined
  readonly resource?:
    | {
        readonly serviceName: string
        readonly serviceVersion?: string
        readonly attributes?: Resources.ResourceAttributes
      }
    | undefined
}

Added in v1.0.0