| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
11
|
|
|
11
|
|
159237
|
use Object::Pad; |
|
|
11
|
|
|
|
|
15650
|
|
|
|
11
|
|
|
|
|
83
|
|
|
2
|
|
|
|
|
|
|
# ABSTRACT: A log factory for OpenTelemetry |
|
3
|
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package OpenTelemetry::Logs::Logger; |
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.033'; |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# TODO: Should this implement an interface like that of Mojo::Log |
|
9
|
|
|
|
|
|
|
# or Log::Any? It would mean that writing adapters like |
|
10
|
|
|
|
|
|
|
# Log::Any::Adapter::OpenTelemetry for other loggers (eg. Log::ger, |
|
11
|
|
|
|
|
|
|
# Dancer2::Logger) would be simpler, since the high-level logging |
|
12
|
|
|
|
|
|
|
# interface would already exist. I don't think this goes against |
|
13
|
|
|
|
|
|
|
# the standard. |
|
14
|
|
|
|
|
|
|
class OpenTelemetry::Logs::Logger { |
|
15
|
1
|
|
|
1
|
1
|
12663
|
method emit_record ( %args ) { } |
|
|
1
|
|
|
|
|
6
|
|
|
|
1
|
|
|
|
|
5
|
|
|
16
|
|
|
|
|
|
|
} |