Skip to content

Commit

Permalink
make setDefaultTags public (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmastech authored Jul 8, 2024
1 parent f5b52ee commit 37cd23d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Adapters/Concerns/HasDefaultTagsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ public function getDefaultTags(): array
}

/**
* @param array<string, mixed> $tags
* @return void
* @inheritDoc
*/
protected function setDefaultTags(array $defaultTags = []): void
public function setDefaultTags(array $defaultTags = []): void
{
$this->defaultTags = $defaultTags;
}
Expand Down
6 changes: 6 additions & 0 deletions src/Adapters/StatsDClientAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ public function updateStats(array|string $stats, int $delta = 1, $sampleRate = 1

public function getClient(): mixed;

/**
* @param array<string, mixed> $tags
* @return void
*/
public function setDefaultTags(array $defaultTags = []): void;

/**
* @return array<string, mixed>
*/
Expand Down

0 comments on commit 37cd23d

Please sign in to comment.