Documentation ¶
Index ¶
- func FillTestByteSlice(tv ByteSlice)
- func FillTestFloat64Slice(tv Float64Slice)
- func FillTestInstrumentationScope(tv InstrumentationScope)
- func FillTestInt64Slice(tv Int64Slice)
- func FillTestMap(dest Map)
- func FillTestResource(tv Resource)
- func FillTestSlice(tv Slice)
- func FillTestStringSlice(tv StringSlice)
- func FillTestTraceState(dest TraceState)
- func FillTestUInt64Slice(tv UInt64Slice)
- func FillTestValue(dest Value)
- func GetOrigByteSlice(ms ByteSlice) *[]byte
- func GetOrigFloat64Slice(ms Float64Slice) *[]float64
- func GetOrigInstrumentationScope(ms InstrumentationScope) *otlpcommon.InstrumentationScope
- func GetOrigInt64Slice(ms Int64Slice) *[]int64
- func GetOrigLogs(ms Logs) *otlpcollectorlog.ExportLogsServiceRequest
- func GetOrigMap(ms Map) *[]otlpcommon.KeyValue
- func GetOrigMetrics(ms Metrics) *otlpcollectormetrics.ExportMetricsServiceRequest
- func GetOrigProfiles(ms Profiles) *otlpcollectorprofile.ExportProfilesServiceRequest
- func GetOrigResource(ms Resource) *otlpresource.Resource
- func GetOrigSlice(ms Slice) *[]otlpcommon.AnyValue
- func GetOrigStringSlice(ms StringSlice) *[]string
- func GetOrigTraceState(ms TraceState) *string
- func GetOrigTraces(ms Traces) *otlpcollectortrace.ExportTraceServiceRequest
- func GetOrigUInt64Slice(ms UInt64Slice) *[]uint64
- func GetOrigValue(ms Value) *otlpcommon.AnyValue
- func LogsToProto(l Logs) otlplogs.LogsData
- func MetricsToProto(l Metrics) otlpmetrics.MetricsData
- func ProfilesToProto(l Profiles) otlpprofile.ProfilesData
- func SetLogsState(ms Logs, state State)
- func SetMetricsState(ms Metrics, state State)
- func SetProfilesState(ms Profiles, state State)
- func SetTracesState(ms Traces, state State)
- func TracesToProto(l Traces) otlptrace.TracesData
- type ByteSlice
- type Float64Slice
- type InstrumentationScope
- type Int64Slice
- type Logs
- type Map
- type Metrics
- type Profiles
- type Resource
- type Slice
- type State
- func GetByteSliceState(ms ByteSlice) *State
- func GetFloat64SliceState(ms Float64Slice) *State
- func GetInstrumentationScopeState(ms InstrumentationScope) *State
- func GetInt64SliceState(ms Int64Slice) *State
- func GetLogsState(ms Logs) *State
- func GetMapState(ms Map) *State
- func GetMetricsState(ms Metrics) *State
- func GetProfilesState(ms Profiles) *State
- func GetResourceState(ms Resource) *State
- func GetSliceState(ms Slice) *State
- func GetStringSliceState(ms StringSlice) *State
- func GetTraceStateState(ms TraceState) *State
- func GetTracesState(ms Traces) *State
- func GetUInt64SliceState(ms UInt64Slice) *State
- func GetValueState(ms Value) *State
- type StringSlice
- type TraceState
- type Traces
- type UInt64Slice
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FillTestByteSlice ¶ added in v1.9.0
func FillTestByteSlice(tv ByteSlice)
func FillTestFloat64Slice ¶ added in v1.9.0
func FillTestFloat64Slice(tv Float64Slice)
func FillTestInstrumentationScope ¶ added in v0.59.0
func FillTestInstrumentationScope(tv InstrumentationScope)
func FillTestInt64Slice ¶ added in v1.9.0
func FillTestInt64Slice(tv Int64Slice)
func FillTestMap ¶ added in v0.59.0
func FillTestMap(dest Map)
func FillTestResource ¶ added in v0.59.0
func FillTestResource(tv Resource)
func FillTestSlice ¶ added in v0.59.0
func FillTestSlice(tv Slice)
func FillTestStringSlice ¶ added in v1.9.0
func FillTestStringSlice(tv StringSlice)
func FillTestTraceState ¶ added in v0.60.0
func FillTestTraceState(dest TraceState)
func FillTestUInt64Slice ¶ added in v1.9.0
func FillTestUInt64Slice(tv UInt64Slice)
func FillTestValue ¶ added in v0.59.0
func FillTestValue(dest Value)
func GetOrigByteSlice ¶ added in v0.60.0
func GetOrigFloat64Slice ¶ added in v0.60.0
func GetOrigFloat64Slice(ms Float64Slice) *[]float64
func GetOrigInstrumentationScope ¶ added in v0.59.0
func GetOrigInstrumentationScope(ms InstrumentationScope) *otlpcommon.InstrumentationScope
func GetOrigInt64Slice ¶ added in v1.9.0
func GetOrigInt64Slice(ms Int64Slice) *[]int64
func GetOrigLogs ¶ added in v0.59.0
func GetOrigLogs(ms Logs) *otlpcollectorlog.ExportLogsServiceRequest
func GetOrigMap ¶ added in v0.59.0
func GetOrigMap(ms Map) *[]otlpcommon.KeyValue
func GetOrigMetrics ¶ added in v0.59.0
func GetOrigMetrics(ms Metrics) *otlpcollectormetrics.ExportMetricsServiceRequest
func GetOrigProfiles ¶ added in v1.11.0
func GetOrigProfiles(ms Profiles) *otlpcollectorprofile.ExportProfilesServiceRequest
func GetOrigResource ¶ added in v0.59.0
func GetOrigResource(ms Resource) *otlpresource.Resource
func GetOrigSlice ¶ added in v0.59.0
func GetOrigSlice(ms Slice) *[]otlpcommon.AnyValue
func GetOrigStringSlice ¶ added in v1.9.0
func GetOrigStringSlice(ms StringSlice) *[]string
func GetOrigTraceState ¶ added in v0.60.0
func GetOrigTraceState(ms TraceState) *string
func GetOrigTraces ¶ added in v0.59.0
func GetOrigTraces(ms Traces) *otlpcollectortrace.ExportTraceServiceRequest
func GetOrigUInt64Slice ¶ added in v0.60.0
func GetOrigUInt64Slice(ms UInt64Slice) *[]uint64
func GetOrigValue ¶ added in v0.59.0
func GetOrigValue(ms Value) *otlpcommon.AnyValue
func LogsToProto ¶ added in v0.50.0
LogsToProto internal helper to convert Logs to protobuf representation.
func MetricsToProto ¶ added in v0.50.0
func MetricsToProto(l Metrics) otlpmetrics.MetricsData
MetricsToProto internal helper to convert Metrics to protobuf representation.
func ProfilesToProto ¶ added in v1.11.0
func ProfilesToProto(l Profiles) otlpprofile.ProfilesData
ProfilesToProto internal helper to convert Profiles to protobuf representation.
func SetLogsState ¶ added in v1.0.0
func SetMetricsState ¶ added in v1.0.0
func SetProfilesState ¶ added in v1.11.0
func SetTracesState ¶ added in v1.0.0
func TracesToProto ¶ added in v0.50.0
func TracesToProto(l Traces) otlptrace.TracesData
TracesToProto internal helper to convert Traces to protobuf representation.
Types ¶
type ByteSlice ¶ added in v0.60.0
type ByteSlice struct {
// contains filtered or unexported fields
}
func GenerateTestByteSlice ¶ added in v1.9.0
func GenerateTestByteSlice() ByteSlice
func NewByteSlice ¶ added in v0.60.0
type Float64Slice ¶ added in v0.60.0
type Float64Slice struct {
// contains filtered or unexported fields
}
func GenerateTestFloat64Slice ¶ added in v1.9.0
func GenerateTestFloat64Slice() Float64Slice
func NewFloat64Slice ¶ added in v0.60.0
func NewFloat64Slice(orig *[]float64, state *State) Float64Slice
type InstrumentationScope ¶
type InstrumentationScope struct {
// contains filtered or unexported fields
}
func GenerateTestInstrumentationScope ¶ added in v0.59.0
func GenerateTestInstrumentationScope() InstrumentationScope
func NewInstrumentationScope ¶
func NewInstrumentationScope(orig *otlpcommon.InstrumentationScope, state *State) InstrumentationScope
type Int64Slice ¶ added in v1.9.0
type Int64Slice struct {
// contains filtered or unexported fields
}
func GenerateTestInt64Slice ¶ added in v1.9.0
func GenerateTestInt64Slice() Int64Slice
func NewInt64Slice ¶ added in v1.9.0
func NewInt64Slice(orig *[]int64, state *State) Int64Slice
type Logs ¶
type Logs struct {
// contains filtered or unexported fields
}
func LogsFromProto ¶ added in v0.50.0
LogsFromProto internal helper to convert protobuf representation to Logs. This function set exclusive state assuming that it's called only once per Logs.
func NewLogs ¶
func NewLogs(orig *otlpcollectorlog.ExportLogsServiceRequest, state *State) Logs
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
func GenerateTestMap ¶ added in v0.59.0
func GenerateTestMap() Map
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func MetricsFromProto ¶ added in v0.50.0
func MetricsFromProto(orig otlpmetrics.MetricsData) Metrics
MetricsFromProto internal helper to convert protobuf representation to Metrics. This function set exclusive state assuming that it's called only once per Metrics.
func NewMetrics ¶
func NewMetrics(orig *otlpcollectormetrics.ExportMetricsServiceRequest, state *State) Metrics
type Profiles ¶ added in v1.11.0
type Profiles struct {
// contains filtered or unexported fields
}
func NewProfiles ¶ added in v1.11.0
func NewProfiles(orig *otlpcollectorprofile.ExportProfilesServiceRequest, state *State) Profiles
func ProfilesFromProto ¶ added in v1.11.0
func ProfilesFromProto(orig otlpprofile.ProfilesData) Profiles
ProfilesFromProto internal helper to convert protobuf representation to Profiles. This function set exclusive state assuming that it's called only once per Profiles.
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func GenerateTestResource ¶ added in v0.59.0
func GenerateTestResource() Resource
func NewResource ¶
func NewResource(orig *otlpresource.Resource, state *State) Resource
type Slice ¶
type Slice struct {
// contains filtered or unexported fields
}
func GenerateTestSlice ¶ added in v0.59.0
func GenerateTestSlice() Slice
type State ¶ added in v1.0.0
type State int32
State defines an ownership state of pmetric.Metrics, plog.Logs or ptrace.Traces.
func GetByteSliceState ¶ added in v1.0.0
func GetFloat64SliceState ¶ added in v1.0.0
func GetFloat64SliceState(ms Float64Slice) *State
func GetInstrumentationScopeState ¶ added in v1.0.0
func GetInstrumentationScopeState(ms InstrumentationScope) *State
func GetInt64SliceState ¶ added in v1.9.0
func GetInt64SliceState(ms Int64Slice) *State
func GetLogsState ¶ added in v1.0.0
func GetMapState ¶ added in v1.0.0
func GetMetricsState ¶ added in v1.0.0
func GetProfilesState ¶ added in v1.11.0
func GetResourceState ¶ added in v1.0.0
func GetSliceState ¶ added in v1.0.0
func GetStringSliceState ¶ added in v1.9.0
func GetStringSliceState(ms StringSlice) *State
func GetTraceStateState ¶ added in v1.0.0
func GetTraceStateState(ms TraceState) *State
func GetTracesState ¶ added in v1.0.0
func GetUInt64SliceState ¶ added in v1.0.0
func GetUInt64SliceState(ms UInt64Slice) *State
func GetValueState ¶ added in v1.0.0
func (*State) AssertMutable ¶ added in v1.0.0
func (state *State) AssertMutable()
AssertMutable panics if the state is not StateMutable.
type StringSlice ¶ added in v1.9.0
type StringSlice struct {
// contains filtered or unexported fields
}
func GenerateTestStringSlice ¶ added in v1.9.0
func GenerateTestStringSlice() StringSlice
func NewStringSlice ¶ added in v1.9.0
func NewStringSlice(orig *[]string, state *State) StringSlice
type TraceState ¶
type TraceState struct {
// contains filtered or unexported fields
}
func GenerateTestTraceState ¶ added in v0.60.0
func GenerateTestTraceState() TraceState
func NewTraceState ¶ added in v0.60.0
func NewTraceState(orig *string, state *State) TraceState
type Traces ¶
type Traces struct {
// contains filtered or unexported fields
}
func NewTraces ¶
func NewTraces(orig *otlpcollectortrace.ExportTraceServiceRequest, state *State) Traces
func TracesFromProto ¶ added in v0.50.0
func TracesFromProto(orig otlptrace.TracesData) Traces
TracesFromProto internal helper to convert protobuf representation to Traces. This function set exclusive state assuming that it's called only once per Traces.
type UInt64Slice ¶ added in v0.60.0
type UInt64Slice struct {
// contains filtered or unexported fields
}
func GenerateTestUInt64Slice ¶ added in v1.9.0
func GenerateTestUInt64Slice() UInt64Slice
func NewUInt64Slice ¶ added in v0.60.0
func NewUInt64Slice(orig *[]uint64, state *State) UInt64Slice
Source Files ¶
- generated_wrapper_byteslice.go
- generated_wrapper_float64slice.go
- generated_wrapper_instrumentationscope.go
- generated_wrapper_int64slice.go
- generated_wrapper_resource.go
- generated_wrapper_stringslice.go
- generated_wrapper_uint64slice.go
- state.go
- wrapper_logs.go
- wrapper_map.go
- wrapper_metrics.go
- wrapper_profiles.go
- wrapper_slice.go
- wrapper_traces.go
- wrapper_tracestate.go
- wrapper_value.go