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.
| Parameter | Type | Description |
|---|---|---|
attributes |
Record<string, string> |
The attributes to combine with the attributes inferred from the Adobe I/O Runtime. |
Resource
https://opentelemetry.io/docs/languages/js/resources/
0.1.0
const resource = getAioRuntimeResourceWithAttributes({ foo: "bar" });
// resource = { action.namespace: "my-namespace", action.name: "my-action", foo: "bar", ... }
// use this resource in your OpenTelemetry configuration