Add support to emit workflow metrics#21817
Merged
karen-stepanyan merged 10 commits intodevelopfrom Apr 3, 2026
Merged
Conversation
Contributor
|
✅ No conflicts with other open PRs targeting |
|
jmank88
reviewed
Apr 2, 2026
jmank88
reviewed
Apr 2, 2026
jmank88
reviewed
Apr 2, 2026
70ef39a to
975d9bb
Compare
jmank88
previously approved these changes
Apr 3, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Risk Rating: MEDIUM — introduces a new externally-triggerable event emission path (user metrics) and updates multiple module dependencies.
Changes:
- Adds a new WASM host function path for emitting user workflow metrics (v2 proto events) and wires schema/entity mapping for beholder emission.
- Introduces new
EngineLimitersfields intended to govern user-metric emission. - Bumps
chainlink-common,chainlink-protos/workflows, andfxamacker/cboracross root + deployment + test modules.
Reviewed changes
Copilot reviewed 13 out of 20 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
core/services/workflows/v2/capability_executor.go |
Adds EmitUserMetric implementation and metric name normalization. |
core/services/workflows/v2/disallowed_execution_helper.go |
Implements EmitUserMetric for disallowed execution phases (returns error). |
core/services/workflows/v2/config.go |
Adds user-metric limiter fields and initializes/closes/evicts them. |
core/services/workflows/events/emit.go |
Adds EmitUserMetric and routes WorkflowUserMetric to schema/entity in emitProtoMessage. |
core/services/workflows/events/types.go |
Adds constants for WorkflowUserMetric and SchemaUserMetricV2. |
go.mod, go.sum |
Updates core deps (fxamacker/cbor, chainlink-common, chainlink-protos/workflows). |
deployment/go.mod, deployment/go.sum |
Mirrors dependency bumps for deployment module. |
integration-tests/go.mod, integration-tests/go.sum |
Mirrors dependency bumps for integration tests. |
integration-tests/load/go.mod, integration-tests/load/go.sum |
Mirrors dependency bumps for load tests. |
system-tests/lib/go.mod, system-tests/lib/go.sum |
Mirrors dependency bumps for system test lib. |
system-tests/tests/go.mod, system-tests/tests/go.sum |
Mirrors dependency bumps for system tests. |
core/scripts/go.mod, core/scripts/go.sum |
Mirrors dependency bumps for scripts module. |
.changeset/slim-eels-buzz.md |
Declares a minor release note for user-emitted workflow metrics. |
mchain0
previously approved these changes
Apr 3, 2026
83d64e2 to
ffcd474
Compare
jmank88
approved these changes
Apr 3, 2026
george-dorin
approved these changes
Apr 3, 2026
|
This was referenced Apr 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




https://smartcontract-it.atlassian.net/browse/DF-23779