You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* ci: release package
* docs: update example to remove deprecated header
* docs: regenerate api reference
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ivan Porto <iporto@adobe.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,15 @@
1
1
# @adobe/aio-lib-telemetry
2
2
3
+
## 1.1.0
4
+
5
+
### Minor Changes
6
+
7
+
-[#53](https://github.com/adobe/aio-lib-telemetry/pull/53)[`da43624`](https://github.com/adobe/aio-lib-telemetry/commit/da43624af232c1ac9031ac88493037b9dede969e) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Add support for an `integrations` feature to easily integrate with external systems that require a specific configuration. Introduces a `commerceEvents` and a `commerceWebhooks` integrations that are available from `@adobe/aio-lib-telemetry/integrations` which can be used to automatically configure context propagation for requests or events coming from [Adobe Commerce Webhooks](https://developer-stage.adobe.com/commerce/extensibility/webhooks/) or [Adobe Commerce Events](https://developer-stage.adobe.com/commerce/extensibility/events/).
8
+
9
+
-[#47](https://github.com/adobe/aio-lib-telemetry/pull/47)[`6fb3032`](https://github.com/adobe/aio-lib-telemetry/commit/6fb30324206200bd72ef8a99d78f7c02c90e8864) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Automatically mark root spans with an error status if they return a response that matches an unsuccessful response shape (according to [App Builder documentation](https://developer.adobe.com/app-builder/docs/guides/runtime_guides/creating-actions#unsuccessful-response))
10
+
11
+
-[#53](https://github.com/adobe/aio-lib-telemetry/pull/53)[`da43624`](https://github.com/adobe/aio-lib-telemetry/commit/da43624af232c1ac9031ac88493037b9dede969e) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Deprecate custom `x-telemetry-context` header. From now on, if invoking via HTTP requests, propagated context doesn't need to be nested inside that header. Following the W3C Trace Propagation spec, you can send the `traceparent` (and related) headers as normal headers. They will be picked from `__ow_headers` instead. **Note that this only applies for runtime actions invoked via HTTP requests**. When invoked via events you should still use the special `__telemetryContext` variables or specify yourself where to find the context carrier.
|[addEventToActiveSpan](functions/addEventToActiveSpan.md)| Adds an event to the given span. |
96
-
|[defineMetrics](functions/defineMetrics.md)| Helper to define a record of metrics. |
97
-
|[defineTelemetryConfig](functions/defineTelemetryConfig.md)| Helper to define the telemetry configuration for an entrypoint. |
98
-
|[deserializeContextFromCarrier](functions/deserializeContextFromCarrier.md)| Deserializes the context from a carrier and augments the given base context with it. |
99
-
|[getActiveSpan](functions/getActiveSpan.md)| Gets the active span from the given context. |
100
-
|[getAioRuntimeAttributes](functions/getAioRuntimeAttributes.md)|Infers some useful attributes for the current action from the Adobe I/O Runtime and returns them as a record of key-value pairs. |
101
-
|[getAioRuntimeResource](functions/getAioRuntimeResource.md)|Creates a [resource](https://open-telemetry.github.io/opentelemetry-js/interfaces/_opentelemetry_sdk-node.resources.Resource.html) from the attributes inferred from the Adobe I/O Runtime and returns it as an OpenTelemetry Resource object.|
102
-
|[getAioRuntimeResourceWithAttributes](functions/getAioRuntimeResourceWithAttributes.md)|Creates a [resource](https://open-telemetry.github.io/opentelemetry-js/interfaces/_opentelemetry_sdk-node.resources.Resource.html) that combines the attributes inferred from the Adobe I/O Runtime with the provided attributes.|
103
-
|[getGlobalTelemetryApi](functions/getGlobalTelemetryApi.md)| Gets the global telemetry API. |
104
-
|[getInstrumentationHelpers](functions/getInstrumentationHelpers.md)| Access helpers for the current instrumented operation. |
105
-
|[getLogger](functions/getLogger.md)| Gets a logger instance that can export OpenTelemetry logs. |
106
-
|[getPresetInstrumentations](functions/getPresetInstrumentations.md)| Gets the instrumentations for a given preset. |
107
-
|[instrument](functions/instrument.md)| Instruments a function. |
108
-
|[instrumentEntrypoint](functions/instrumentEntrypoint.md)| Instruments the entrypoint of a runtime action. Needs to be used ONLY with the `main` function of a runtime action. |
109
-
|[serializeContextIntoCarrier](functions/serializeContextIntoCarrier.md)| Serializes the current context into a carrier. |
110
-
|[tryAddEventToActiveSpan](functions/tryAddEventToActiveSpan.md)| Tries to add an event to the active span. |
111
-
|[tryGetActiveSpan](functions/tryGetActiveSpan.md)| Tries to get the active span from the given context. |
|[addEventToActiveSpan](functions/addEventToActiveSpan.md)| Adds an event to the given span. |
98
+
|[defineMetrics](functions/defineMetrics.md)| Helper to define a record of metrics. |
99
+
|[defineTelemetryConfig](functions/defineTelemetryConfig.md)| Helper to define the telemetry configuration for an entrypoint. |
100
+
|[deserializeContextFromCarrier](functions/deserializeContextFromCarrier.md)| Deserializes the context from a carrier and augments the given base context with it. |
101
+
|[getActiveSpan](functions/getActiveSpan.md)| Gets the active span from the given context. |
102
+
|[getAioRuntimeAttributes](functions/getAioRuntimeAttributes.md)|biome-ignore-all lint/performance/noBarrelFile: This is the import entrypoint for the public API.|
103
+
|[getAioRuntimeResource](functions/getAioRuntimeResource.md)|biome-ignore-all lint/performance/noBarrelFile: This is the import entrypoint for the public API. |
104
+
|[getAioRuntimeResourceWithAttributes](functions/getAioRuntimeResourceWithAttributes.md)|biome-ignore-all lint/performance/noBarrelFile: This is the import entrypoint for the public API. |
105
+
|[getGlobalTelemetryApi](functions/getGlobalTelemetryApi.md)| Gets the global telemetry API. |
106
+
|[getInstrumentationHelpers](functions/getInstrumentationHelpers.md)| Access helpers for the current instrumented operation. |
107
+
|[getLogger](functions/getLogger.md)| Gets a logger instance that can export OpenTelemetry logs. |
108
+
|[getPresetInstrumentations](functions/getPresetInstrumentations.md)| Gets the instrumentations for a given preset. |
109
+
|[instrument](functions/instrument.md)| Instruments a function. |
110
+
|[instrumentEntrypoint](functions/instrumentEntrypoint.md)| Instruments the entrypoint of a runtime action. Needs to be used ONLY with the `main` function of a runtime action. |
111
+
|[serializeContextIntoCarrier](functions/serializeContextIntoCarrier.md)| Serializes the current context into a carrier. |
112
+
|[tryAddEventToActiveSpan](functions/tryAddEventToActiveSpan.md)| Tries to add an event to the active span. |
113
+
|[tryGetActiveSpan](functions/tryGetActiveSpan.md)| Tries to get the active span from the given context. |
Copy file name to clipboardExpand all lines: docs/api-reference/functions/deserializeContextFromCarrier.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ function deserializeContextFromCarrier<Carrier>(
7
7
):Context;
8
8
```
9
9
10
-
Defined in: [api/propagation.ts:59](https://github.com/adobe/aio-lib-telemetry/blob/8f52cfa8868b711535e2b8726ef8da98982edbdf/source/api/propagation.ts#L59)
10
+
Defined in: [api/propagation.ts:61](https://github.com/adobe/aio-lib-telemetry/blob/559503f2d0d79c50f3f552437165225cc1007a4f/source/api/propagation.ts#L61)
11
11
12
12
Deserializes the context from a carrier and augments the given base context with it.
0 commit comments