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

Resource.ts overview

Since v1.0.0


Exports Grouped by Category


config

configToAttributes

Signature

declare const configToAttributes: (options: {
  readonly serviceName: string
  readonly serviceVersion?: string
  readonly attributes?: Resources.ResourceAttributes
}) => Record<string, string>

Source

Since v1.0.0

identifier

Resource (interface)

Signature

export interface Resource {
  readonly _: unique symbol
}

Source

Since v1.0.0

layer

layer

Signature

declare const layer: (config: {
  readonly serviceName: string
  readonly serviceVersion?: string
  readonly attributes?: Resources.ResourceAttributes
}) => any

Source

Since v1.0.0

layerEmpty

Signature

declare const layerEmpty: any

Source

Since v2.0.0

layerFromEnv

Signature

declare const layerFromEnv: (additionalAttributes?: Resources.ResourceAttributes | undefined) => Layer.Layer<Resource>

Source

Since v1.0.0

tag

Resource

Signature

declare const Resource: any

Source

Since v1.0.0