Documentation
¶
Index ¶
- Constants
- func AttachUserToFiberContext(c *fiber.Ctx)
- func BackgroundFromContext(ctx context.Context) context.Context
- func ExtractNATSContext(ctx context.Context, msg *nats.Msg) context.Context
- func InjectMapCarrier(ctx context.Context, carrier propagation.TextMapCarrier)
- func InjectNATSHeaders(ctx context.Context, headers nats.Header) nats.Header
- func Logger() *slog.Logger
- func LoggerFromFiber(c *fiber.Ctx, logger *slog.Logger) *slog.Logger
- func LoggerWithContext(ctx context.Context, logger *slog.Logger) *slog.Logger
- func Meter(scope string) metric.Meter
- func NewHTTPClient(base *http.Client, name string) *http.Client
- func NewHTTPTransport(name string, base http.RoundTripper) http.RoundTripper
- func RedactEmail(email string) string
- func RedactSecret(value string) string
- func RequestContextMiddleware() fiber.Handler
- func RequestIDFromContext(ctx context.Context) string
- func RequestLogger(logger *slog.Logger) fiber.Handler
- func SetDependencyResult(ctx context.Context, result string)
- func StartDependencySpan(ctx context.Context, system, operation, target string, ...) (context.Context, func(error))
- func StartNATSConsumeSpan(ctx context.Context, subject string) (context.Context, func(error))
- func StartNATSPublishSpan(ctx context.Context, subject string) (context.Context, func(error))
- func Tracer(scope string) trace.Tracer
- type HTTPServerTelemetry
- type Runtime
- type SFUTelemetry
- func (t *SFUTelemetry) AdminClose(ctx context.Context, started time.Time, status string, ...)
- func (t *SFUTelemetry) Answer(ctx context.Context, direction string, attrs ...attribute.KeyValue)
- func (t *SFUTelemetry) BitrateDisconnect(ctx context.Context, attrs ...attribute.KeyValue)
- func (t *SFUTelemetry) Candidate(ctx context.Context, direction string, attrs ...attribute.KeyValue)
- func (t *SFUTelemetry) ChannelDelta(ctx context.Context, delta int64)
- func (t *SFUTelemetry) ConnectionState(ctx context.Context, state string, attrs ...attribute.KeyValue)
- func (t *SFUTelemetry) Heartbeat(ctx context.Context, started time.Time, status string, ...)
- func (t *SFUTelemetry) Join(ctx context.Context, attrs ...attribute.KeyValue)
- func (t *SFUTelemetry) Leave(ctx context.Context, started time.Time, attrs ...attribute.KeyValue)
- func (t *SFUTelemetry) Offer(ctx context.Context, direction string, attrs ...attribute.KeyValue)
- func (t *SFUTelemetry) PeerDelta(ctx context.Context, delta int64, attrs ...attribute.KeyValue)
- func (t *SFUTelemetry) Renegotiation(ctx context.Context, attrs ...attribute.KeyValue)
- func (t *SFUTelemetry) TrackDelta(ctx context.Context, kind string, delta int64, attrs ...attribute.KeyValue)
- type WSTelemetry
- func (t *WSTelemetry) AuthFailure(ctx context.Context, reason string)
- func (t *WSTelemetry) ConnectionClosed(ctx context.Context, started time.Time, attrs ...attribute.KeyValue)
- func (t *WSTelemetry) ConnectionOpened(ctx context.Context, attrs ...attribute.KeyValue)
- func (t *WSTelemetry) Heartbeat(ctx context.Context, result string)
- func (t *WSTelemetry) HeartbeatTimeout(ctx context.Context)
- func (t *WSTelemetry) MessageIn(ctx context.Context, operation int, eventType *int)
- func (t *WSTelemetry) MessageOut(ctx context.Context, topic string, status string)
- func (t *WSTelemetry) OutboundDrop(ctx context.Context, topic string)
- func (t *WSTelemetry) SubscriptionDelta(ctx context.Context, kind string, delta int64)
Constants ¶
View Source
const (
RequestIDHeader = "X-Request-ID"
)
Variables ¶
This section is empty.
Functions ¶
func ExtractNATSContext ¶
func InjectMapCarrier ¶
func InjectMapCarrier(ctx context.Context, carrier propagation.TextMapCarrier)
func InjectNATSHeaders ¶
func LoggerWithContext ¶
func NewHTTPTransport ¶
func NewHTTPTransport(name string, base http.RoundTripper) http.RoundTripper
func RedactEmail ¶
func RedactSecret ¶
func RequestIDFromContext ¶
func SetDependencyResult ¶
func StartDependencySpan ¶
func StartNATSConsumeSpan ¶
func StartNATSPublishSpan ¶
Types ¶
type HTTPServerTelemetry ¶
type HTTPServerTelemetry struct {
// contains filtered or unexported fields
}
func NewHTTPServerTelemetry ¶
func NewHTTPServerTelemetry(serviceName string) *HTTPServerTelemetry
func (*HTTPServerTelemetry) Middleware ¶
func (t *HTTPServerTelemetry) Middleware() fiber.Handler
type SFUTelemetry ¶
type SFUTelemetry struct {
// contains filtered or unexported fields
}
func NewSFUTelemetry ¶
func NewSFUTelemetry(serviceName string, attrs ...attribute.KeyValue) *SFUTelemetry
func (*SFUTelemetry) AdminClose ¶
func (*SFUTelemetry) BitrateDisconnect ¶
func (t *SFUTelemetry) BitrateDisconnect(ctx context.Context, attrs ...attribute.KeyValue)
func (*SFUTelemetry) ChannelDelta ¶
func (t *SFUTelemetry) ChannelDelta(ctx context.Context, delta int64)
func (*SFUTelemetry) ConnectionState ¶
func (*SFUTelemetry) Join ¶
func (t *SFUTelemetry) Join(ctx context.Context, attrs ...attribute.KeyValue)
func (*SFUTelemetry) Renegotiation ¶
func (t *SFUTelemetry) Renegotiation(ctx context.Context, attrs ...attribute.KeyValue)
func (*SFUTelemetry) TrackDelta ¶
type WSTelemetry ¶
type WSTelemetry struct {
// contains filtered or unexported fields
}
func NewWSTelemetry ¶
func NewWSTelemetry(serviceName string) *WSTelemetry
func (*WSTelemetry) AuthFailure ¶
func (t *WSTelemetry) AuthFailure(ctx context.Context, reason string)
func (*WSTelemetry) ConnectionClosed ¶
func (*WSTelemetry) ConnectionOpened ¶
func (t *WSTelemetry) ConnectionOpened(ctx context.Context, attrs ...attribute.KeyValue)
func (*WSTelemetry) HeartbeatTimeout ¶
func (t *WSTelemetry) HeartbeatTimeout(ctx context.Context)
func (*WSTelemetry) MessageIn ¶
func (t *WSTelemetry) MessageIn(ctx context.Context, operation int, eventType *int)
func (*WSTelemetry) MessageOut ¶
func (t *WSTelemetry) MessageOut(ctx context.Context, topic string, status string)
func (*WSTelemetry) OutboundDrop ¶
func (t *WSTelemetry) OutboundDrop(ctx context.Context, topic string)
func (*WSTelemetry) SubscriptionDelta ¶
func (t *WSTelemetry) SubscriptionDelta(ctx context.Context, kind string, delta int64)
Click to show internal directories.
Click to hide internal directories.