Comments (9)
This will be probably also handy for implementing following bridges:
- logr - see: https://pkg.go.dev/github.com/go-logr/logr#LogSink
- zap - see: https://pkg.go.dev/go.uber.org/zap/zapcore#LevelEnabler
from opentelemetry-go.
For logrus I think the bridge would implement https://pkg.go.dev/github.com/sirupsen/logrus#Hook
from opentelemetry-go.
What about No-Op Logger
s?
from opentelemetry-go.
This invalidates this rejected proposal https://github.com/open-telemetry/opentelemetry-go/blob/main/log/DESIGN.md#add-xyz-method-to-logger.
I have put the issue to GA project to at least discuss it before we moving it to post-GA.
from opentelemetry-go.
open-telemetry/opentelemetry-specification#3917
from opentelemetry-go.
This will be probably also handy for implementing following bridges:
Also, possibly, logrus
: https://pkg.go.dev/github.com/sirupsen/logrus#Logger.IsLevelEnabled
from opentelemetry-go.
If the bridge accepts some sort of minimum level things will be logged at
This was the idea
it can be different than what the LoggerProvider that bridge also accepts is configured to minimally log
As far as I remember, the SDK's logger provider configuration does not accept a severity level. Same for logger method. I think that without any of it adding Enabled to the Bridge API would not make much sense.
from opentelemetry-go.
I also think it should be added to the pipeline. If an exporter is only configured to export at a min level there needs to be a way to tell the SDK and user not to do things.
This is an operator concern, not one for instrumentation.
from opentelemetry-go.
Use cases from other languages
otel-rust added a similar method under feature flag - open-telemetry/opentelemetry-rust#1147
otel-cpp also has a similar approach - https://github.com/open-telemetry/opentelemetry-cpp/blob/07f6cb54ece56691dbd2a94b0cbeec722ff6a631/api/include/opentelemetry/logs/logger.h#L259
Originally posted by @lalitb in open-telemetry/opentelemetry-specification#3917 (comment)
from opentelemetry-go.
Related Issues (20)
- Add otlploggrpc exporter HOT 2
- Add otlploghttp exporter HOT 3
- Update dice example to use logs HOT 1
- Document logs in otel.io
- log/sdk: Implement LoggerProvider
- log/sdk: Implement Logger HOT 3
- log/sdk: Implement SimpleProcessor
- log/sdk: Implement BatchingProcessor HOT 1
- log/sdk: Implement Record
- log/sdk: Document package
- log/sdk: Add links to documentation HOT 2
- log: Add SeverityUndefined
- log: Add DO NOT CHANGE marker comments to interfaces
- sdk/log: Add minimum level enabled processor
- Try to drop length-fixed attributes in the record of the log SDK HOT 2
- Add temporary global implementation for logging
- sdk/log: Drop duplicated KeyValues HOT 11
- sdk/log: ObservedTimestamp should be set
- otelcol use parentBased sampler parameter error HOT 2
- TraceID and SpanID the String method to return an "00000000..." string when the TraceID or SpanID is invalid. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opentelemetry-go.