Skip to content

Commit

Permalink
[pdata] Rename ptrace.SpanStatus to trace.Status
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryax committed Oct 8, 2022
1 parent fca25f2 commit fa83b81
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 48 deletions.
4 changes: 2 additions & 2 deletions pdata/internal/cmd/pdatagen/internal/trace_structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ var spanLink = &messageValueStruct{
}

var spanStatus = &messageValueStruct{
structName: "SpanStatus",
description: "// SpanStatus is an optional final status for this span. Semantically, when Status was not\n" +
structName: "Status",
description: "// Status is an optional final status for this span. Semantically, when Status was not\n" +
"// set, that means the span ended without errors and to assume Status.Ok (code = 0).",
originFullName: "otlptrace.Status",
fields: []baseField{
Expand Down
18 changes: 9 additions & 9 deletions pdata/internal/generated_wrapper_traces.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 22 additions & 22 deletions pdata/ptrace/generated_traces.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 15 additions & 15 deletions pdata/ptrace/generated_traces_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions pdata/ptrace/traces.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,9 @@ const (

// String returns the string representation of the StatusCode.
func (sc StatusCode) String() string { return otlptrace.Status_StatusCode(sc).String() }

// Deprecated: [0.62.0] Use Status instead.
type SpanStatus = Status

// Deprecated: [0.62.0] Use NewStatus instead.
var NewSpanStatus = NewStatus

0 comments on commit fa83b81

Please sign in to comment.