diff --git a/CHANGELOG.md b/CHANGELOG.md index bc9669296cf..144fcdec110 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +## 🛑 Breaking changes 🛑 + +- Remove deprecated function `IsValid` from trace/span ID (#2522) + ## v0.20.0 Beta ## 🛑 Breaking changes 🛑 diff --git a/consumer/pdata/spanid.go b/consumer/pdata/spanid.go index 8dddf42474a..748c96a9d6b 100644 --- a/consumer/pdata/spanid.go +++ b/consumer/pdata/spanid.go @@ -39,12 +39,6 @@ func (t SpanID) HexString() string { return data.SpanID(t).HexString() } -// IsValid returns true if id contains at leas one non-zero byte. -// Deprecated: use !IsEmpty() instead. -func (t SpanID) IsValid() bool { - return !data.SpanID(t).IsEmpty() -} - // IsEmpty returns true if id doesn't contain at least one non-zero byte. func (t SpanID) IsEmpty() bool { return data.SpanID(t).IsEmpty() diff --git a/consumer/pdata/traceid.go b/consumer/pdata/traceid.go index 976450a3ecb..3ec8276c455 100644 --- a/consumer/pdata/traceid.go +++ b/consumer/pdata/traceid.go @@ -39,12 +39,6 @@ func (t TraceID) HexString() string { return data.TraceID(t).HexString() } -// IsValid returns true if id contains at leas one non-zero byte. -// Deprecated: use !IsEmpty() instead. -func (t TraceID) IsValid() bool { - return !data.TraceID(t).IsEmpty() -} - // IsEmpty returns true if id doesn't contain at least one non-zero byte. func (t TraceID) IsEmpty() bool { return data.TraceID(t).IsEmpty()