WebSdk overview
Added in v1.0.0
Table of contents
layer
layer
Signature
export declare const layer: {
(evaluate: LazyArg<Configuration>): Layer.Layer<Resource.Resource>
<E, R>(evaluate: Effect.Effect<Configuration, E, R>): Layer.Layer<Resource.Resource, E, R>
}
Added in v1.0.0
layers
layerTracerProvider
Signature
export declare const layerTracerProvider: (
processor: SpanProcessor | NonEmptyReadonlyArray<SpanProcessor>,
config?: Omit<TracerConfig, "resource">
) => Layer.Layer<TracerProvider, 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">
readonly metricReader?: MetricReader | ReadonlyArray<MetricReader> | undefined
readonly resource: {
readonly serviceName: string
readonly serviceVersion?: string
readonly attributes?: Resources.ResourceAttributes
}
}
Added in v1.0.0