opentelemetry-go-contrib VS SLF4J

Compare opentelemetry-go-contrib vs SLF4J and see what are their differences.

opentelemetry-go-contrib

Collection of extensions for OpenTelemetry-Go. (by open-telemetry)

SLF4J

Simple Logging Facade for Java (by qos-ch)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
opentelemetry-go-contrib SLF4J
11 23
998 2,257
5.9% 1.1%
9.4 7.8
2 days ago 15 days ago
Go Java
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

opentelemetry-go-contrib

Posts with mentions or reviews of opentelemetry-go-contrib. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-07.
  • Open Telemetry: Observing and Monitoring Applications
    3 projects | dev.to | 7 Mar 2024
    While many programming languages provide robust support for Open Telemetry, this instance focuses on Golang. It's important to note that, in the current context, the logs SDK for Golang is not implemented. For future reference consult the list of supported languages and explore the Open Telemetry repositories. Always prioritize the main repository and its contrib repository, housing extensions and instrumentation libraries crucial to the Open Telemetry framework. Stay updated with the latest developments to ensure seamless integration and enhanced functionality.
  • [OpenTelemetry] Observability of Async Processes with Custom Propagator
    2 projects | dev.to | 22 Dec 2022
    It’s assumed that the instrumentation of each component has been completed, and the HTTP communication has also been instrumented by net/http auto instrumentation library.
  • Is it worth instrumenting with open-telemetry?
    3 projects | /r/golang | 8 Nov 2022
    Tracing, including context propagation, is easy to set up with REST or gRPC. You can instrument most important parts of your application with the contrib package. Some libraries like go-redis have their own otel features, which could be a promising trend in the future. There are some important gaps though; for example, you'll have to go third party for database/sql.
  • Go standard library: structured, leveled logging
    11 projects | news.ycombinator.com | 11 Sep 2022
    I see! Yeah, this is one where where otel-go is a lot harder to use, but it's something the SIG is looking at. A coworker of mine is helping drive a design that's sort of an "easy button" to configure all the things with the least-surprising defaults[0] and we're seeing how people like it in our SDK distribution that uses it[1]. I hope that sometime soon we'll have the design polished-up enough to get merged in. Like most OSS projects, it'll take some time but I'm confident we can get it done.

    The main challenge is that there's a large variety of use cases to fulfill (e.g., someone wants custom context propagation, a custom span processor, and export over HTTP+json but not HTTP+protobuf) and today the answer to that is that you have to pull in all the libraries for all the things you need. It's a lot more energy you need to expend to get started with all of this than it needs to be.

    As for logging support in the Go SDK, it's frozen mostly just due to lack of bandwidth and a need to finish what's already been started. Metrics have proven to be much more difficult and time-consuming to implement correctly across all languages, with Go being impacted harder than other languages (e.g., Python and .NET). I think you can expect logging integrations in the near-ish future though.

    This is great feedback. I'll pass it on folks who haven't seen it. Thank you! And please feel free to file issues about all the things that rub you the wrong way

    [0]: https://github.com/open-telemetry/opentelemetry-go-contrib/p...

    [1]: https://github.com/honeycombio/honeycomb-opentelemetry-go

  • Implementing OpenTelemetry in a Gin application
    4 projects | dev.to | 5 May 2022
    OpenTelemetry middleware for Gin
  • Upgrade OpenTelemetry Go Instrumentation Libraries in Microservices
    3 projects | dev.to | 23 Oct 2021
    OpenTelemetry is the work-in-progress merge of OpenCensus and OpenTracing. It is still in early stages as of 2021. We are using its instrumentation libraries opentelemetry-go and [opentelemetry-go-contrib]https://github.com/open-telemetry/opentelemetry-go-contrib/) for our Go services.
  • Opentelemetry in golang
    1 project | /r/golang | 20 Aug 2021
    Usually the span propagation is located in headers Here you can see an example https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/instrumentation/github.com/gin-gonic/gin/otelgin/gintrace.go
  • How to set up Golang application performance monitoring with open source monitoring tool
    4 projects | dev.to | 27 Jun 2021
    OpenTelemetry has specific instrumentation packages to support popular Golang packages and use cases. For example, this app uses the Gin framework for request routing. OpenTelemetry provides instrumentation package named otelgin to instrument the Gin framework which you need to import in your app. You can find the complete list of supported Golang packages by OpenTelemetry here.
  • SigNoz - an open-source alternative to DataDog with Go processors | v0.2.0 Released with external API and DB calls monitoring
    3 projects | /r/golang | 6 May 2021
    Hi u/brofesor, Your understanding is correct. Though the library you mentioned is not official. I found an issue in the official repo regarding this https://github.com/open-telemetry/opentelemetry-go-contrib/issues/714
  • Extending a library which is using functional options
    1 project | /r/golang | 15 Apr 2021
    Here I described all my experiments: https://github.com/open-telemetry/opentelemetry-go-contrib/issues/746

SLF4J

Posts with mentions or reviews of SLF4J. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-21.
  • Slf4j.org TLS Certificate Expired
    1 project | news.ycombinator.com | 17 Jun 2023
  • dazl — a facade for configurable/pluggable Go logging
    2 projects | /r/golang | 21 Apr 2023
    A few years ago, my team moved from Java to Go. Working on Go projects, we encountered a wide variety of logging frameworks with different APIs, configuration, and formatting. We soon found ourselves longing for a logging abstraction layer like Java’s slf4j, which had proven invaluable for use in reusable libraries or configuring and debugging production systems. So, not long after moving to Go, we began working toward replacing what we had lost in slf4j.
  • Fargate logging thru console awslogs or directly to Cloudwatch?
    2 projects | /r/aws | 7 Apr 2023
    I'm not familiar with Serilog as I code mostly in Java, use slf4j (logs to stdout) and our apps send logs to Cloudwatch using the task definition's awslogs configuration. I prefer it this way because I can customize the log configurations in my task definitions. Also the default stream name has this format prefix-name/container-name/ecs-task-id so I can easily identify the logs of the task I want to look at. I haven't experienced any downsides with this approach and our apps publish a shit ton of logs. Cloudwatch approach looks like you can customize the stream name?
  • How does Loggers get multiple parameters in functions
    1 project | /r/javahelp | 4 Apr 2023
    slf4j is open source. You can look at the code.
  • Logging in your API
    13 projects | dev.to | 22 Feb 2023
    Java -> Logback, Log4j2, JDK (Java Util Logging), Slf4j, e.t.c.
  • Primeiros passos no desenvolvimento Java em 2023: um guia particular
    13 projects | dev.to | 19 Jan 2023
    slf4j para padronização dos logs;
  • What are some of the biggest problems you personally face in Java?
    6 projects | /r/java | 27 Dec 2022
  • must known frameworks/libs/tech, every senior java developer must know(?)
    6 projects | /r/java | 9 Dec 2022
    SLF4J
  • Go standard library: structured, leveled logging
    11 projects | news.ycombinator.com | 11 Sep 2022
    > My God. Logging in protobuf?

    Yes, or any other data format and/or transport protocol.

    I'm surprised this is up for debate.

    > Logging is the lowest of all debugging utilities - its the first thing you ever do writing software - “hello world”. And, while I admire structural logging, the truth is printing strings remains (truly) the lowest common denominator across software developers.

    This sort of comment is terribly miopic. You can have a logging API, and then configure your logging to transport the events anywhere, any way. This is a terribly basic feature and requirement, and one that comes out of the box with some systems. Check how SLF4J[1] is pervasive in Java, and how any SLF4J implementation offers logging to stdout or a local file as a very specific and basic usecase.

    It turns out that nowadays most developers write software that runs on many computers that aren't stashed over or under their desks, and thus they need efficient and convenient ways to check what's happening either in a node or in all deployments.

    [1] https://www.slf4j.org/

  • Logback en Springboot
    1 project | /r/CharruaDevs | 3 Aug 2022

What are some alternatives?

When comparing opentelemetry-go-contrib and SLF4J you can also consider the following projects:

opentelemetry-go - OpenTelemetry Go API and SDK

Apache Log4j 2 - Apache Log4j 2 is a versatile, feature-rich, efficient logging API and backend for Java.

fiber-opentelemetry - OpenTelemetry trace middleware for Fiber that adds traces to requests.

Logbook - An extensible Java library for HTTP request and response logging

signoz - SigNoz is an open-source observability platform native to OpenTelemetry with logs, traces and metrics in a single application. An open-source alternative to DataDog, NewRelic, etc. 🔥 🖥. 👉 Open source Application Performance Monitoring (APM) & Observability tool

tinylog - tinylog is a lightweight logging framework for Java, Kotlin, Scala, and Android

sample-golang-app - Sample Golang app to demonstrace OpenTelemetry instrumentation

kibana - Your window into the Elastic Stack

opentelemetry-specification - Specifications for OpenTelemetry

graylog - Free and open log management

jvm-serializers - Benchmark comparing serialization libraries on the JVM

Logback - The reliable, generic, fast and flexible logging framework for Java.