Giter Site home page Giter Site logo

Comments (9)

pellared avatar pellared commented on July 22, 2024 1

This will be probably also handy for implementing following bridges:

from opentelemetry-go.

pellared avatar pellared commented on July 22, 2024 1

For logrus I think the bridge would implement https://pkg.go.dev/github.com/sirupsen/logrus#Hook

from opentelemetry-go.

MrAlias avatar MrAlias commented on July 22, 2024 1

What about No-Op Loggers?

from opentelemetry-go.

pellared avatar pellared commented on July 22, 2024

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.

MrAlias avatar MrAlias commented on July 22, 2024

open-telemetry/opentelemetry-specification#3917

from opentelemetry-go.

MrAlias avatar MrAlias commented on July 22, 2024

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.

pellared avatar pellared commented on July 22, 2024

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.

MrAlias avatar MrAlias commented on July 22, 2024

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.

MrAlias avatar MrAlias commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.