sentryintegration

package module
v0.0.0-...-425f0b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 0 Imported by: 0

README

Sentry Integrations for Go

Package sentryintegration provides a set of drop-in replacement for some of popular Go packages to have it auto instrumented by Sentry dependency.

Why not just use OpenTelemetry dependency? Well if you're already uses Sentry and not dependend by OpenTelemetry at all, and to fight the current issue that by using OpenTelemetry span processor the SDK will capture 100% of spans, whatever value you're setting on at the front initialization wouldn't be respected.

If there are any other packages that needs to be instrumented directly using Sentry-only dependency, please submit a GitHub issue.

License

MIT

Documentation

Overview

Package sentryintegration provides a set of drop-in replacement for some of popular Go packages to have it auto instrumented by Sentry dependency.

Why not just use OpenTelemetry dependency? Well if you're already uses Sentry and not dependend by OpenTelemetry at all, and to fight the current issue that by using OpenTelemetry span processor the SDK will capture 100% of spans, whatever value you're setting on at the front initialization wouldn't be respected.

Directories

Path Synopsis
Package httpclient provides a tracer implementation for net/http.RoundTripper.
Package httpclient provides a tracer implementation for net/http.RoundTripper.
Package pgxtracer provides a tracer implementation for pgx.
Package pgxtracer provides a tracer implementation for pgx.
redistracer provides a hook that you can use with redis/go-redis package.
redistracer provides a hook that you can use with redis/go-redis package.
slogbreadcrumb sends everything that's emitted to slog as Sentry breadcrumb, rather than Sentry event (or error).
slogbreadcrumb sends everything that's emitted to slog as Sentry breadcrumb, rather than Sentry event (or error).
sqltracer implements a sql driver that wraps the original driver and adds Sentry tracing capabilities to all queries.
sqltracer implements a sql driver that wraps the original driver and adds Sentry tracing capabilities to all queries.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL