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
Copy file name to clipboardExpand all lines: src/content/docs/cloudflare-for-platforms/workers-for-platforms/configuration/observability.mdx
+31-5Lines changed: 31 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,9 @@
1
1
---
2
2
pcx_content_type: concept
3
3
title: Observability
4
-
5
4
---
6
5
7
-
Workers for Platforms provides you with logs and analytics that can be used to share data with end users.
6
+
Workers for Platforms provides you with logs, traces, and analytics that can be used to share data with end users.
8
7
9
8
## Logs
10
9
@@ -29,16 +28,43 @@ A [Tail Worker](/workers/observability/logs/tail-workers/) receives information
29
28
30
29
Use [Tail Workers](/workers/observability/logs/tail-workers/) instead of Logpush if you want granular control over formatting before logs are sent to their destination to receive [diagnostics channel events](/workers/runtime-apis/nodejs/diagnostics-channel), or if you want logs delivered in real-time.
31
30
32
-
Adding a Tail Worker to your dispatch Worker collects logs for both the dispatch Worker and for any user Workers in the dispatch namespace. Logs are automatically collected for all new Workers added to a dispatch namespace. To enable logging for an individual user Worker rather than an entire dispatch namespace, add the [Tail Worker configuration](/workers/observability/logs/tail-workers/#configure-tail-workers) directly to the user Worker.
31
+
Adding a Tail Worker to your dispatch Worker collects logs for both the dispatch Worker and for any user Workers in the dispatch namespace. Logs are automatically collected for all new Workers added to a dispatch namespace. To enable logging for an individual user Worker rather than an entire dispatch namespace, add the [Tail Worker configuration](/workers/observability/logs/tail-workers/#configure-tail-workers) directly to the user Worker.
33
32
34
33
## Analytics
35
34
36
35
There are two ways for you to review your Workers for Platforms analytics.
37
36
38
37
### Workers Analytics Engine
39
38
40
-
[Workers Analytics Engine](/analytics/analytics-engine/) can be used with Workers for Platforms to provide analytics to end users. It can be used to expose events relating to a Workers invocation or custom user-defined events. Platforms can write/query events by script tag to get aggregates over a user’s usage.
39
+
[Workers Analytics Engine](/analytics/analytics-engine/) can be used with Workers for Platforms to provide analytics to end users. It can be used to expose events relating to a Workers invocation or custom user-defined events. Platforms can write/query events by script tag to get aggregates over a user's usage.
41
40
42
41
### GraphQL Analytics API
43
42
44
-
Use Cloudflare’s [GraphQL Analytics API](/analytics/graphql-api) to get metrics relating to your Dispatch Namespaces. Use the `dispatchNamespaceName` dimension in the `workersInvocationsAdaptive` node to query usage by namespace.
43
+
Use Cloudflare's [GraphQL Analytics API](/analytics/graphql-api) to get metrics relating to your Dispatch Namespaces. Use the `dispatchNamespaceName` dimension in the `workersInvocationsAdaptive` node to query usage by namespace.
44
+
45
+
## OpenTelemetry Exports
46
+
47
+
Workers for Platforms supports exporting traces and application logs from user Workers to any [supported OpenTelemetry destination](/workers/observability/exporting-opentelemetry-data/#available-opentelemetry-destinations). To configure this, [create a destination](/workers/observability/exporting-opentelemetry-data/#creating-a-destination) in the Cloudflare dashboard, then set the `observability` field in the worker metadata when uploading the user Worker via the [dispatch namespace API](/cloudflare-for-platforms/workers-for-platforms/platform/management/#upload-a-user-worker).
48
+
49
+
To enable log and trace export when uploading a user Worker:
Exported telemetry include the `cloudflare.dispatch_namespace` attribute, which identifies the dispatch namespace the user Worker belongs to.
69
+
70
+
For details on supported destinations, limits, and pricing, refer to [Exporting OpenTelemetry Data](/workers/observability/exporting-opentelemetry-data/).
0 commit comments