Skip to content

duplicate method SpanContext #2070

@dayleader

Description

@dayleader

Description

Hi guys,
You apparently forgot to delete one of the SpanContext() methods in the ReadWriteSpan interface.

Duplicate method SpanContext() in package https://github.com/open-telemetry/opentelemetry-go/blob/main/sdk/trace/span.go line 97
// Warning: methods may be added to this interface in minor releases.
type ReadWriteSpan interface {
trace.Span <-- has SpanContext()
ReadOnlySpan <-- has SpanContext()
}

the runtime error:
/go/pkg/mod/go.opentelemetry.io/otel/[email protected]!r!c1/trace/span.go:97:2: duplicate method SpanContext

Environment

  • OS: Ubuntu
  • Architecture: x86
  • Go Version: 1.16
  • opentelemetry-go version: v1.0.0-RC1

Steps To Reproduce

Expected behavior

A clear and concise description of what you expected to happen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions