Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecate event logger #1466

Merged
merged 2 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/API/Logs/EventLoggerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use OpenTelemetry\Context\ContextInterface;

/**
* @deprecated
* @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/event-api.md#events-api-interface
*/
interface EventLoggerInterface
Expand Down
1 change: 1 addition & 0 deletions src/API/Logs/EventLoggerProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace OpenTelemetry\API\Logs;

/**
* @deprecated
* @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.32.0/specification/logs/event-api.md#get-an-eventlogger
*/
interface EventLoggerProviderInterface
Expand Down
3 changes: 3 additions & 0 deletions src/API/Logs/NoopEventLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

use OpenTelemetry\Context\ContextInterface;

/**
* @phan-suppress PhanDeprecatedInterface
*/
class NoopEventLogger implements EventLoggerInterface
{
public static function instance(): self
Expand Down
3 changes: 3 additions & 0 deletions src/API/Logs/NoopEventLoggerProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

namespace OpenTelemetry\API\Logs;

/**
* @phan-suppress PhanDeprecatedInterface
*/
class NoopEventLoggerProvider implements EventLoggerProviderInterface
{
public static function getInstance(): self
Expand Down
3 changes: 3 additions & 0 deletions src/SDK/Logs/EventLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
use OpenTelemetry\Context\Context;
use OpenTelemetry\Context\ContextInterface;

/**
* @phan-suppress PhanDeprecatedInterface
*/
class EventLogger implements EventLoggerInterface
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/SDK/Logs/EventLoggerProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use OpenTelemetry\API\Common\Time\Clock;
use OpenTelemetry\API\Logs\EventLoggerInterface;

/**
* @phan-suppress PhanDeprecatedInterface
*/
class EventLoggerProvider implements EventLoggerProviderInterface
{
public function __construct(private readonly LoggerProviderInterface $loggerProvider)
Expand Down
3 changes: 3 additions & 0 deletions src/SDK/Logs/EventLoggerProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

use OpenTelemetry\API\Logs as API;

/**
* @phan-suppress PhanDeprecatedInterface
*/
interface EventLoggerProviderInterface extends API\EventLoggerProviderInterface
{
public function forceFlush(): bool;
Expand Down
3 changes: 3 additions & 0 deletions src/SDK/Logs/NoopEventLoggerProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

use OpenTelemetry\API\Logs as API;

/**
* @phan-suppress PhanDeprecatedInterface
*/
class NoopEventLoggerProvider extends API\NoopEventLoggerProvider implements EventLoggerProviderInterface
{
public static function getInstance(): self
Expand Down
Loading