Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides adding or modifying event handlers, attributes, and tests in the Camunda analytics exporter.
40% 92%+52 ptsof test cases passed
Passed 23 of 25 test cases with the skill, and 10 of 25 without it.
3 of 3 safety checks passed
240 agent runs
3 forksA fork is a copy of this skill that someone made so they could edit it for their own use. The original doesn't change.
Reference for extending the analytics exporter with a new event handler. The exporter ships process-level OTel telemetry to the Camunda Analytics backend; downstream dashboards and alerts depend on stable attribute key strings and event names across versions. Getting registration or backwards compatibility wrong silently drops data or breaks analytics.
Iron rule — NEVER expose PII. Variable values, usernames, email addresses, user IDs, or any other personally identifiable data must never be emitted. Only process metadata (process IDs, definition keys, instance keys, element IDs, tenant IDs, timestamps) is acceptable. When in doubt, leave it out.
zeebe/exporters/analytics-exporter/src/main/java/io/camunda/exporter/analytics/
AnalyticsExporter.java ← entry point; configure() wires up the HandlerRegistry
AnalyticsHandler.java ← @FunctionalInterface — implement this
HandlerRegistry.java ← routes (ValueType, Intent) → handler
AnalyticsAttributes.java ← all OTel attribute keys and event/metric name constants
OtelSdkManager.java ← logEvent() / incrementMetric() / emitHeartbeat()
handler/ ← one class per event type
Determine the ValueType, Intent, and RecordValue type from the Zeebe protocol:
zeebe/protocol/src/main/java/io/camunda/zeebe/protocol/record/value/
zeebe/protocol/src/main/java/io/camunda/zeebe/protocol/record/intent/
Check HandlerRegistry in AnalyticsExporter.configure() to confirm there is no existing
handler for that (ValueType, Intent) pair — the registry throws IllegalStateException on
duplicate registration.
One handler per
(ValueType, Intent). If the same intent covers multiple element types (likePROCESS_INSTANCE / ELEMENT_ACTIVATED), add filtering logic inside the handler (seeAdHocSubProcessHandlerfor an example).
Next to this one in the catalogue, plus more from the same author.