add otel as separate module (#10)
Some checks failed
continuous-integration/drone/push Build is failing

Reviewed-on: #10
Co-authored-by: andrey <andrey@4devs.io>
Co-committed-by: andrey <andrey@4devs.io>
This commit was merged in pull request #10.
This commit is contained in:
2024-01-02 16:56:49 +03:00
parent d365c5b36b
commit 722669f094
12 changed files with 306 additions and 11 deletions

16
handler/otel/logger.go Normal file
View File

@@ -0,0 +1,16 @@
package otel
import (
"context"
"gitoa.ru/go-4devs/log"
"gitoa.ru/go-4devs/log/entry"
)
func New() log.Logger {
return func(ctx context.Context, e *entry.Entry) (int, error) {
addEvent(ctx, e)
return 0, nil
}
}