bun

package
v1.71.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package bun provides helper functions for tracing the github.com/uptrace/bun package (https://github.com/uptrace/bun).

Example
Output:

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(db *bun.DB, opts ...Option)

Wrap augments the given DB with tracing.

Types

type Option

type Option func(*config)

Option represents an option that can be used to create or wrap a client.

func WithService

func WithService(name string) Option

WithService sets the given service name for the client.

Jump to

Keyboard shortcuts

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