MCPcopy Index your code
hub / github.com/coder/coder / AddEvent

Method AddEvent

coderd/tracing/slog_test.go:47–54  ·  view source on GitHub ↗

AddEvent implements trace.Span.

(name string, options ...trace.EventOption)

Source from the content-addressed store, hash-verified

45
46// AddEvent implements trace.Span.
47func (s *slogFakeSpan) AddEvent(name string, options ...trace.EventOption) {
48 cfg := trace.NewEventConfig(options...)
49
50 s.events = append(s.events, traceEvent{
51 name: name,
52 attributes: cfg.Attributes(),
53 })
54}
55
56func Test_SlogSink(t *testing.T) {
57 t.Parallel()

Callers 2

AcquireMethod · 0.80
LogEntryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected