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.
Click to show internal directories.
Click to hide internal directories.