Git Product home page Git Product logo

opentelemetry's Introduction

OpenTelemetry extensions

Go CodeQL Dependency Review Go Reference

These libraries are ment as extensions for the Open Telemetry project. They provide functionality that makes working with traces, and logs easier.

Currently, there is support for:

More extensions might follow for other logging libraries and more.

Logging benchmark results

goos: darwin
goarch: arm64
pkg: github.com/vincentfree/opentelemetry/cmd
BenchmarkLogrus-10                    1000000        1054 ns/op     1064 B/op       22 allocs/op
BenchmarkLogrusTrace-10                507514        2255 ns/op     2456 B/op       38 allocs/op
BenchmarkLogrusTraceWithAttr-10        252018        4879 ns/op     3786 B/op       69 allocs/op
BenchmarkSlog-10                      2514039       477.0 ns/op        0 B/op        0 allocs/op
BenchmarkSlogTrace-10                 1460439       821.5 ns/op      176 B/op        5 allocs/op
BenchmarkSlogTraceWithAttr-10          463041        2538 ns/op     1592 B/op       32 allocs/op
BenchmarkZerolog-10                  22955486       51.40 ns/op        0 B/op        0 allocs/op
BenchmarkZerologTrace-10              6346458       195.8 ns/op      128 B/op        3 allocs/op
BenchmarkZerologTraceWithAttr-10      1254688       952.4 ns/op      312 B/op       12 allocs/op

pre Go 1.21(slog was based on the golang.org/x/exp version not log/slog)

opentelemetry's People

Contributors

dependabot[bot] avatar vincentfree avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

opentelemetry's Issues

Add baggage injection library

Create a new baggage injection library that makes baggage injection and extraction easy for adding random key value pairs.

background

For a feature called value chains which is based on service graphs, labels set for identifying which services belong to 1 value chain reduces the complexity of service graphs in large companies.

When traversing a service graph based on a system that handles thousands of applications, a label that adds context for a subset of applications makes sense.

The baggage standard: https://www.w3.org/TR/baggage/ is a perfect solution for value chain label propogation.

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.