Repository navigation
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
product-security-plaid-production
Bot
requested review from
DylanTinianov,
prashantkumar1982 and
silaslenihan
October 27, 2026 20:45
ilija42
marked this pull request as draft
October 27, 2026 20:56
ilija42
force-pushed
the
feat/stellar-action-metrics-dedup
branch
2 times, most recently
from
October 27, 2026 21:38
4424a47 to
e63c81f
Compare
ilija42
marked this pull request as ready for review
October 28, 2026 16:55
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
pavel-raykov
previously approved these changes
Oct 28, 2026
ilija42
marked this pull request as draft
October 29, 2026 12:10
Contributor
|
This PR is stale because it has been open 30 days with no activity. |
The v2 generated server wrapper (--with-monitoring, chainlink-common
- "Capability Initiated" / "Capability Succeeded" / "Capability Failed"
structured log lines
- capabilities_v2_action_count and capabilities_v2_action_duration
OTel metrics with method + outcome labels
for every RPC. The manual EmitInitiated / LogAndEmitError /
LogAndEmitSuccess calls in the action implementations produce a second,
parallel stream of the same lifecycle events. Remove them.
Removals:
- actions/actions.go (ReadContract) and actions/write_report.go
(WriteReport): drop the top-level EmitInitiated / LogAndEmitError /
LogAndEmitSuccess calls. The ad-hoc "Received X request" Debug log
on ReadContract is also dropped (the wrapper's "Capability
Initiated" subsumes it).
- monitoring/messages.go: drop BuildReadContractInitiated/Success/Error
and BuildWriteReportInitiated/Success/Error builders, their
LogAttributes / MetricAttributes methods, and the now-unused
convertReadContractRequest / readContractRequestLogAttributes /
appendUserErrorLogAttributes helpers.
- monitoring/processor.go: drop the ReadContract* / WriteReport
Initiated/Success/Error cases from both metricsHandler and Process.
- monitoring/metrics.go: drop the ReadContract* / WriteReport
Success/Error instruments from Metrics and NewMetrics. Comment on
the struct now documents that only sub-execution events live here.
- monitoring/read_contract.proto + read_contract.pb.go: deleted; all
message types in the file were lifecycle-only.
- monitoring/write_report.proto + write_report.pb.go: drop the
Initiated / Success / Error message types; TxInfoRetrievalError,
InvalidTransmissionState, DuplicateTx, and SuccessfulEarlyReturn are
kept (they cover paths the wrapper does not).
- Tests: drop cases covering removed types; add a focused test
pinning CapabilityMetricsAttributes labels (previously uncovered).
Sub-execution events that the generated wrapper does NOT cover
(DuplicateTx, TxInfoRetrievalError, InvalidTransmissionState,
SuccessfulEarlyReturn) are intentionally preserved on the legacy
Beholder path. Migrating those to OTel is out of scope for this PR.
Runbook impact: alerts and dashboards reading the legacy
stellar_capability_{read_contract,write_report}_{success,error}_*count*
series, or the corresponding [Stellar Monitoring] log lines with
entity_name in {ReadContractInitiated, ReadContractSuccess,
ReadContractError, WriteReportInitiated, WriteReportSuccess,
WriteReportError}, must migrate to capabilities_v2_action_count and
capabilities_v2_action_duration filtered on capability_id and method
before this PR merges. Sub-execution alerts are unaffected.
ilija42
force-pushed
the
feat/stellar-action-metrics-dedup
branch
from
December 2, 2026 16:33
e63c81f to
3669a11
Compare
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.
Summary
Follow-up to #859 (merged). Removes the duplicate lifecycle telemetry from Stellar actions.
Now that the auto-generated v2 server wrapper (chainlink-common #2502) emits
Capability Initiated/Succeeded/Failedlogs andcapabilities_v2_action_count/capabilities_v2_action_durationOTel metrics for every RPC, the hand-writtenEmitInitiated/LogAndEmitError/LogAndEmitSuccesscalls in the action code emit the same lifecycle events a second time through a parallel path. Drop them.