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: assemblies/extend_orchestrator-in-rhdh/assembly-configure-log-aggregation-and-observability-for-sonataflow.adoc
You must implement a robust observability strategy to ensure your serverless workflows are production-ready. By configuring structured JSON logging and integrating OpenTelemetry, you enable automated log aggregation, process-instance correlation, and distributed tracing.
11
+
You must implement an observability strategy to make sure your serverless workflows are production-ready. By configuring structured JSON logging and integrating OpenTelemetry, you enable automated log aggregation, process-instance correlation, and distributed tracing.
12
12
13
13
// Enable structured JSON logging for SonataFlow workflows
Copy file name to clipboardExpand all lines: modules/extend_orchestrator-in-rhdh/proc-enable-structured-json-logging-for-sonataflow-workflows.adoc
+10-13Lines changed: 10 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
= Enable structured JSON logging for SonataFlow workflows
5
5
6
6
[role="_abstract"]
7
-
Configure your SonataFlow workflows to emit logs in structured JSON format. This enables machine processing and allows you to correlate log entries with specific process instances across your log aggregation stack.
7
+
Configure your SonataFlow workflows to emit logs in structured JSON format. Structured logging enables machine processing and correlates log entries with specific process instances across your log aggregation stack.
8
8
9
9
SonataFlow workflows support structured JSON logging with automatic process instance correlation through:
10
10
@@ -16,15 +16,13 @@ SonataFlow workflows support structured JSON logging with automatic process inst
16
16
17
17
* You have deployed SonataFlow workflow using the SonataFlow Operator on {platform-generic} or Kubernetes.
18
18
19
-
* The `io.quarkus:quarkus-logging-json` extension is included in your workflow `QUARKUS_EXTENSIONS` environment variable during the image build.
19
+
* You have included the `io.quarkus:quarkus-logging-json` extension in your workflow `QUARKUS_EXTENSIONS` environment variable.
20
20
21
-
* You have cluster admin permissions for deploying log aggregation stack.
22
-
23
-
* You have knowledge of JSON logging and log aggregation tools.
21
+
* You have `cluster-admin` permissions for deploying log aggregation stack.
24
22
25
23
.Procedure
26
24
27
-
. Update your workflow build configuration to include the required JSON logging extension:
25
+
. Update your workflow build configuration to include the JSON logging extension:
If the MDC fields are empty or missing, ensure that the JSON logging is active and verify the process context. Missing fields might indicate one of the following conditions:
99
-
100
-
* The workflow has not processed any instances.
96
+
If the Mapped Diagnostic Context (MDC) fields are empty, verify the following:
101
97
102
-
* The SonataFlow version requires custom MDC configuration.
98
+
* The workflow has processed at least one instance.
99
+
* The SonataFlow version matches the required configuration for MDC propagation.
0 commit comments