Bump OpenTelemetry to v1.11.1

Signed-off-by: Luca Comellini <luca.com@gmail.com>
This commit is contained in:
Luca Comellini
2022-11-10 20:34:17 -08:00
parent f226fa895e
commit b829e6f2d3
112 changed files with 2415 additions and 4409 deletions

View File

@@ -199,8 +199,7 @@ func (n *Node) InsertBefore(sibling *Node) {
}
}
// IsContainer returns true if 'n' can contain children.
func (n *Node) IsContainer() bool {
func (n *Node) isContainer() bool {
switch n.Type {
case Document:
fallthrough
@@ -239,11 +238,6 @@ func (n *Node) IsContainer() bool {
}
}
// IsLeaf returns true if 'n' is a leaf node.
func (n *Node) IsLeaf() bool {
return !n.IsContainer()
}
func (n *Node) canContain(t NodeType) bool {
if n.Type == List {
return t == Item
@@ -315,11 +309,11 @@ func newNodeWalker(root *Node) *nodeWalker {
}
func (nw *nodeWalker) next() {
if (!nw.current.IsContainer() || !nw.entering) && nw.current == nw.root {
if (!nw.current.isContainer() || !nw.entering) && nw.current == nw.root {
nw.current = nil
return
}
if nw.entering && nw.current.IsContainer() {
if nw.entering && nw.current.isContainer() {
if nw.current.FirstChild != nil {
nw.current = nw.current.FirstChild
nw.entering = true