Skip to content

Commit 69feb78

Browse files
committed
#30 add comments
1 parent 2a04ba2 commit 69feb78

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/api/logs/logger_provider.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ const std = @import("std");
22
const InstrumentationScope = @import("../../scope.zig").InstrumentationScope;
33
const Attributes = @import("../../attributes.zig").Attributes;
44

5+
/// Logger is responsible for emitting logs as LogRecords.
6+
/// see: https://opentelemetry.io/docs/specs/otel/logs/api/#logger
57
pub const Logger = struct {
68
allocator: std.mem.Allocator,
79
scope: InstrumentationScope,
@@ -24,6 +26,8 @@ pub const Logger = struct {
2426
}
2527
};
2628

29+
/// LoggerProvider is the entry point of the API. It provides access to Loggers
30+
/// see: https://opentelemetry.io/docs/specs/otel/logs/api/#loggerprovider
2731
pub const LoggerProvider = struct {
2832
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
2933
allocator: std.mem.Allocator,

0 commit comments

Comments
 (0)