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

WebSdk overview

Added in v1.0.0


Table of contents


layer

layer

Signature

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

Added in v1.0.0

layers

layerTracerProvider

Signature

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

Added in v1.0.0

model

Configuration (interface)

Signature

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

Added in v1.0.0