Skip to content

Commit

Permalink
note a todo on reconfiguring meters
Browse files Browse the repository at this point in the history
  • Loading branch information
brettmc committed Jul 25, 2024
1 parent 6fb6b1d commit e7e0104
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/SDK/Metrics/MeterProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ public static function builder(): MeterProviderBuilder
}

/**
* Update the {@link Configurator} for a {@link MeterProvider}, which will
* reconfigure all meters created from the provider.
* Update the {@link Configurator} for a {@link MeterProvider}, which will reconfigure
* all meters created from the provider.
* @todo enabling a previous-disabled meter does not drop/recreate the underlying metric streams, so previously collected synchronous metrics will still be exported.
* @experimental
*/
public function updateConfigurator(ScopeConfigurator $configurator): void
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/SDK/Metrics/MeterConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function test_metrics_not_exported_when_disabled(): void
*/
public function test_streams_recreated_on_enable(): void
{
$this->markTestSkipped('TODO implement drop/create streams'); /* @phpstan-ignore-next-line */
$this->markTestSkipped('TODO implement drop/create streams'); // @phpstan-ignore-next-line
$clock = new TestClock(self::T0);
$disabledConfigurator = Configurator::builder()
->addCondition(new Name('*'), State::DISABLED)
Expand Down

0 comments on commit e7e0104

Please sign in to comment.