| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
package ptraceotlp |
| 8 |
|
| 9 |
import ( |
| 10 |
"go.opentelemetry.io/collector/pdata/internal" |
| 11 |
) |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
type ExportPartialSuccess struct { |
| 21 |
orig *internal.ExportTracePartialSuccess |
| 22 |
state *internal.State |
| 23 |
} |
| 24 |
|
| 25 |
func newExportPartialSuccess(orig *internal.ExportTracePartialSuccess, state *internal.State) ExportPartialSuccess { |
| 26 |
return ExportPartialSuccess{orig: orig, state: state} |
| 27 |
} |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
func NewExportPartialSuccess() ExportPartialSuccess { |
| 34 |
return newExportPartialSuccess(internal.NewExportTracePartialSuccess(), internal.NewState()) |
| 35 |
} |
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
func (ms ExportPartialSuccess) MoveTo(dest ExportPartialSuccess) { |
| 40 |
ms.state.AssertMutable() |
| 41 |
dest.state.AssertMutable() |
| 42 |
|
| 43 |
if ms.orig == dest.orig { |
| 44 |
return |
| 45 |
} |
| 46 |
internal.DeleteExportTracePartialSuccess(dest.orig, false) |
| 47 |
*dest.orig, *ms.orig = *ms.orig, *dest.orig |
| 48 |
} |
| 49 |
|
| 50 |
|
| 51 |
func (ms ExportPartialSuccess) RejectedSpans() int64 { |
| 52 |
return ms.orig.RejectedSpans |
| 53 |
} |
| 54 |
|
| 55 |
|
| 56 |
func (ms ExportPartialSuccess) SetRejectedSpans(v int64) { |
| 57 |
ms.state.AssertMutable() |
| 58 |
ms.orig.RejectedSpans = v |
| 59 |
} |
| 60 |
|
| 61 |
|
| 62 |
func (ms ExportPartialSuccess) ErrorMessage() string { |
| 63 |
return ms.orig.ErrorMessage |
| 64 |
} |
| 65 |
|
| 66 |
|
| 67 |
func (ms ExportPartialSuccess) SetErrorMessage(v string) { |
| 68 |
ms.state.AssertMutable() |
| 69 |
ms.orig.ErrorMessage = v |
| 70 |
} |
| 71 |
|
| 72 |
|
| 73 |
func (ms ExportPartialSuccess) CopyTo(dest ExportPartialSuccess) { |
| 74 |
dest.state.AssertMutable() |
| 75 |
internal.CopyExportTracePartialSuccess(dest.orig, ms.orig) |
| 76 |
} |