Skip to content

Commit ff42f72

Browse files
committed
docs(bridges/otelzap): add README (#5191)
Signed-off-by: thomasgouveia <[email protected]>
1 parent 038cbd2 commit ff42f72

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

bridges/otelzap/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# OpenTelemetry Zap Log Bridge
2+
3+
[![Go Reference](https://pkg.go.dev/badge/go.opentelemetry.io/contrib/bridges/otelzap.svg)](https://pkg.go.dev/go.opentelemetry.io/contrib/bridges/otelzap)
4+
5+
This package implements a [Log Bridge](https://opentelemetry.io/docs/specs/otel/logs/bridge-api/) for the [Zap](https://github.com/uber-go/zap) logger. This bridge can be used to send logs emitted by application using Zap to an OpenTelemetry compatible endpoint through the [OpenTelemetry Log API](https://pkg.go.dev/go.opentelemetry.io/otel/log).
6+
7+
## Example
8+
9+
Please refer to the [example_test.go](./example_test.go) file for a complete example of how to create a Zap logger using the bridge.
10+
11+

0 commit comments

Comments
 (0)