We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c98272 commit ae43cddCopy full SHA for ae43cdd
instrumentation/net/http/otelhttp/config.go
@@ -143,11 +143,13 @@ func WithFilter(f Filter) Option {
143
})
144
}
145
146
+// Event represents message event types for WithMessageEvents.
147
type Event int
148
149
// Different types of events that can be recorded, see WithMessageEvents.
150
const (
- ReadEvents Event = iota
151
+ UnspecifiedEvent Event = iota
152
+ ReadEvents
153
WriteEvents
154
)
155
instrumentation/net/http/otelhttp/config_test.go
@@ -122,3 +122,10 @@ func TestSpanNameFormatter(t *testing.T) {
122
123
124
125
+
126
+func TestEventCoverage(t *testing.T) {
127
+ t.Helper()
128
+ _ = otelhttp.UnspecifiedEvent
129
+ _ = otelhttp.ReadEvents
130
+ _ = otelhttp.WriteEvents
131
+}
0 commit comments