Skip to content

Add dependenciesRequested to ProducerMonitor#5201

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_932109338
Jun 25, 2026
Merged

Add dependenciesRequested to ProducerMonitor#5201
copybara-service[bot] merged 1 commit into
masterfrom
test_932109338

Conversation

@copybara-service

Copy link
Copy Markdown

Add dependenciesRequested to ProducerMonitor

Previously, custom monitors could track when a producer was requested and when
its method executed, but there was no way to know when it finished requesting
its own dependencies. This new hook bridges that gap, making it easier to trace
execution relationships in complex production graphs.

Now,

  • methodStarting & methodFinished can be used to set up/tear down a scope
    around producer method execution, and
  • requested & dependenciesRequested can be used to set up/tear down a scope
    around producer dependency collection.

RELNOTES=Added dependenciesRequested to ProducerMonitor

@copybara-service copybara-service Bot force-pushed the test_932109338 branch 2 times, most recently from c734dbc to 764d8a1 Compare June 25, 2026 02:34
Previously, custom monitors could track when a producer was requested and when
its method executed, but there was no way to know when it finished requesting
its own dependencies. This new hook bridges that gap, making it easier to trace
execution relationships in complex production graphs.

Now,
*   methodStarting & methodFinished can be used to set up/tear down a scope
    around producer method execution, and
*   requested & dependenciesRequested can be used to set up/tear down a scope
    around producer dependency collection.

RELNOTES=Added dependenciesRequested to ProducerMonitor
PiperOrigin-RevId: 937702779
@copybara-service copybara-service Bot merged commit 7451e37 into master Jun 25, 2026
1 check passed
@copybara-service copybara-service Bot deleted the test_932109338 branch June 25, 2026 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant