Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.27 KB

File metadata and controls

38 lines (25 loc) · 1.27 KB

getAioRuntimeResourceWithAttributes()

function getAioRuntimeResourceWithAttributes(
  attributes: Record<string, string>,
): Resource;

Defined in: api/attributes.ts:64

Creates a resource that combines the attributes inferred from the Adobe I/O Runtime with the provided attributes.

Parameters

Parameter Type Description
attributes Record<string, string> The attributes to combine with the attributes inferred from the Adobe I/O Runtime.

Returns

Resource

See

https://opentelemetry.io/docs/languages/js/resources/

Since

0.1.0

Example

const resource = getAioRuntimeResourceWithAttributes({ foo: "bar" });
// resource = { action.namespace: "my-namespace", action.name: "my-action", foo: "bar", ... }
// use this resource in your OpenTelemetry configuration