-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area:pdatapdata module related issuespdata module related issuesbugSomething isn't workingSomething isn't working
Description
Describe the bug
The following code will not cause a panic:
var test pcommon.Value
func main() {
test.Map()
}
although the doc states:
Calling this function on zero-initialized Value will cause a panic.
Steps to reproduce
package main
import (
"go.opentelemetry.io/collector/pdata/pcommon"
)
var test pcommon.Value
func main() {
test.Map()
}
What did you expect to see?
A Panic.
What did you see instead?
No Panic.
What version did you use?
require go.opentelemetry.io/collector/pdata v1.0.0
Metadata
Metadata
Assignees
Labels
area:pdatapdata module related issuespdata module related issuesbugSomething isn't workingSomething isn't working