Skip to content

Commit

Permalink
Avoid deprecated OpenTelemetry->logger method
Browse files Browse the repository at this point in the history
  • Loading branch information
jjatria committed Nov 24, 2024
1 parent 5d59a6e commit 83694dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/OpenTelemetry/Exporter/OTLP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ class OpenTelemetry::Exporter::OTLP :does(OpenTelemetry::Exporter) {
use Feature::Compat::Try;
use Future::AsyncAwait;
use HTTP::Tiny;
use Log::Any;
use Module::Runtime 'require_module';
use OpenTelemetry::Common qw( config maybe_timeout timeout_timestamp );
use OpenTelemetry::Constants -trace_export;
use OpenTelemetry::Context;
use OpenTelemetry::Trace;
use OpenTelemetry::X;
use OpenTelemetry;
use Syntax::Keyword::Dynamically;
use Syntax::Keyword::Match;
use Time::Piece;
use Time::HiRes 'sleep';
use Time::Piece;
use URL::Encode 'url_decode';

my $CAN_USE_PROTOBUF = eval {
Expand All @@ -34,7 +34,7 @@ class OpenTelemetry::Exporter::OTLP :does(OpenTelemetry::Exporter) {
'gzip';
} // 'none';

my $logger = OpenTelemetry->logger;
my $logger = Log::Any->get_logger( category => 'OpenTelemetry' );

use Metrics::Any '$metrics', strict => 1,
name_prefix => [qw( otel exporter otlp )];
Expand Down

0 comments on commit 83694dc

Please sign in to comment.