{"id":16639141,"url":"https://github.com/vincentfree/opentelemetry","last_synced_at":"2025-03-21T15:31:56.283Z","repository":{"id":38456980,"uuid":"498628512","full_name":"vincentfree/opentelemetry","owner":"vincentfree","description":"Open Telemetry extensions","archived":false,"fork":false,"pushed_at":"2025-03-13T01:53:47.000Z","size":484,"stargazers_count":20,"open_issues_count":3,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T02:44:35.484Z","etag":null,"topics":["logging","logs","middleware","opentelemetry","opentelemetry-go","traces","tracing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vincentfree.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-01T07:09:02.000Z","updated_at":"2025-02-17T15:37:51.000Z","dependencies_parsed_at":"2023-09-05T03:40:12.888Z","dependency_job_id":"f120249e-b5e2-4b49-bec7-d1abbf0ec41e","html_url":"https://github.com/vincentfree/opentelemetry","commit_stats":null,"previous_names":["vincentfree/opentelemetry-http"],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentfree%2Fopentelemetry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentfree%2Fopentelemetry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentfree%2Fopentelemetry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentfree%2Fopentelemetry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vincentfree","download_url":"https://codeload.github.com/vincentfree/opentelemetry/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244822717,"owners_count":20516154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["logging","logs","middleware","opentelemetry","opentelemetry-go","traces","tracing"],"created_at":"2024-10-12T07:05:16.008Z","updated_at":"2025-03-21T15:31:55.999Z","avatar_url":"https://github.com/vincentfree.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenTelemetry extensions\n\n\n[![Go](https://github.com/vincentfree/opentelemetry/actions/workflows/go.yml/badge.svg)](https://github.com/vincentfree/opentelemetry/actions/workflows/go.yml)\n[![CodeQL](https://github.com/vincentfree/opentelemetry/actions/workflows/codeql.yml/badge.svg)](https://github.com/vincentfree/opentelemetry/actions/workflows/codeql.yml)\n[![Dependency Review](https://github.com/vincentfree/opentelemetry/actions/workflows/dependency-review.yml/badge.svg)](https://github.com/vincentfree/opentelemetry/actions/workflows/dependency-review.yml)\n[![Go Reference](https://pkg.go.dev/badge/github.com/vincentfree/opentelemetry/otelmiddleware.svg)](https://pkg.go.dev/github.com/vincentfree/opentelemetry)\n\nThese libraries are ment as extensions for the Open Telemetry project. \nThey provide functionality that makes working with traces, and logs easier.\n\nCurrently, there is support for:\n\n* http severs through [otelmiddleware](otelmiddleware/README.md)\n* logging with [zerolog](otelzerolog/README.md), [slog](otelslog/README.md), [logrus](otellogrus/README.md)\n\nMore extensions might follow for other logging libraries and more.\n\n## Logging benchmark results\n\n```shell\ngoos: darwin\ngoarch: arm64\npkg: github.com/vincentfree/opentelemetry/cmd\nBenchmarkLogrus-10                    1000000        1054 ns/op     1064 B/op       22 allocs/op\nBenchmarkLogrusTrace-10                507514        2255 ns/op     2456 B/op       38 allocs/op\nBenchmarkLogrusTraceWithAttr-10        252018        4879 ns/op     3786 B/op       69 allocs/op\nBenchmarkSlog-10                      2514039       477.0 ns/op        0 B/op        0 allocs/op\nBenchmarkSlogTrace-10                 1460439       821.5 ns/op      176 B/op        5 allocs/op\nBenchmarkSlogTraceWithAttr-10          463041        2538 ns/op     1592 B/op       32 allocs/op\nBenchmarkZerolog-10                  22955486       51.40 ns/op        0 B/op        0 allocs/op\nBenchmarkZerologTrace-10              6346458       195.8 ns/op      128 B/op        3 allocs/op\nBenchmarkZerologTraceWithAttr-10      1254688       952.4 ns/op      312 B/op       12 allocs/op\n```\n\n\u003e pre Go 1.21(slog was based on the golang.org/x/exp version not log/slog)\n\n\n### Release process\n\nUpdate VERSIONS.md file, increase number accordingly. Create a release tag using the following command\n\n```shell\ngit tag -a otelslog/v0.0.0 -sm 'message'\ngit push origin otelslog/v0.0.0\n```\nFor any other submodule replace the `otelslog` name with the right subproject name.\n\nWhen the tag is pushed, the proxy can be triggered to update as follows\n\n```shell\ncurl https://proxy.golang.org/github.com/vincentfree/opentelemetry/otelzerolog/@v/v0.0.0.info\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincentfree%2Fopentelemetry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvincentfree%2Fopentelemetry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincentfree%2Fopentelemetry/lists"}