oteldiscordgo

package
v0.0.0-...-0ef8d0d Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartSpanOrTraceFromMessage

func StartSpanOrTraceFromMessage(session *discordgo.Session, message *discordgo.Message) (context.Context, trace.Span)

StartSpanOrTraceFromMessage creates and returns a span for the provided MessageEvent. If there is an existing span in the Context, this function will create the new span as a child span and return it. If not, it will create a new trace object and return the root span.

Types

This section is empty.

Jump to

Keyboard shortcuts

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