Documentation

Overview

    Package pdata (pipeline data) implements data structures that represent telemetry data in-memory. All data received is converted into this format and travels through the pipeline in this format and that is converted from this format by exporters when sending.

    Current implementation primarily uses OTLP ProtoBuf structs as the underlying data structures for many of of the declared structs. We keep a pointer to OTLP protobuf in the "orig" member field. This allows efficient translation to/from OTLP wire protocol. Note that the underlying data structure is kept private so that in the future we are free to make changes to it to make more optimal.

    Most of internal data structures must be created via New* functions. Zero-initialized structures in most cases are not valid (read comments for each struct to know if it is the case). This is a slight deviation from idiomatic Go to avoid unnecessary pointer checks in dozens of functions which assume the invariant that "orig" member is non-nil. Several structures also provide New*Slice functions that allows to create more than one instance of the struct more efficiently instead of calling New* repeatedly. Use it where appropriate.

    Index

    Constants

    View Source
    const (
    	SeverityNumberUNDEFINED = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_UNSPECIFIED)
    	SeverityNumberTRACE     = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_TRACE)
    	SeverityNumberTRACE2    = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_TRACE2)
    	SeverityNumberTRACE3    = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_TRACE3)
    	SeverityNumberTRACE4    = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_TRACE4)
    	SeverityNumberDEBUG     = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_DEBUG)
    	SeverityNumberDEBUG2    = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_DEBUG2)
    	SeverityNumberDEBUG3    = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_DEBUG3)
    	SeverityNumberDEBUG4    = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_DEBUG4)
    	SeverityNumberINFO      = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_INFO)
    	SeverityNumberINFO2     = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_INFO2)
    	SeverityNumberINFO3     = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_INFO3)
    	SeverityNumberINFO4     = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_INFO4)
    	SeverityNumberWARN      = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_WARN)
    	SeverityNumberWARN2     = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_WARN2)
    	SeverityNumberWARN3     = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_WARN3)
    	SeverityNumberWARN4     = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_WARN4)
    	SeverityNumberERROR     = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_ERROR)
    	SeverityNumberERROR2    = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_ERROR2)
    	SeverityNumberERROR3    = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_ERROR3)
    	SeverityNumberERROR4    = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_ERROR4)
    	SeverityNumberFATAL     = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_FATAL)
    	SeverityNumberFATAL2    = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_FATAL2)
    	SeverityNumberFATAL3    = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_FATAL3)
    	SeverityNumberFATAL4    = SeverityNumber(otlplogs.SeverityNumber_SEVERITY_NUMBER_FATAL4)
    )
    View Source
    const (
    	SpanKindUNSPECIFIED = SpanKind(0)
    	SpanKindINTERNAL    = SpanKind(otlptrace.Span_SPAN_KIND_INTERNAL)
    	SpanKindSERVER      = SpanKind(otlptrace.Span_SPAN_KIND_SERVER)
    	SpanKindCLIENT      = SpanKind(otlptrace.Span_SPAN_KIND_CLIENT)
    	SpanKindPRODUCER    = SpanKind(otlptrace.Span_SPAN_KIND_PRODUCER)
    	SpanKindCONSUMER    = SpanKind(otlptrace.Span_SPAN_KIND_CONSUMER)
    )
    View Source
    const (
    	DeprecatedStatusCodeOk                 = DeprecatedStatusCode(otlptrace.Status_DEPRECATED_STATUS_CODE_OK)
    	DeprecatedStatusCodeCancelled          = DeprecatedStatusCode(otlptrace.Status_DEPRECATED_STATUS_CODE_CANCELLED)
    	DeprecatedStatusCodeUnknownError       = DeprecatedStatusCode(otlptrace.Status_DEPRECATED_STATUS_CODE_UNKNOWN_ERROR)
    	DeprecatedStatusCodeInvalidArgument    = DeprecatedStatusCode(otlptrace.Status_DEPRECATED_STATUS_CODE_INVALID_ARGUMENT)
    	DeprecatedStatusCodeDeadlineExceeded   = DeprecatedStatusCode(otlptrace.Status_DEPRECATED_STATUS_CODE_DEADLINE_EXCEEDED)
    	DeprecatedStatusCodeNotFound           = DeprecatedStatusCode(otlptrace.Status_DEPRECATED_STATUS_CODE_NOT_FOUND)
    	DeprecatedStatusCodeAlreadyExists      = DeprecatedStatusCode(otlptrace.Status_DEPRECATED_STATUS_CODE_ALREADY_EXISTS)
    	DeprecatedStatusCodePermissionDenied   = DeprecatedStatusCode(otlptrace.Status_DEPRECATED_STATUS_CODE_PERMISSION_DENIED)
    	DeprecatedStatusCodeResourceExhausted  = DeprecatedStatusCode(otlptrace.Status_DEPRECATED_STATUS_CODE_RESOURCE_EXHAUSTED)
    	DeprecatedStatusCodeFailedPrecondition = DeprecatedStatusCode(otlptrace.Status_DEPRECATED_STATUS_CODE_FAILED_PRECONDITION)
    	DeprecatedStatusCodeAborted            = DeprecatedStatusCode(otlptrace.Status_DEPRECATED_STATUS_CODE_ABORTED)
    	DeprecatedStatusCodeOutOfRange         = DeprecatedStatusCode(otlptrace.Status_DEPRECATED_STATUS_CODE_OUT_OF_RANGE)
    	DeprecatedStatusCodeUnimplemented      = DeprecatedStatusCode(otlptrace.Status_DEPRECATED_STATUS_CODE_UNIMPLEMENTED)
    	DeprecatedStatusCodeInternalError      = DeprecatedStatusCode(otlptrace.Status_DEPRECATED_STATUS_CODE_INTERNAL_ERROR)
    	DeprecatedStatusCodeUnavailable        = DeprecatedStatusCode(otlptrace.Status_DEPRECATED_STATUS_CODE_UNAVAILABLE)
    	DeprecatedStatusCodeDataLoss           = DeprecatedStatusCode(otlptrace.Status_DEPRECATED_STATUS_CODE_DATA_LOSS)
    	DeprecatedStatusCodeUnauthenticated    = DeprecatedStatusCode(otlptrace.Status_DEPRECATED_STATUS_CODE_UNAUTHENTICATED)
    )

    Variables

    This section is empty.

    Functions

    func MetricsToOtlp

    func MetricsToOtlp(md Metrics) []*otlpmetrics.ResourceMetrics

      MetricsToOtlp converts the internal Metrics to the OTLP.

      func TracesToOtlp

      func TracesToOtlp(td Traces) []*otlptrace.ResourceSpans

        TracesToOtlp converts the internal Traces to the OTLP.

        func UnixNanoToTime

        func UnixNanoToTime(u TimestampUnixNano) time.Time

        func UnixNanoToTimestamp

        func UnixNanoToTimestamp(u TimestampUnixNano) *timestamppb.Timestamp

        Types

        type AggregationTemporality

        type AggregationTemporality otlpmetrics.AggregationTemporality

        func (AggregationTemporality) String

        func (at AggregationTemporality) String() string

        type AnyValueArray

        type AnyValueArray struct {
        	// contains filtered or unexported fields
        }

          AnyValueArray logically represents a slice of AttributeValue.

          This is a reference type, if passed by value and callee modifies it the caller will see the modification.

          Must use NewAnyValueArray function to create new instances. Important: zero-initialized instance is not valid for use.

          func NewAnyValueArray

          func NewAnyValueArray() AnyValueArray

            NewAnyValueArray creates a AnyValueArray with 0 elements. Can use "Resize" to initialize with a given length.

            func (AnyValueArray) Append

            func (es AnyValueArray) Append(e AttributeValue)

              Append will increase the length of the AnyValueArray by one and set the given AttributeValue at that new position. The original AttributeValue could still be referenced so do not reuse it after passing it to this method.

              func (AnyValueArray) At

              func (es AnyValueArray) At(ix int) AttributeValue

                At returns the element at the given index.

                This function is used mostly for iterating over all the values in the slice: for i := 0; i < es.Len(); i++ {

                e := es.At(i)
                ... // Do something with the element
                

                }

                func (AnyValueArray) CopyTo

                func (es AnyValueArray) CopyTo(dest AnyValueArray)

                  CopyTo copies all elements from the current slice to the dest.

                  func (AnyValueArray) Len

                  func (es AnyValueArray) Len() int

                    Len returns the number of elements in the slice.

                    Returns "0" for a newly instance created with "NewAnyValueArray()".

                    func (AnyValueArray) MoveAndAppendTo

                    func (es AnyValueArray) MoveAndAppendTo(dest AnyValueArray)

                      MoveAndAppendTo moves all elements from the current slice and appends them to the dest. The current slice will be cleared.

                      func (AnyValueArray) Resize

                      func (es AnyValueArray) Resize(newLen int)

                        Resize is an operation that resizes the slice: 1. If the newLen <= len then equivalent with slice[0:newLen:cap]. 2. If the newLen > len then (newLen - cap) empty elements will be appended to the slice.

                        Here is how a new AnyValueArray can be initialized: es := NewAnyValueArray() es.Resize(4) for i := 0; i < es.Len(); i++ {

                        e := es.At(i)
                        // Here should set all the values for e.
                        

                        }

                        type AttributeMap

                        type AttributeMap struct {
                        	// contains filtered or unexported fields
                        }

                          AttributeMap stores a map of attribute keys to values.

                          func NewAttributeMap

                          func NewAttributeMap() AttributeMap

                            NewAttributeMap creates a AttributeMap with 0 elements.

                            func (AttributeMap) CopyTo

                            func (am AttributeMap) CopyTo(dest AttributeMap)

                              CopyTo copies all elements from the current map to the dest.

                              func (AttributeMap) Delete

                              func (am AttributeMap) Delete(key string) bool

                                Delete deletes the entry associated with the key and returns true if the key was present in the map, otherwise returns false.

                                func (AttributeMap) ForEach

                                func (am AttributeMap) ForEach(f func(k string, v AttributeValue))

                                  ForEach iterates over the every elements in the map by calling the provided func.

                                  Example:

                                  it := sm.ForEach(func(k string, v AttributeValue) {

                                  ...
                                  

                                  })

                                  func (AttributeMap) Get

                                  func (am AttributeMap) Get(key string) (AttributeValue, bool)

                                    Get returns the AttributeValue associated with the key and true. Returned AttributeValue is not a copy, it is a reference to the value stored in this map. It is allowed to modify the returned value using AttributeValue.Set* functions. Such modification will be applied to the value stored in this map.

                                    If the key does not exist returns an invalid instance of the KeyValue and false. Calling any functions on the returned invalid instance will cause a panic.

                                    func (AttributeMap) InitEmptyWithCapacity

                                    func (am AttributeMap) InitEmptyWithCapacity(cap int)

                                      InitEmptyWithCapacity constructs an empty AttributeMap with predefined slice capacity.

                                      func (AttributeMap) InitFromMap

                                      func (am AttributeMap) InitFromMap(attrMap map[string]AttributeValue) AttributeMap

                                        InitFromMap overwrites the entire AttributeMap and reconstructs the AttributeMap with values from the given map[string]string.

                                        Returns the same instance to allow nicer code like: assert.EqualValues(t, NewAttributeMap().InitFromMap(map[string]AttributeValue{...}), actual)

                                        func (AttributeMap) Insert

                                        func (am AttributeMap) Insert(k string, v AttributeValue)

                                          Insert adds the AttributeValue to the map when the key does not exist. No action is applied to the map where the key already exists.

                                          Calling this function with a zero-initialized AttributeValue struct will cause a panic.

                                          Important: this function should not be used if the caller has access to the raw value to avoid an extra allocation.

                                          func (AttributeMap) InsertBool

                                          func (am AttributeMap) InsertBool(k string, v bool)

                                            InsertBool adds the bool Value to the map when the key does not exist. No action is applied to the map where the key already exists.

                                            func (AttributeMap) InsertDouble

                                            func (am AttributeMap) InsertDouble(k string, v float64)

                                              InsertDouble adds the double Value to the map when the key does not exist. No action is applied to the map where the key already exists.

                                              func (AttributeMap) InsertInt

                                              func (am AttributeMap) InsertInt(k string, v int64)

                                                InsertInt adds the int Value to the map when the key does not exist. No action is applied to the map where the key already exists.

                                                func (AttributeMap) InsertNull

                                                func (am AttributeMap) InsertNull(k string)

                                                  InsertNull adds a null Value to the map when the key does not exist. No action is applied to the map where the key already exists.

                                                  func (AttributeMap) InsertString

                                                  func (am AttributeMap) InsertString(k string, v string)

                                                    InsertString adds the string Value to the map when the key does not exist. No action is applied to the map where the key already exists.

                                                    func (AttributeMap) Len

                                                    func (am AttributeMap) Len() int

                                                      Len returns the length of this map.

                                                      Because the AttributeMap is represented internally by a slice of pointers, and the data are comping from the wire, it is possible that when iterating using "ForEach" to get access to fewer elements because nil elements are skipped.

                                                      func (AttributeMap) Sort

                                                      func (am AttributeMap) Sort() AttributeMap

                                                        Sort sorts the entries in the AttributeMap so two instances can be compared. Returns the same instance to allow nicer code like: assert.EqualValues(t, expected.Sort(), actual.Sort())

                                                        func (AttributeMap) Update

                                                        func (am AttributeMap) Update(k string, v AttributeValue)

                                                          Update updates an existing AttributeValue with a value. No action is applied to the map where the key does not exist.

                                                          Calling this function with a zero-initialized AttributeValue struct will cause a panic.

                                                          Important: this function should not be used if the caller has access to the raw value to avoid an extra allocation.

                                                          func (AttributeMap) UpdateBool

                                                          func (am AttributeMap) UpdateBool(k string, v bool)

                                                            UpdateBool updates an existing bool Value with a value. No action is applied to the map where the key does not exist.

                                                            func (AttributeMap) UpdateDouble

                                                            func (am AttributeMap) UpdateDouble(k string, v float64)

                                                              UpdateDouble updates an existing double Value with a value. No action is applied to the map where the key does not exist.

                                                              func (AttributeMap) UpdateInt

                                                              func (am AttributeMap) UpdateInt(k string, v int64)

                                                                UpdateInt updates an existing int Value with a value. No action is applied to the map where the key does not exist.

                                                                func (AttributeMap) UpdateString

                                                                func (am AttributeMap) UpdateString(k string, v string)

                                                                  UpdateString updates an existing string Value with a value. No action is applied to the map where the key does not exist.

                                                                  func (AttributeMap) Upsert

                                                                  func (am AttributeMap) Upsert(k string, v AttributeValue)

                                                                    Upsert performs the Insert or Update action. The AttributeValue is insert to the map that did not originally have the key. The key/value is updated to the map where the key already existed.

                                                                    Calling this function with a zero-initialized AttributeValue struct will cause a panic.

                                                                    Important: this function should not be used if the caller has access to the raw value to avoid an extra allocation.

                                                                    func (AttributeMap) UpsertBool

                                                                    func (am AttributeMap) UpsertBool(k string, v bool)

                                                                      UpsertBool performs the Insert or Update action. The bool Value is insert to the map that did not originally have the key. The key/value is updated to the map where the key already existed.

                                                                      func (AttributeMap) UpsertDouble

                                                                      func (am AttributeMap) UpsertDouble(k string, v float64)

                                                                        UpsertDouble performs the Insert or Update action. The double Value is insert to the map that did not originally have the key. The key/value is updated to the map where the key already existed.

                                                                        func (AttributeMap) UpsertInt

                                                                        func (am AttributeMap) UpsertInt(k string, v int64)

                                                                          UpsertInt performs the Insert or Update action. The int Value is insert to the map that did not originally have the key. The key/value is updated to the map where the key already existed.

                                                                          func (AttributeMap) UpsertString

                                                                          func (am AttributeMap) UpsertString(k string, v string)

                                                                            UpsertString performs the Insert or Update action. The AttributeValue is insert to the map that did not originally have the key. The key/value is updated to the map where the key already existed.

                                                                            type AttributeValue

                                                                            type AttributeValue struct {
                                                                            	// contains filtered or unexported fields
                                                                            }

                                                                              AttributeValue represents a value of an attribute. Typically used in AttributeMap. Must use one of NewAttributeValue+ functions below to create new instances.

                                                                              Intended to be passed by value since internally it is just a pointer to actual value representation. For the same reason passing by value and calling setters will modify the original, e.g.:

                                                                              function f1(val AttributeValue) { val.SetIntVal(234) }
                                                                              function f2() {
                                                                              	v := NewAttributeValueString("a string")
                                                                                 f1(v)
                                                                                 _ := v.Type() // this will return AttributeValueINT
                                                                              }
                                                                              

                                                                              Important: zero-initialized instance is not valid for use. All AttributeValue functions bellow must be called only on instances that are created via NewAttributeValue+ functions.

                                                                              func NewAttributeValue

                                                                              func NewAttributeValue() AttributeValue

                                                                                Deprecated: Use NewAttributeValueNull()

                                                                                func NewAttributeValueArray

                                                                                func NewAttributeValueArray() AttributeValue

                                                                                  NewAttributeValueArray creates a new AttributeValue of array type.

                                                                                  func NewAttributeValueBool

                                                                                  func NewAttributeValueBool(v bool) AttributeValue

                                                                                    NewAttributeValueBool creates a new AttributeValue with the given bool value.

                                                                                    func NewAttributeValueDouble

                                                                                    func NewAttributeValueDouble(v float64) AttributeValue

                                                                                      NewAttributeValueDouble creates a new AttributeValue with the given float64 value.

                                                                                      func NewAttributeValueInt

                                                                                      func NewAttributeValueInt(v int64) AttributeValue

                                                                                        NewAttributeValueInt creates a new AttributeValue with the given int64 value.

                                                                                        func NewAttributeValueMap

                                                                                        func NewAttributeValueMap() AttributeValue

                                                                                          NewAttributeValueMap creates a new AttributeValue of map type.

                                                                                          func NewAttributeValueNull

                                                                                          func NewAttributeValueNull() AttributeValue

                                                                                            NewAttributeValueNull creates a new AttributeValue with a null value.

                                                                                            func NewAttributeValueString

                                                                                            func NewAttributeValueString(v string) AttributeValue

                                                                                              NewAttributeValueString creates a new AttributeValue with the given string value.

                                                                                              func (AttributeValue) ArrayVal

                                                                                              func (a AttributeValue) ArrayVal() AnyValueArray

                                                                                                ArrayVal returns the array value associated with this AttributeValue. If the Type() is not AttributeValueARRAY then returns an empty array. Note that modifying such empty array has no effect on this AttributeValue.

                                                                                                Calling this function on zero-initialized AttributeValue will cause a panic.

                                                                                                func (AttributeValue) BoolVal

                                                                                                func (a AttributeValue) BoolVal() bool

                                                                                                  BoolVal returns the bool value associated with this AttributeValue. If the Type() is not AttributeValueBOOL then returns false. Calling this function on zero-initialized AttributeValue will cause a panic.

                                                                                                  func (AttributeValue) CopyTo

                                                                                                  func (a AttributeValue) CopyTo(dest AttributeValue)

                                                                                                  func (AttributeValue) DoubleVal

                                                                                                  func (a AttributeValue) DoubleVal() float64

                                                                                                    DoubleVal returns the float64 value associated with this AttributeValue. If the Type() is not AttributeValueDOUBLE then returns float64(0). Calling this function on zero-initialized AttributeValue will cause a panic.

                                                                                                    func (AttributeValue) Equal

                                                                                                    func (a AttributeValue) Equal(av AttributeValue) bool

                                                                                                      Equal checks for equality, it returns true if the objects are equal otherwise false.

                                                                                                      func (AttributeValue) IntVal

                                                                                                      func (a AttributeValue) IntVal() int64

                                                                                                        IntVal returns the int64 value associated with this AttributeValue. If the Type() is not AttributeValueINT then returns int64(0). Calling this function on zero-initialized AttributeValue will cause a panic.

                                                                                                        func (AttributeValue) MapVal

                                                                                                        func (a AttributeValue) MapVal() AttributeMap

                                                                                                          MapVal returns the map value associated with this AttributeValue. If the Type() is not AttributeValueMAP then returns an empty map. Note that modifying such empty map has no effect on this AttributeValue.

                                                                                                          Calling this function on zero-initialized AttributeValue will cause a panic.

                                                                                                          func (AttributeValue) SetBoolVal

                                                                                                          func (a AttributeValue) SetBoolVal(v bool)

                                                                                                            SetBoolVal replaces the bool value associated with this AttributeValue, it also changes the type to be AttributeValueBOOL. Calling this function on zero-initialized AttributeValue will cause a panic.

                                                                                                            func (AttributeValue) SetDoubleVal

                                                                                                            func (a AttributeValue) SetDoubleVal(v float64)

                                                                                                              SetDoubleVal replaces the float64 value associated with this AttributeValue, it also changes the type to be AttributeValueDOUBLE. Calling this function on zero-initialized AttributeValue will cause a panic.

                                                                                                              func (AttributeValue) SetIntVal

                                                                                                              func (a AttributeValue) SetIntVal(v int64)

                                                                                                                SetIntVal replaces the int64 value associated with this AttributeValue, it also changes the type to be AttributeValueINT. Calling this function on zero-initialized AttributeValue will cause a panic.

                                                                                                                func (AttributeValue) SetStringVal

                                                                                                                func (a AttributeValue) SetStringVal(v string)

                                                                                                                  SetStringVal replaces the string value associated with this AttributeValue, it also changes the type to be AttributeValueSTRING. Calling this function on zero-initialized AttributeValue will cause a panic.

                                                                                                                  func (AttributeValue) StringVal

                                                                                                                  func (a AttributeValue) StringVal() string

                                                                                                                    StringVal returns the string value associated with this AttributeValue. If the Type() is not AttributeValueSTRING then returns empty string. Calling this function on zero-initialized AttributeValue will cause a panic.

                                                                                                                    func (AttributeValue) Type

                                                                                                                      Type returns the type of the value for this AttributeValue. Calling this function on zero-initialized AttributeValue will cause a panic.

                                                                                                                      type AttributeValueType

                                                                                                                      type AttributeValueType int

                                                                                                                        AttributeValueType specifies the type of AttributeValue.

                                                                                                                        const (
                                                                                                                        	AttributeValueNULL AttributeValueType = iota
                                                                                                                        	AttributeValueSTRING
                                                                                                                        	AttributeValueINT
                                                                                                                        	AttributeValueDOUBLE
                                                                                                                        	AttributeValueBOOL
                                                                                                                        	AttributeValueMAP
                                                                                                                        	AttributeValueARRAY
                                                                                                                        )

                                                                                                                        func (AttributeValueType) String

                                                                                                                        func (avt AttributeValueType) String() string

                                                                                                                        type DeprecatedStatusCode

                                                                                                                        type DeprecatedStatusCode otlptrace.Status_DeprecatedStatusCode

                                                                                                                          DeprecatedStatusCode is the deprecated status code used previously. https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#set-status Deprecated: use StatusCode instead.

                                                                                                                          func (DeprecatedStatusCode) String

                                                                                                                          func (sc DeprecatedStatusCode) String() string

                                                                                                                          type DoubleDataPoint

                                                                                                                          type DoubleDataPoint struct {
                                                                                                                          	// contains filtered or unexported fields
                                                                                                                          }

                                                                                                                            DoubleDataPoint is a single data point in a timeseries that describes the time-varying value of a double metric.

                                                                                                                            This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                            Must use NewDoubleDataPoint function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                            func NewDoubleDataPoint

                                                                                                                            func NewDoubleDataPoint() DoubleDataPoint

                                                                                                                              NewDoubleDataPoint creates a new empty DoubleDataPoint.

                                                                                                                              This must be used only in testing code since no "Set" method available.

                                                                                                                              func (DoubleDataPoint) CopyTo

                                                                                                                              func (ms DoubleDataPoint) CopyTo(dest DoubleDataPoint)

                                                                                                                                CopyTo copies all properties from the current struct to the dest.

                                                                                                                                func (DoubleDataPoint) Exemplars

                                                                                                                                func (ms DoubleDataPoint) Exemplars() DoubleExemplarSlice

                                                                                                                                  Exemplars returns the Exemplars associated with this DoubleDataPoint.

                                                                                                                                  Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                  func (DoubleDataPoint) LabelsMap

                                                                                                                                  func (ms DoubleDataPoint) LabelsMap() StringMap

                                                                                                                                    LabelsMap returns the Labels associated with this DoubleDataPoint.

                                                                                                                                    Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                    func (DoubleDataPoint) SetStartTime

                                                                                                                                    func (ms DoubleDataPoint) SetStartTime(v TimestampUnixNano)

                                                                                                                                      SetStartTime replaces the starttime associated with this DoubleDataPoint.

                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                      func (DoubleDataPoint) SetTimestamp

                                                                                                                                      func (ms DoubleDataPoint) SetTimestamp(v TimestampUnixNano)

                                                                                                                                        SetTimestamp replaces the timestamp associated with this DoubleDataPoint.

                                                                                                                                        Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                        func (DoubleDataPoint) SetValue

                                                                                                                                        func (ms DoubleDataPoint) SetValue(v float64)

                                                                                                                                          SetValue replaces the value associated with this DoubleDataPoint.

                                                                                                                                          Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                          func (DoubleDataPoint) StartTime

                                                                                                                                          func (ms DoubleDataPoint) StartTime() TimestampUnixNano

                                                                                                                                            StartTime returns the starttime associated with this DoubleDataPoint.

                                                                                                                                            Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                            func (DoubleDataPoint) Timestamp

                                                                                                                                            func (ms DoubleDataPoint) Timestamp() TimestampUnixNano

                                                                                                                                              Timestamp returns the timestamp associated with this DoubleDataPoint.

                                                                                                                                              Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                              func (DoubleDataPoint) Value

                                                                                                                                              func (ms DoubleDataPoint) Value() float64

                                                                                                                                                Value returns the value associated with this DoubleDataPoint.

                                                                                                                                                Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                type DoubleDataPointSlice

                                                                                                                                                type DoubleDataPointSlice struct {
                                                                                                                                                	// contains filtered or unexported fields
                                                                                                                                                }

                                                                                                                                                  DoubleDataPointSlice logically represents a slice of DoubleDataPoint.

                                                                                                                                                  This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                  Must use NewDoubleDataPointSlice function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                  func NewDoubleDataPointSlice

                                                                                                                                                  func NewDoubleDataPointSlice() DoubleDataPointSlice

                                                                                                                                                    NewDoubleDataPointSlice creates a DoubleDataPointSlice with 0 elements. Can use "Resize" to initialize with a given length.

                                                                                                                                                    func (DoubleDataPointSlice) Append

                                                                                                                                                      Append will increase the length of the DoubleDataPointSlice by one and set the given DoubleDataPoint at that new position. The original DoubleDataPoint could still be referenced so do not reuse it after passing it to this method.

                                                                                                                                                      func (DoubleDataPointSlice) At

                                                                                                                                                        At returns the element at the given index.

                                                                                                                                                        This function is used mostly for iterating over all the values in the slice: for i := 0; i < es.Len(); i++ {

                                                                                                                                                        e := es.At(i)
                                                                                                                                                        ... // Do something with the element
                                                                                                                                                        

                                                                                                                                                        }

                                                                                                                                                        func (DoubleDataPointSlice) CopyTo

                                                                                                                                                          CopyTo copies all elements from the current slice to the dest.

                                                                                                                                                          func (DoubleDataPointSlice) Len

                                                                                                                                                          func (es DoubleDataPointSlice) Len() int

                                                                                                                                                            Len returns the number of elements in the slice.

                                                                                                                                                            Returns "0" for a newly instance created with "NewDoubleDataPointSlice()".

                                                                                                                                                            func (DoubleDataPointSlice) MoveAndAppendTo

                                                                                                                                                            func (es DoubleDataPointSlice) MoveAndAppendTo(dest DoubleDataPointSlice)

                                                                                                                                                              MoveAndAppendTo moves all elements from the current slice and appends them to the dest. The current slice will be cleared.

                                                                                                                                                              func (DoubleDataPointSlice) Resize

                                                                                                                                                              func (es DoubleDataPointSlice) Resize(newLen int)

                                                                                                                                                                Resize is an operation that resizes the slice: 1. If the newLen <= len then equivalent with slice[0:newLen:cap]. 2. If the newLen > len then (newLen - cap) empty elements will be appended to the slice.

                                                                                                                                                                Here is how a new DoubleDataPointSlice can be initialized: es := NewDoubleDataPointSlice() es.Resize(4) for i := 0; i < es.Len(); i++ {

                                                                                                                                                                e := es.At(i)
                                                                                                                                                                // Here should set all the values for e.
                                                                                                                                                                

                                                                                                                                                                }

                                                                                                                                                                type DoubleExemplar

                                                                                                                                                                type DoubleExemplar struct {
                                                                                                                                                                	// contains filtered or unexported fields
                                                                                                                                                                }

                                                                                                                                                                  DoubleExemplar is a sample input double measurement.

                                                                                                                                                                  Exemplars also hold information about the environment when the measurement was recorded, for example the span and trace ID of the active span when the exemplar was recorded.

                                                                                                                                                                  This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                  Must use NewDoubleExemplar function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                  func NewDoubleExemplar

                                                                                                                                                                  func NewDoubleExemplar() DoubleExemplar

                                                                                                                                                                    NewDoubleExemplar creates a new empty DoubleExemplar.

                                                                                                                                                                    This must be used only in testing code since no "Set" method available.

                                                                                                                                                                    func (DoubleExemplar) CopyTo

                                                                                                                                                                    func (ms DoubleExemplar) CopyTo(dest DoubleExemplar)

                                                                                                                                                                      CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                      func (DoubleExemplar) FilteredLabels

                                                                                                                                                                      func (ms DoubleExemplar) FilteredLabels() StringMap

                                                                                                                                                                        FilteredLabels returns the FilteredLabels associated with this DoubleExemplar.

                                                                                                                                                                        Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                        func (DoubleExemplar) SetTimestamp

                                                                                                                                                                        func (ms DoubleExemplar) SetTimestamp(v TimestampUnixNano)

                                                                                                                                                                          SetTimestamp replaces the timestamp associated with this DoubleExemplar.

                                                                                                                                                                          Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                          func (DoubleExemplar) SetValue

                                                                                                                                                                          func (ms DoubleExemplar) SetValue(v float64)

                                                                                                                                                                            SetValue replaces the value associated with this DoubleExemplar.

                                                                                                                                                                            Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                            func (DoubleExemplar) Timestamp

                                                                                                                                                                            func (ms DoubleExemplar) Timestamp() TimestampUnixNano

                                                                                                                                                                              Timestamp returns the timestamp associated with this DoubleExemplar.

                                                                                                                                                                              Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                              func (DoubleExemplar) Value

                                                                                                                                                                              func (ms DoubleExemplar) Value() float64

                                                                                                                                                                                Value returns the value associated with this DoubleExemplar.

                                                                                                                                                                                Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                type DoubleExemplarSlice

                                                                                                                                                                                type DoubleExemplarSlice struct {
                                                                                                                                                                                	// contains filtered or unexported fields
                                                                                                                                                                                }

                                                                                                                                                                                  DoubleExemplarSlice logically represents a slice of DoubleExemplar.

                                                                                                                                                                                  This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                  Must use NewDoubleExemplarSlice function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                  func NewDoubleExemplarSlice

                                                                                                                                                                                  func NewDoubleExemplarSlice() DoubleExemplarSlice

                                                                                                                                                                                    NewDoubleExemplarSlice creates a DoubleExemplarSlice with 0 elements. Can use "Resize" to initialize with a given length.

                                                                                                                                                                                    func (DoubleExemplarSlice) Append

                                                                                                                                                                                    func (es DoubleExemplarSlice) Append(e DoubleExemplar)

                                                                                                                                                                                      Append will increase the length of the DoubleExemplarSlice by one and set the given DoubleExemplar at that new position. The original DoubleExemplar could still be referenced so do not reuse it after passing it to this method.

                                                                                                                                                                                      func (DoubleExemplarSlice) At

                                                                                                                                                                                        At returns the element at the given index.

                                                                                                                                                                                        This function is used mostly for iterating over all the values in the slice: for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                        e := es.At(i)
                                                                                                                                                                                        ... // Do something with the element
                                                                                                                                                                                        

                                                                                                                                                                                        }

                                                                                                                                                                                        func (DoubleExemplarSlice) CopyTo

                                                                                                                                                                                        func (es DoubleExemplarSlice) CopyTo(dest DoubleExemplarSlice)

                                                                                                                                                                                          CopyTo copies all elements from the current slice to the dest.

                                                                                                                                                                                          func (DoubleExemplarSlice) Len

                                                                                                                                                                                          func (es DoubleExemplarSlice) Len() int

                                                                                                                                                                                            Len returns the number of elements in the slice.

                                                                                                                                                                                            Returns "0" for a newly instance created with "NewDoubleExemplarSlice()".

                                                                                                                                                                                            func (DoubleExemplarSlice) MoveAndAppendTo

                                                                                                                                                                                            func (es DoubleExemplarSlice) MoveAndAppendTo(dest DoubleExemplarSlice)

                                                                                                                                                                                              MoveAndAppendTo moves all elements from the current slice and appends them to the dest. The current slice will be cleared.

                                                                                                                                                                                              func (DoubleExemplarSlice) Resize

                                                                                                                                                                                              func (es DoubleExemplarSlice) Resize(newLen int)

                                                                                                                                                                                                Resize is an operation that resizes the slice: 1. If the newLen <= len then equivalent with slice[0:newLen:cap]. 2. If the newLen > len then (newLen - cap) empty elements will be appended to the slice.

                                                                                                                                                                                                Here is how a new DoubleExemplarSlice can be initialized: es := NewDoubleExemplarSlice() es.Resize(4) for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                e := es.At(i)
                                                                                                                                                                                                // Here should set all the values for e.
                                                                                                                                                                                                

                                                                                                                                                                                                }

                                                                                                                                                                                                type DoubleGauge

                                                                                                                                                                                                type DoubleGauge struct {
                                                                                                                                                                                                	// contains filtered or unexported fields
                                                                                                                                                                                                }

                                                                                                                                                                                                  DoubleGauge represents the type of a double scalar metric that always exports the "current value" for every data point.

                                                                                                                                                                                                  This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                  Must use NewDoubleGauge function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                  func NewDoubleGauge

                                                                                                                                                                                                  func NewDoubleGauge() DoubleGauge

                                                                                                                                                                                                    NewDoubleGauge creates a new empty DoubleGauge.

                                                                                                                                                                                                    This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                    func (DoubleGauge) CopyTo

                                                                                                                                                                                                    func (ms DoubleGauge) CopyTo(dest DoubleGauge)

                                                                                                                                                                                                      CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                      func (DoubleGauge) DataPoints

                                                                                                                                                                                                      func (ms DoubleGauge) DataPoints() DoubleDataPointSlice

                                                                                                                                                                                                        DataPoints returns the DataPoints associated with this DoubleGauge.

                                                                                                                                                                                                        Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                        type DoubleHistogram

                                                                                                                                                                                                        type DoubleHistogram struct {
                                                                                                                                                                                                        	// contains filtered or unexported fields
                                                                                                                                                                                                        }

                                                                                                                                                                                                          DoubleHistogram represents the type of a metric that is calculated by aggregating as a Histogram of all reported double measurements over a time interval.

                                                                                                                                                                                                          This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                          Must use NewDoubleHistogram function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                          func NewDoubleHistogram

                                                                                                                                                                                                          func NewDoubleHistogram() DoubleHistogram

                                                                                                                                                                                                            NewDoubleHistogram creates a new empty DoubleHistogram.

                                                                                                                                                                                                            This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                            func (DoubleHistogram) AggregationTemporality

                                                                                                                                                                                                            func (ms DoubleHistogram) AggregationTemporality() AggregationTemporality

                                                                                                                                                                                                              AggregationTemporality returns the aggregationtemporality associated with this DoubleHistogram.

                                                                                                                                                                                                              Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                              func (DoubleHistogram) CopyTo

                                                                                                                                                                                                              func (ms DoubleHistogram) CopyTo(dest DoubleHistogram)

                                                                                                                                                                                                                CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                func (DoubleHistogram) DataPoints

                                                                                                                                                                                                                  DataPoints returns the DataPoints associated with this DoubleHistogram.

                                                                                                                                                                                                                  Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                  func (DoubleHistogram) SetAggregationTemporality

                                                                                                                                                                                                                  func (ms DoubleHistogram) SetAggregationTemporality(v AggregationTemporality)

                                                                                                                                                                                                                    SetAggregationTemporality replaces the aggregationtemporality associated with this DoubleHistogram.

                                                                                                                                                                                                                    Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                    type DoubleHistogramDataPoint

                                                                                                                                                                                                                    type DoubleHistogramDataPoint struct {
                                                                                                                                                                                                                    	// contains filtered or unexported fields
                                                                                                                                                                                                                    }

                                                                                                                                                                                                                      DoubleHistogramDataPoint is a single data point in a timeseries that describes the time-varying values of a Histogram of double values.

                                                                                                                                                                                                                      This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                      Must use NewDoubleHistogramDataPoint function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                      func NewDoubleHistogramDataPoint

                                                                                                                                                                                                                      func NewDoubleHistogramDataPoint() DoubleHistogramDataPoint

                                                                                                                                                                                                                        NewDoubleHistogramDataPoint creates a new empty DoubleHistogramDataPoint.

                                                                                                                                                                                                                        This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                        func (DoubleHistogramDataPoint) BucketCounts

                                                                                                                                                                                                                        func (ms DoubleHistogramDataPoint) BucketCounts() []uint64

                                                                                                                                                                                                                          BucketCounts returns the bucketcounts associated with this DoubleHistogramDataPoint.

                                                                                                                                                                                                                          Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                          func (DoubleHistogramDataPoint) CopyTo

                                                                                                                                                                                                                            CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                            func (DoubleHistogramDataPoint) Count

                                                                                                                                                                                                                            func (ms DoubleHistogramDataPoint) Count() uint64

                                                                                                                                                                                                                              Count returns the count associated with this DoubleHistogramDataPoint.

                                                                                                                                                                                                                              Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                              func (DoubleHistogramDataPoint) Exemplars

                                                                                                                                                                                                                                Exemplars returns the Exemplars associated with this DoubleHistogramDataPoint.

                                                                                                                                                                                                                                Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                func (DoubleHistogramDataPoint) ExplicitBounds

                                                                                                                                                                                                                                func (ms DoubleHistogramDataPoint) ExplicitBounds() []float64

                                                                                                                                                                                                                                  ExplicitBounds returns the explicitbounds associated with this DoubleHistogramDataPoint.

                                                                                                                                                                                                                                  Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                  func (DoubleHistogramDataPoint) LabelsMap

                                                                                                                                                                                                                                  func (ms DoubleHistogramDataPoint) LabelsMap() StringMap

                                                                                                                                                                                                                                    LabelsMap returns the Labels associated with this DoubleHistogramDataPoint.

                                                                                                                                                                                                                                    Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                    func (DoubleHistogramDataPoint) SetBucketCounts

                                                                                                                                                                                                                                    func (ms DoubleHistogramDataPoint) SetBucketCounts(v []uint64)

                                                                                                                                                                                                                                      SetBucketCounts replaces the bucketcounts associated with this DoubleHistogramDataPoint.

                                                                                                                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                      func (DoubleHistogramDataPoint) SetCount

                                                                                                                                                                                                                                      func (ms DoubleHistogramDataPoint) SetCount(v uint64)

                                                                                                                                                                                                                                        SetCount replaces the count associated with this DoubleHistogramDataPoint.

                                                                                                                                                                                                                                        Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                        func (DoubleHistogramDataPoint) SetExplicitBounds

                                                                                                                                                                                                                                        func (ms DoubleHistogramDataPoint) SetExplicitBounds(v []float64)

                                                                                                                                                                                                                                          SetExplicitBounds replaces the explicitbounds associated with this DoubleHistogramDataPoint.

                                                                                                                                                                                                                                          Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                          func (DoubleHistogramDataPoint) SetStartTime

                                                                                                                                                                                                                                          func (ms DoubleHistogramDataPoint) SetStartTime(v TimestampUnixNano)

                                                                                                                                                                                                                                            SetStartTime replaces the starttime associated with this DoubleHistogramDataPoint.

                                                                                                                                                                                                                                            Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                            func (DoubleHistogramDataPoint) SetSum

                                                                                                                                                                                                                                            func (ms DoubleHistogramDataPoint) SetSum(v float64)

                                                                                                                                                                                                                                              SetSum replaces the sum associated with this DoubleHistogramDataPoint.

                                                                                                                                                                                                                                              Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                              func (DoubleHistogramDataPoint) SetTimestamp

                                                                                                                                                                                                                                              func (ms DoubleHistogramDataPoint) SetTimestamp(v TimestampUnixNano)

                                                                                                                                                                                                                                                SetTimestamp replaces the timestamp associated with this DoubleHistogramDataPoint.

                                                                                                                                                                                                                                                Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                func (DoubleHistogramDataPoint) StartTime

                                                                                                                                                                                                                                                  StartTime returns the starttime associated with this DoubleHistogramDataPoint.

                                                                                                                                                                                                                                                  Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                  func (DoubleHistogramDataPoint) Sum

                                                                                                                                                                                                                                                    Sum returns the sum associated with this DoubleHistogramDataPoint.

                                                                                                                                                                                                                                                    Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                    func (DoubleHistogramDataPoint) Timestamp

                                                                                                                                                                                                                                                      Timestamp returns the timestamp associated with this DoubleHistogramDataPoint.

                                                                                                                                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                      type DoubleHistogramDataPointSlice

                                                                                                                                                                                                                                                      type DoubleHistogramDataPointSlice struct {
                                                                                                                                                                                                                                                      	// contains filtered or unexported fields
                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                        DoubleHistogramDataPointSlice logically represents a slice of DoubleHistogramDataPoint.

                                                                                                                                                                                                                                                        This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                        Must use NewDoubleHistogramDataPointSlice function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                        func NewDoubleHistogramDataPointSlice

                                                                                                                                                                                                                                                        func NewDoubleHistogramDataPointSlice() DoubleHistogramDataPointSlice

                                                                                                                                                                                                                                                          NewDoubleHistogramDataPointSlice creates a DoubleHistogramDataPointSlice with 0 elements. Can use "Resize" to initialize with a given length.

                                                                                                                                                                                                                                                          func (DoubleHistogramDataPointSlice) Append

                                                                                                                                                                                                                                                            Append will increase the length of the DoubleHistogramDataPointSlice by one and set the given DoubleHistogramDataPoint at that new position. The original DoubleHistogramDataPoint could still be referenced so do not reuse it after passing it to this method.

                                                                                                                                                                                                                                                            func (DoubleHistogramDataPointSlice) At

                                                                                                                                                                                                                                                              At returns the element at the given index.

                                                                                                                                                                                                                                                              This function is used mostly for iterating over all the values in the slice: for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                              e := es.At(i)
                                                                                                                                                                                                                                                              ... // Do something with the element
                                                                                                                                                                                                                                                              

                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                              func (DoubleHistogramDataPointSlice) CopyTo

                                                                                                                                                                                                                                                                CopyTo copies all elements from the current slice to the dest.

                                                                                                                                                                                                                                                                func (DoubleHistogramDataPointSlice) Len

                                                                                                                                                                                                                                                                  Len returns the number of elements in the slice.

                                                                                                                                                                                                                                                                  Returns "0" for a newly instance created with "NewDoubleHistogramDataPointSlice()".

                                                                                                                                                                                                                                                                  func (DoubleHistogramDataPointSlice) MoveAndAppendTo

                                                                                                                                                                                                                                                                    MoveAndAppendTo moves all elements from the current slice and appends them to the dest. The current slice will be cleared.

                                                                                                                                                                                                                                                                    func (DoubleHistogramDataPointSlice) Resize

                                                                                                                                                                                                                                                                    func (es DoubleHistogramDataPointSlice) Resize(newLen int)

                                                                                                                                                                                                                                                                      Resize is an operation that resizes the slice: 1. If the newLen <= len then equivalent with slice[0:newLen:cap]. 2. If the newLen > len then (newLen - cap) empty elements will be appended to the slice.

                                                                                                                                                                                                                                                                      Here is how a new DoubleHistogramDataPointSlice can be initialized: es := NewDoubleHistogramDataPointSlice() es.Resize(4) for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                      e := es.At(i)
                                                                                                                                                                                                                                                                      // Here should set all the values for e.
                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                      type DoubleSum

                                                                                                                                                                                                                                                                      type DoubleSum struct {
                                                                                                                                                                                                                                                                      	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                        DoubleSum represents the type of a numeric double scalar metric that is calculated as a sum of all reported measurements over a time interval.

                                                                                                                                                                                                                                                                        This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                        Must use NewDoubleSum function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                        func NewDoubleSum

                                                                                                                                                                                                                                                                        func NewDoubleSum() DoubleSum

                                                                                                                                                                                                                                                                          NewDoubleSum creates a new empty DoubleSum.

                                                                                                                                                                                                                                                                          This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                          func (DoubleSum) AggregationTemporality

                                                                                                                                                                                                                                                                          func (ms DoubleSum) AggregationTemporality() AggregationTemporality

                                                                                                                                                                                                                                                                            AggregationTemporality returns the aggregationtemporality associated with this DoubleSum.

                                                                                                                                                                                                                                                                            Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                            func (DoubleSum) CopyTo

                                                                                                                                                                                                                                                                            func (ms DoubleSum) CopyTo(dest DoubleSum)

                                                                                                                                                                                                                                                                              CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                              func (DoubleSum) DataPoints

                                                                                                                                                                                                                                                                              func (ms DoubleSum) DataPoints() DoubleDataPointSlice

                                                                                                                                                                                                                                                                                DataPoints returns the DataPoints associated with this DoubleSum.

                                                                                                                                                                                                                                                                                Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                func (DoubleSum) IsMonotonic

                                                                                                                                                                                                                                                                                func (ms DoubleSum) IsMonotonic() bool

                                                                                                                                                                                                                                                                                  IsMonotonic returns the ismonotonic associated with this DoubleSum.

                                                                                                                                                                                                                                                                                  Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                  func (DoubleSum) SetAggregationTemporality

                                                                                                                                                                                                                                                                                  func (ms DoubleSum) SetAggregationTemporality(v AggregationTemporality)

                                                                                                                                                                                                                                                                                    SetAggregationTemporality replaces the aggregationtemporality associated with this DoubleSum.

                                                                                                                                                                                                                                                                                    Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                    func (DoubleSum) SetIsMonotonic

                                                                                                                                                                                                                                                                                    func (ms DoubleSum) SetIsMonotonic(v bool)

                                                                                                                                                                                                                                                                                      SetIsMonotonic replaces the ismonotonic associated with this DoubleSum.

                                                                                                                                                                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                      type DoubleSummary

                                                                                                                                                                                                                                                                                      type DoubleSummary struct {
                                                                                                                                                                                                                                                                                      	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                        DoubleSummary represents the type of a metric that is calculated by aggregating as a Summary of all reported double measurements over a time interval.

                                                                                                                                                                                                                                                                                        This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                        Must use NewDoubleSummary function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                        func NewDoubleSummary

                                                                                                                                                                                                                                                                                        func NewDoubleSummary() DoubleSummary

                                                                                                                                                                                                                                                                                          NewDoubleSummary creates a new empty DoubleSummary.

                                                                                                                                                                                                                                                                                          This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                                          func (DoubleSummary) CopyTo

                                                                                                                                                                                                                                                                                          func (ms DoubleSummary) CopyTo(dest DoubleSummary)

                                                                                                                                                                                                                                                                                            CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                                            func (DoubleSummary) DataPoints

                                                                                                                                                                                                                                                                                              DataPoints returns the DataPoints associated with this DoubleSummary.

                                                                                                                                                                                                                                                                                              Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                              type DoubleSummaryDataPoint

                                                                                                                                                                                                                                                                                              type DoubleSummaryDataPoint struct {
                                                                                                                                                                                                                                                                                              	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                                DoubleSummaryDataPoint is a single data point in a timeseries that describes the time-varying values of a Summary of double values.

                                                                                                                                                                                                                                                                                                This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                Must use NewDoubleSummaryDataPoint function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                func NewDoubleSummaryDataPoint

                                                                                                                                                                                                                                                                                                func NewDoubleSummaryDataPoint() DoubleSummaryDataPoint

                                                                                                                                                                                                                                                                                                  NewDoubleSummaryDataPoint creates a new empty DoubleSummaryDataPoint.

                                                                                                                                                                                                                                                                                                  This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                                                  func (DoubleSummaryDataPoint) CopyTo

                                                                                                                                                                                                                                                                                                    CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                                                    func (DoubleSummaryDataPoint) Count

                                                                                                                                                                                                                                                                                                    func (ms DoubleSummaryDataPoint) Count() uint64

                                                                                                                                                                                                                                                                                                      Count returns the count associated with this DoubleSummaryDataPoint.

                                                                                                                                                                                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                      func (DoubleSummaryDataPoint) LabelsMap

                                                                                                                                                                                                                                                                                                      func (ms DoubleSummaryDataPoint) LabelsMap() StringMap

                                                                                                                                                                                                                                                                                                        LabelsMap returns the Labels associated with this DoubleSummaryDataPoint.

                                                                                                                                                                                                                                                                                                        Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                        func (DoubleSummaryDataPoint) QuantileValues

                                                                                                                                                                                                                                                                                                        func (ms DoubleSummaryDataPoint) QuantileValues() ValueAtQuantileSlice

                                                                                                                                                                                                                                                                                                          QuantileValues returns the QuantileValues associated with this DoubleSummaryDataPoint.

                                                                                                                                                                                                                                                                                                          Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                          func (DoubleSummaryDataPoint) SetCount

                                                                                                                                                                                                                                                                                                          func (ms DoubleSummaryDataPoint) SetCount(v uint64)

                                                                                                                                                                                                                                                                                                            SetCount replaces the count associated with this DoubleSummaryDataPoint.

                                                                                                                                                                                                                                                                                                            Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                            func (DoubleSummaryDataPoint) SetStartTime

                                                                                                                                                                                                                                                                                                            func (ms DoubleSummaryDataPoint) SetStartTime(v TimestampUnixNano)

                                                                                                                                                                                                                                                                                                              SetStartTime replaces the starttime associated with this DoubleSummaryDataPoint.

                                                                                                                                                                                                                                                                                                              Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                              func (DoubleSummaryDataPoint) SetSum

                                                                                                                                                                                                                                                                                                              func (ms DoubleSummaryDataPoint) SetSum(v float64)

                                                                                                                                                                                                                                                                                                                SetSum replaces the sum associated with this DoubleSummaryDataPoint.

                                                                                                                                                                                                                                                                                                                Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                func (DoubleSummaryDataPoint) SetTimestamp

                                                                                                                                                                                                                                                                                                                func (ms DoubleSummaryDataPoint) SetTimestamp(v TimestampUnixNano)

                                                                                                                                                                                                                                                                                                                  SetTimestamp replaces the timestamp associated with this DoubleSummaryDataPoint.

                                                                                                                                                                                                                                                                                                                  Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                  func (DoubleSummaryDataPoint) StartTime

                                                                                                                                                                                                                                                                                                                    StartTime returns the starttime associated with this DoubleSummaryDataPoint.

                                                                                                                                                                                                                                                                                                                    Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                    func (DoubleSummaryDataPoint) Sum

                                                                                                                                                                                                                                                                                                                      Sum returns the sum associated with this DoubleSummaryDataPoint.

                                                                                                                                                                                                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                      func (DoubleSummaryDataPoint) Timestamp

                                                                                                                                                                                                                                                                                                                        Timestamp returns the timestamp associated with this DoubleSummaryDataPoint.

                                                                                                                                                                                                                                                                                                                        Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                        type DoubleSummaryDataPointSlice

                                                                                                                                                                                                                                                                                                                        type DoubleSummaryDataPointSlice struct {
                                                                                                                                                                                                                                                                                                                        	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                                                          DoubleSummaryDataPointSlice logically represents a slice of DoubleSummaryDataPoint.

                                                                                                                                                                                                                                                                                                                          This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                          Must use NewDoubleSummaryDataPointSlice function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                          func NewDoubleSummaryDataPointSlice

                                                                                                                                                                                                                                                                                                                          func NewDoubleSummaryDataPointSlice() DoubleSummaryDataPointSlice

                                                                                                                                                                                                                                                                                                                            NewDoubleSummaryDataPointSlice creates a DoubleSummaryDataPointSlice with 0 elements. Can use "Resize" to initialize with a given length.

                                                                                                                                                                                                                                                                                                                            func (DoubleSummaryDataPointSlice) Append

                                                                                                                                                                                                                                                                                                                              Append will increase the length of the DoubleSummaryDataPointSlice by one and set the given DoubleSummaryDataPoint at that new position. The original DoubleSummaryDataPoint could still be referenced so do not reuse it after passing it to this method.

                                                                                                                                                                                                                                                                                                                              func (DoubleSummaryDataPointSlice) At

                                                                                                                                                                                                                                                                                                                                At returns the element at the given index.

                                                                                                                                                                                                                                                                                                                                This function is used mostly for iterating over all the values in the slice: for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                e := es.At(i)
                                                                                                                                                                                                                                                                                                                                ... // Do something with the element
                                                                                                                                                                                                                                                                                                                                

                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                func (DoubleSummaryDataPointSlice) CopyTo

                                                                                                                                                                                                                                                                                                                                  CopyTo copies all elements from the current slice to the dest.

                                                                                                                                                                                                                                                                                                                                  func (DoubleSummaryDataPointSlice) Len

                                                                                                                                                                                                                                                                                                                                    Len returns the number of elements in the slice.

                                                                                                                                                                                                                                                                                                                                    Returns "0" for a newly instance created with "NewDoubleSummaryDataPointSlice()".

                                                                                                                                                                                                                                                                                                                                    func (DoubleSummaryDataPointSlice) MoveAndAppendTo

                                                                                                                                                                                                                                                                                                                                      MoveAndAppendTo moves all elements from the current slice and appends them to the dest. The current slice will be cleared.

                                                                                                                                                                                                                                                                                                                                      func (DoubleSummaryDataPointSlice) Resize

                                                                                                                                                                                                                                                                                                                                      func (es DoubleSummaryDataPointSlice) Resize(newLen int)

                                                                                                                                                                                                                                                                                                                                        Resize is an operation that resizes the slice: 1. If the newLen <= len then equivalent with slice[0:newLen:cap]. 2. If the newLen > len then (newLen - cap) empty elements will be appended to the slice.

                                                                                                                                                                                                                                                                                                                                        Here is how a new DoubleSummaryDataPointSlice can be initialized: es := NewDoubleSummaryDataPointSlice() es.Resize(4) for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                        e := es.At(i)
                                                                                                                                                                                                                                                                                                                                        // Here should set all the values for e.
                                                                                                                                                                                                                                                                                                                                        

                                                                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                                                                        type InstrumentationLibrary

                                                                                                                                                                                                                                                                                                                                        type InstrumentationLibrary struct {
                                                                                                                                                                                                                                                                                                                                        	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                                                                          InstrumentationLibrary is a message representing the instrumentation library information.

                                                                                                                                                                                                                                                                                                                                          This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                          Must use NewInstrumentationLibrary function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                          func NewInstrumentationLibrary

                                                                                                                                                                                                                                                                                                                                          func NewInstrumentationLibrary() InstrumentationLibrary

                                                                                                                                                                                                                                                                                                                                            NewInstrumentationLibrary creates a new empty InstrumentationLibrary.

                                                                                                                                                                                                                                                                                                                                            This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                                                                                            func (InstrumentationLibrary) CopyTo

                                                                                                                                                                                                                                                                                                                                              CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                                                                                              func (InstrumentationLibrary) Name

                                                                                                                                                                                                                                                                                                                                              func (ms InstrumentationLibrary) Name() string

                                                                                                                                                                                                                                                                                                                                                Name returns the name associated with this InstrumentationLibrary.

                                                                                                                                                                                                                                                                                                                                                Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                func (InstrumentationLibrary) SetName

                                                                                                                                                                                                                                                                                                                                                func (ms InstrumentationLibrary) SetName(v string)

                                                                                                                                                                                                                                                                                                                                                  SetName replaces the name associated with this InstrumentationLibrary.

                                                                                                                                                                                                                                                                                                                                                  Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                  func (InstrumentationLibrary) SetVersion

                                                                                                                                                                                                                                                                                                                                                  func (ms InstrumentationLibrary) SetVersion(v string)

                                                                                                                                                                                                                                                                                                                                                    SetVersion replaces the version associated with this InstrumentationLibrary.

                                                                                                                                                                                                                                                                                                                                                    Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                    func (InstrumentationLibrary) Version

                                                                                                                                                                                                                                                                                                                                                    func (ms InstrumentationLibrary) Version() string

                                                                                                                                                                                                                                                                                                                                                      Version returns the version associated with this InstrumentationLibrary.

                                                                                                                                                                                                                                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                      type InstrumentationLibraryLogs

                                                                                                                                                                                                                                                                                                                                                      type InstrumentationLibraryLogs struct {
                                                                                                                                                                                                                                                                                                                                                      	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                        InstrumentationLibraryLogs is a collection of logs from a LibraryInstrumentation.

                                                                                                                                                                                                                                                                                                                                                        This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                        Must use NewInstrumentationLibraryLogs function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                        func NewInstrumentationLibraryLogs

                                                                                                                                                                                                                                                                                                                                                        func NewInstrumentationLibraryLogs() InstrumentationLibraryLogs

                                                                                                                                                                                                                                                                                                                                                          NewInstrumentationLibraryLogs creates a new empty InstrumentationLibraryLogs.

                                                                                                                                                                                                                                                                                                                                                          This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                                                                                                          func (InstrumentationLibraryLogs) CopyTo

                                                                                                                                                                                                                                                                                                                                                            CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                                                                                                            func (InstrumentationLibraryLogs) InstrumentationLibrary

                                                                                                                                                                                                                                                                                                                                                            func (ms InstrumentationLibraryLogs) InstrumentationLibrary() InstrumentationLibrary

                                                                                                                                                                                                                                                                                                                                                              InstrumentationLibrary returns the instrumentationlibrary associated with this InstrumentationLibraryLogs.

                                                                                                                                                                                                                                                                                                                                                              Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                              func (InstrumentationLibraryLogs) Logs

                                                                                                                                                                                                                                                                                                                                                                Logs returns the Logs associated with this InstrumentationLibraryLogs.

                                                                                                                                                                                                                                                                                                                                                                Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                type InstrumentationLibraryLogsSlice

                                                                                                                                                                                                                                                                                                                                                                type InstrumentationLibraryLogsSlice struct {
                                                                                                                                                                                                                                                                                                                                                                	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                                  InstrumentationLibraryLogsSlice logically represents a slice of InstrumentationLibraryLogs.

                                                                                                                                                                                                                                                                                                                                                                  This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                  Must use NewInstrumentationLibraryLogsSlice function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                  func NewInstrumentationLibraryLogsSlice

                                                                                                                                                                                                                                                                                                                                                                  func NewInstrumentationLibraryLogsSlice() InstrumentationLibraryLogsSlice

                                                                                                                                                                                                                                                                                                                                                                    NewInstrumentationLibraryLogsSlice creates a InstrumentationLibraryLogsSlice with 0 elements. Can use "Resize" to initialize with a given length.

                                                                                                                                                                                                                                                                                                                                                                    func (InstrumentationLibraryLogsSlice) Append

                                                                                                                                                                                                                                                                                                                                                                      Append will increase the length of the InstrumentationLibraryLogsSlice by one and set the given InstrumentationLibraryLogs at that new position. The original InstrumentationLibraryLogs could still be referenced so do not reuse it after passing it to this method.

                                                                                                                                                                                                                                                                                                                                                                      func (InstrumentationLibraryLogsSlice) At

                                                                                                                                                                                                                                                                                                                                                                        At returns the element at the given index.

                                                                                                                                                                                                                                                                                                                                                                        This function is used mostly for iterating over all the values in the slice: for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                        e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                        ... // Do something with the element
                                                                                                                                                                                                                                                                                                                                                                        

                                                                                                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                                                                                                        func (InstrumentationLibraryLogsSlice) CopyTo

                                                                                                                                                                                                                                                                                                                                                                          CopyTo copies all elements from the current slice to the dest.

                                                                                                                                                                                                                                                                                                                                                                          func (InstrumentationLibraryLogsSlice) Len

                                                                                                                                                                                                                                                                                                                                                                            Len returns the number of elements in the slice.

                                                                                                                                                                                                                                                                                                                                                                            Returns "0" for a newly instance created with "NewInstrumentationLibraryLogsSlice()".

                                                                                                                                                                                                                                                                                                                                                                            func (InstrumentationLibraryLogsSlice) MoveAndAppendTo

                                                                                                                                                                                                                                                                                                                                                                              MoveAndAppendTo moves all elements from the current slice and appends them to the dest. The current slice will be cleared.

                                                                                                                                                                                                                                                                                                                                                                              func (InstrumentationLibraryLogsSlice) Resize

                                                                                                                                                                                                                                                                                                                                                                              func (es InstrumentationLibraryLogsSlice) Resize(newLen int)

                                                                                                                                                                                                                                                                                                                                                                                Resize is an operation that resizes the slice: 1. If the newLen <= len then equivalent with slice[0:newLen:cap]. 2. If the newLen > len then (newLen - cap) empty elements will be appended to the slice.

                                                                                                                                                                                                                                                                                                                                                                                Here is how a new InstrumentationLibraryLogsSlice can be initialized: es := NewInstrumentationLibraryLogsSlice() es.Resize(4) for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                // Here should set all the values for e.
                                                                                                                                                                                                                                                                                                                                                                                

                                                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                                                type InstrumentationLibraryMetrics

                                                                                                                                                                                                                                                                                                                                                                                type InstrumentationLibraryMetrics struct {
                                                                                                                                                                                                                                                                                                                                                                                	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                                                  InstrumentationLibraryMetrics is a collection of metrics from a LibraryInstrumentation.

                                                                                                                                                                                                                                                                                                                                                                                  This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                  Must use NewInstrumentationLibraryMetrics function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                  func NewInstrumentationLibraryMetrics

                                                                                                                                                                                                                                                                                                                                                                                  func NewInstrumentationLibraryMetrics() InstrumentationLibraryMetrics

                                                                                                                                                                                                                                                                                                                                                                                    NewInstrumentationLibraryMetrics creates a new empty InstrumentationLibraryMetrics.

                                                                                                                                                                                                                                                                                                                                                                                    This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                                                                                                                                    func (InstrumentationLibraryMetrics) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                      CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                                                                                                                                      func (InstrumentationLibraryMetrics) InstrumentationLibrary

                                                                                                                                                                                                                                                                                                                                                                                      func (ms InstrumentationLibraryMetrics) InstrumentationLibrary() InstrumentationLibrary

                                                                                                                                                                                                                                                                                                                                                                                        InstrumentationLibrary returns the instrumentationlibrary associated with this InstrumentationLibraryMetrics.

                                                                                                                                                                                                                                                                                                                                                                                        Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                        func (InstrumentationLibraryMetrics) Metrics

                                                                                                                                                                                                                                                                                                                                                                                          Metrics returns the Metrics associated with this InstrumentationLibraryMetrics.

                                                                                                                                                                                                                                                                                                                                                                                          Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                          type InstrumentationLibraryMetricsSlice

                                                                                                                                                                                                                                                                                                                                                                                          type InstrumentationLibraryMetricsSlice struct {
                                                                                                                                                                                                                                                                                                                                                                                          	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                            InstrumentationLibraryMetricsSlice logically represents a slice of InstrumentationLibraryMetrics.

                                                                                                                                                                                                                                                                                                                                                                                            This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                            Must use NewInstrumentationLibraryMetricsSlice function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                            func NewInstrumentationLibraryMetricsSlice

                                                                                                                                                                                                                                                                                                                                                                                            func NewInstrumentationLibraryMetricsSlice() InstrumentationLibraryMetricsSlice

                                                                                                                                                                                                                                                                                                                                                                                              NewInstrumentationLibraryMetricsSlice creates a InstrumentationLibraryMetricsSlice with 0 elements. Can use "Resize" to initialize with a given length.

                                                                                                                                                                                                                                                                                                                                                                                              func (InstrumentationLibraryMetricsSlice) Append

                                                                                                                                                                                                                                                                                                                                                                                                Append will increase the length of the InstrumentationLibraryMetricsSlice by one and set the given InstrumentationLibraryMetrics at that new position. The original InstrumentationLibraryMetrics could still be referenced so do not reuse it after passing it to this method.

                                                                                                                                                                                                                                                                                                                                                                                                func (InstrumentationLibraryMetricsSlice) At

                                                                                                                                                                                                                                                                                                                                                                                                  At returns the element at the given index.

                                                                                                                                                                                                                                                                                                                                                                                                  This function is used mostly for iterating over all the values in the slice: for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                  e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                  ... // Do something with the element
                                                                                                                                                                                                                                                                                                                                                                                                  

                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                  func (InstrumentationLibraryMetricsSlice) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                    CopyTo copies all elements from the current slice to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                    func (InstrumentationLibraryMetricsSlice) Len

                                                                                                                                                                                                                                                                                                                                                                                                      Len returns the number of elements in the slice.

                                                                                                                                                                                                                                                                                                                                                                                                      Returns "0" for a newly instance created with "NewInstrumentationLibraryMetricsSlice()".

                                                                                                                                                                                                                                                                                                                                                                                                      func (InstrumentationLibraryMetricsSlice) MoveAndAppendTo

                                                                                                                                                                                                                                                                                                                                                                                                        MoveAndAppendTo moves all elements from the current slice and appends them to the dest. The current slice will be cleared.

                                                                                                                                                                                                                                                                                                                                                                                                        func (InstrumentationLibraryMetricsSlice) Resize

                                                                                                                                                                                                                                                                                                                                                                                                        func (es InstrumentationLibraryMetricsSlice) Resize(newLen int)

                                                                                                                                                                                                                                                                                                                                                                                                          Resize is an operation that resizes the slice: 1. If the newLen <= len then equivalent with slice[0:newLen:cap]. 2. If the newLen > len then (newLen - cap) empty elements will be appended to the slice.

                                                                                                                                                                                                                                                                                                                                                                                                          Here is how a new InstrumentationLibraryMetricsSlice can be initialized: es := NewInstrumentationLibraryMetricsSlice() es.Resize(4) for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                          e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                          // Here should set all the values for e.
                                                                                                                                                                                                                                                                                                                                                                                                          

                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                          type InstrumentationLibrarySpans

                                                                                                                                                                                                                                                                                                                                                                                                          type InstrumentationLibrarySpans struct {
                                                                                                                                                                                                                                                                                                                                                                                                          	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                            InstrumentationLibrarySpans is a collection of spans from a LibraryInstrumentation.

                                                                                                                                                                                                                                                                                                                                                                                                            This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                            Must use NewInstrumentationLibrarySpans function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                            func NewInstrumentationLibrarySpans

                                                                                                                                                                                                                                                                                                                                                                                                            func NewInstrumentationLibrarySpans() InstrumentationLibrarySpans

                                                                                                                                                                                                                                                                                                                                                                                                              NewInstrumentationLibrarySpans creates a new empty InstrumentationLibrarySpans.

                                                                                                                                                                                                                                                                                                                                                                                                              This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                                                                                                                                                              func (InstrumentationLibrarySpans) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                func (InstrumentationLibrarySpans) InstrumentationLibrary

                                                                                                                                                                                                                                                                                                                                                                                                                func (ms InstrumentationLibrarySpans) InstrumentationLibrary() InstrumentationLibrary

                                                                                                                                                                                                                                                                                                                                                                                                                  InstrumentationLibrary returns the instrumentationlibrary associated with this InstrumentationLibrarySpans.

                                                                                                                                                                                                                                                                                                                                                                                                                  Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                  func (InstrumentationLibrarySpans) Spans

                                                                                                                                                                                                                                                                                                                                                                                                                    Spans returns the Spans associated with this InstrumentationLibrarySpans.

                                                                                                                                                                                                                                                                                                                                                                                                                    Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                    type InstrumentationLibrarySpansSlice

                                                                                                                                                                                                                                                                                                                                                                                                                    type InstrumentationLibrarySpansSlice struct {
                                                                                                                                                                                                                                                                                                                                                                                                                    	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                      InstrumentationLibrarySpansSlice logically represents a slice of InstrumentationLibrarySpans.

                                                                                                                                                                                                                                                                                                                                                                                                                      This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                      Must use NewInstrumentationLibrarySpansSlice function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                      func NewInstrumentationLibrarySpansSlice

                                                                                                                                                                                                                                                                                                                                                                                                                      func NewInstrumentationLibrarySpansSlice() InstrumentationLibrarySpansSlice

                                                                                                                                                                                                                                                                                                                                                                                                                        NewInstrumentationLibrarySpansSlice creates a InstrumentationLibrarySpansSlice with 0 elements. Can use "Resize" to initialize with a given length.

                                                                                                                                                                                                                                                                                                                                                                                                                        func (InstrumentationLibrarySpansSlice) Append

                                                                                                                                                                                                                                                                                                                                                                                                                          Append will increase the length of the InstrumentationLibrarySpansSlice by one and set the given InstrumentationLibrarySpans at that new position. The original InstrumentationLibrarySpans could still be referenced so do not reuse it after passing it to this method.

                                                                                                                                                                                                                                                                                                                                                                                                                          func (InstrumentationLibrarySpansSlice) At

                                                                                                                                                                                                                                                                                                                                                                                                                            At returns the element at the given index.

                                                                                                                                                                                                                                                                                                                                                                                                                            This function is used mostly for iterating over all the values in the slice: for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                            e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                            ... // Do something with the element
                                                                                                                                                                                                                                                                                                                                                                                                                            

                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                            func (InstrumentationLibrarySpansSlice) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                              CopyTo copies all elements from the current slice to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                              func (InstrumentationLibrarySpansSlice) Len

                                                                                                                                                                                                                                                                                                                                                                                                                                Len returns the number of elements in the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                Returns "0" for a newly instance created with "NewInstrumentationLibrarySpansSlice()".

                                                                                                                                                                                                                                                                                                                                                                                                                                func (InstrumentationLibrarySpansSlice) MoveAndAppendTo

                                                                                                                                                                                                                                                                                                                                                                                                                                  MoveAndAppendTo moves all elements from the current slice and appends them to the dest. The current slice will be cleared.

                                                                                                                                                                                                                                                                                                                                                                                                                                  func (InstrumentationLibrarySpansSlice) Resize

                                                                                                                                                                                                                                                                                                                                                                                                                                  func (es InstrumentationLibrarySpansSlice) Resize(newLen int)

                                                                                                                                                                                                                                                                                                                                                                                                                                    Resize is an operation that resizes the slice: 1. If the newLen <= len then equivalent with slice[0:newLen:cap]. 2. If the newLen > len then (newLen - cap) empty elements will be appended to the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                    Here is how a new InstrumentationLibrarySpansSlice can be initialized: es := NewInstrumentationLibrarySpansSlice() es.Resize(4) for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                    e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                    // Here should set all the values for e.
                                                                                                                                                                                                                                                                                                                                                                                                                                    

                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                    type IntDataPoint

                                                                                                                                                                                                                                                                                                                                                                                                                                    type IntDataPoint struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                    	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                      IntDataPoint is a single data point in a timeseries that describes the time-varying values of a scalar int metric.

                                                                                                                                                                                                                                                                                                                                                                                                                                      This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                      Must use NewIntDataPoint function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewIntDataPoint

                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewIntDataPoint() IntDataPoint

                                                                                                                                                                                                                                                                                                                                                                                                                                        NewIntDataPoint creates a new empty IntDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                        This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                                                                                                                                                                                        func (IntDataPoint) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ms IntDataPoint) CopyTo(dest IntDataPoint)

                                                                                                                                                                                                                                                                                                                                                                                                                                          CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                          func (IntDataPoint) Exemplars

                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ms IntDataPoint) Exemplars() IntExemplarSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                            Exemplars returns the Exemplars associated with this IntDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                            Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                            func (IntDataPoint) LabelsMap

                                                                                                                                                                                                                                                                                                                                                                                                                                            func (ms IntDataPoint) LabelsMap() StringMap

                                                                                                                                                                                                                                                                                                                                                                                                                                              LabelsMap returns the Labels associated with this IntDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                              Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                              func (IntDataPoint) SetStartTime

                                                                                                                                                                                                                                                                                                                                                                                                                                              func (ms IntDataPoint) SetStartTime(v TimestampUnixNano)

                                                                                                                                                                                                                                                                                                                                                                                                                                                SetStartTime replaces the starttime associated with this IntDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                                Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                func (IntDataPoint) SetTimestamp

                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ms IntDataPoint) SetTimestamp(v TimestampUnixNano)

                                                                                                                                                                                                                                                                                                                                                                                                                                                  SetTimestamp replaces the timestamp associated with this IntDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                                  Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (IntDataPoint) SetValue

                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (ms IntDataPoint) SetValue(v int64)

                                                                                                                                                                                                                                                                                                                                                                                                                                                    SetValue replaces the value associated with this IntDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                                    Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (IntDataPoint) StartTime

                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ms IntDataPoint) StartTime() TimestampUnixNano

                                                                                                                                                                                                                                                                                                                                                                                                                                                      StartTime returns the starttime associated with this IntDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (IntDataPoint) Timestamp

                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (ms IntDataPoint) Timestamp() TimestampUnixNano

                                                                                                                                                                                                                                                                                                                                                                                                                                                        Timestamp returns the timestamp associated with this IntDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                                        Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (IntDataPoint) Value

                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ms IntDataPoint) Value() int64

                                                                                                                                                                                                                                                                                                                                                                                                                                                          Value returns the value associated with this IntDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                                          Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                          type IntDataPointSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                          type IntDataPointSlice struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                            IntDataPointSlice logically represents a slice of IntDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                                            This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                            Must use NewIntDataPointSlice function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewIntDataPointSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewIntDataPointSlice() IntDataPointSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                              NewIntDataPointSlice creates a IntDataPointSlice with 0 elements. Can use "Resize" to initialize with a given length.

                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (IntDataPointSlice) Append

                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (es IntDataPointSlice) Append(e IntDataPoint)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                Append will increase the length of the IntDataPointSlice by one and set the given IntDataPoint at that new position. The original IntDataPoint could still be referenced so do not reuse it after passing it to this method.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (IntDataPointSlice) At

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  At returns the element at the given index.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  This function is used mostly for iterating over all the values in the slice: for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ... // Do something with the element
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (IntDataPointSlice) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (es IntDataPointSlice) CopyTo(dest IntDataPointSlice)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    CopyTo copies all elements from the current slice to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (IntDataPointSlice) Len

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (es IntDataPointSlice) Len() int

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Len returns the number of elements in the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns "0" for a newly instance created with "NewIntDataPointSlice()".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (IntDataPointSlice) MoveAndAppendTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (es IntDataPointSlice) MoveAndAppendTo(dest IntDataPointSlice)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        MoveAndAppendTo moves all elements from the current slice and appends them to the dest. The current slice will be cleared.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (IntDataPointSlice) Resize

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (es IntDataPointSlice) Resize(newLen int)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Resize is an operation that resizes the slice: 1. If the newLen <= len then equivalent with slice[0:newLen:cap]. 2. If the newLen > len then (newLen - cap) empty elements will be appended to the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Here is how a new IntDataPointSlice can be initialized: es := NewIntDataPointSlice() es.Resize(4) for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          // Here should set all the values for e.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type IntExemplar

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type IntExemplar struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            IntExemplar is a sample input int measurement.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Exemplars also hold information about the environment when the measurement was recorded, for example the span and trace ID of the active span when the exemplar was recorded.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Must use NewIntExemplar function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewIntExemplar

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewIntExemplar() IntExemplar

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              NewIntExemplar creates a new empty IntExemplar.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (IntExemplar) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (ms IntExemplar) CopyTo(dest IntExemplar)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (IntExemplar) FilteredLabels

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ms IntExemplar) FilteredLabels() StringMap

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  FilteredLabels returns the FilteredLabels associated with this IntExemplar.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (IntExemplar) SetTimestamp

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (ms IntExemplar) SetTimestamp(v TimestampUnixNano)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SetTimestamp replaces the timestamp associated with this IntExemplar.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (IntExemplar) SetValue

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ms IntExemplar) SetValue(v int64)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SetValue replaces the value associated with this IntExemplar.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (IntExemplar) Timestamp

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (ms IntExemplar) Timestamp() TimestampUnixNano

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Timestamp returns the timestamp associated with this IntExemplar.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (IntExemplar) Value

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ms IntExemplar) Value() int64

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Value returns the value associated with this IntExemplar.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type IntExemplarSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type IntExemplarSlice struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            IntExemplarSlice logically represents a slice of IntExemplar.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Must use NewIntExemplarSlice function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewIntExemplarSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewIntExemplarSlice() IntExemplarSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              NewIntExemplarSlice creates a IntExemplarSlice with 0 elements. Can use "Resize" to initialize with a given length.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (IntExemplarSlice) Append

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (es IntExemplarSlice) Append(e IntExemplar)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Append will increase the length of the IntExemplarSlice by one and set the given IntExemplar at that new position. The original IntExemplar could still be referenced so do not reuse it after passing it to this method.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (IntExemplarSlice) At

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (es IntExemplarSlice) At(ix int) IntExemplar

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  At returns the element at the given index.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  This function is used mostly for iterating over all the values in the slice: for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ... // Do something with the element
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (IntExemplarSlice) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (es IntExemplarSlice) CopyTo(dest IntExemplarSlice)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    CopyTo copies all elements from the current slice to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (IntExemplarSlice) Len

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (es IntExemplarSlice) Len() int

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Len returns the number of elements in the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns "0" for a newly instance created with "NewIntExemplarSlice()".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (IntExemplarSlice) MoveAndAppendTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (es IntExemplarSlice) MoveAndAppendTo(dest IntExemplarSlice)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        MoveAndAppendTo moves all elements from the current slice and appends them to the dest. The current slice will be cleared.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (IntExemplarSlice) Resize

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (es IntExemplarSlice) Resize(newLen int)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Resize is an operation that resizes the slice: 1. If the newLen <= len then equivalent with slice[0:newLen:cap]. 2. If the newLen > len then (newLen - cap) empty elements will be appended to the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Here is how a new IntExemplarSlice can be initialized: es := NewIntExemplarSlice() es.Resize(4) for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          // Here should set all the values for e.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type IntGauge

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type IntGauge struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            IntGauge represents the type of a int scalar metric that always exports the "current value" for every data point.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Must use NewIntGauge function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewIntGauge

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewIntGauge() IntGauge

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              NewIntGauge creates a new empty IntGauge.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (IntGauge) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (ms IntGauge) CopyTo(dest IntGauge)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (IntGauge) DataPoints

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ms IntGauge) DataPoints() IntDataPointSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  DataPoints returns the DataPoints associated with this IntGauge.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type IntHistogram

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type IntHistogram struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    IntHistogram represents the type of a metric that is calculated by aggregating as a Histogram of all reported double measurements over a time interval.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Must use NewIntHistogram function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func NewIntHistogram

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func NewIntHistogram() IntHistogram

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      NewIntHistogram creates a new empty IntHistogram.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (IntHistogram) AggregationTemporality

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (ms IntHistogram) AggregationTemporality() AggregationTemporality

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        AggregationTemporality returns the aggregationtemporality associated with this IntHistogram.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (IntHistogram) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ms IntHistogram) CopyTo(dest IntHistogram)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (IntHistogram) DataPoints

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ms IntHistogram) DataPoints() IntHistogramDataPointSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            DataPoints returns the DataPoints associated with this IntHistogram.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (IntHistogram) SetAggregationTemporality

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (ms IntHistogram) SetAggregationTemporality(v AggregationTemporality)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SetAggregationTemporality replaces the aggregationtemporality associated with this IntHistogram.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type IntHistogramDataPoint

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type IntHistogramDataPoint struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                IntHistogramDataPoint is a single data point in a timeseries that describes the time-varying values of a Histogram of int values.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Must use NewIntHistogramDataPoint function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func NewIntHistogramDataPoint

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func NewIntHistogramDataPoint() IntHistogramDataPoint

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NewIntHistogramDataPoint creates a new empty IntHistogramDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (IntHistogramDataPoint) BucketCounts

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (ms IntHistogramDataPoint) BucketCounts() []uint64

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    BucketCounts returns the bucketcounts associated with this IntHistogramDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (IntHistogramDataPoint) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (IntHistogramDataPoint) Count

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (ms IntHistogramDataPoint) Count() uint64

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Count returns the count associated with this IntHistogramDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (IntHistogramDataPoint) Exemplars

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ms IntHistogramDataPoint) Exemplars() IntExemplarSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Exemplars returns the Exemplars associated with this IntHistogramDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (IntHistogramDataPoint) ExplicitBounds

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ms IntHistogramDataPoint) ExplicitBounds() []float64

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ExplicitBounds returns the explicitbounds associated with this IntHistogramDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (IntHistogramDataPoint) LabelsMap

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (ms IntHistogramDataPoint) LabelsMap() StringMap

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              LabelsMap returns the Labels associated with this IntHistogramDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (IntHistogramDataPoint) SetBucketCounts

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (ms IntHistogramDataPoint) SetBucketCounts(v []uint64)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SetBucketCounts replaces the bucketcounts associated with this IntHistogramDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (IntHistogramDataPoint) SetCount

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ms IntHistogramDataPoint) SetCount(v uint64)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SetCount replaces the count associated with this IntHistogramDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (IntHistogramDataPoint) SetExplicitBounds

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (ms IntHistogramDataPoint) SetExplicitBounds(v []float64)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SetExplicitBounds replaces the explicitbounds associated with this IntHistogramDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (IntHistogramDataPoint) SetStartTime

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ms IntHistogramDataPoint) SetStartTime(v TimestampUnixNano)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SetStartTime replaces the starttime associated with this IntHistogramDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (IntHistogramDataPoint) SetSum

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (ms IntHistogramDataPoint) SetSum(v int64)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SetSum replaces the sum associated with this IntHistogramDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (IntHistogramDataPoint) SetTimestamp

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ms IntHistogramDataPoint) SetTimestamp(v TimestampUnixNano)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SetTimestamp replaces the timestamp associated with this IntHistogramDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (IntHistogramDataPoint) StartTime

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            StartTime returns the starttime associated with this IntHistogramDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (IntHistogramDataPoint) Sum

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (ms IntHistogramDataPoint) Sum() int64

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Sum returns the sum associated with this IntHistogramDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (IntHistogramDataPoint) Timestamp

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Timestamp returns the timestamp associated with this IntHistogramDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type IntHistogramDataPointSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type IntHistogramDataPointSlice struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  IntHistogramDataPointSlice logically represents a slice of IntHistogramDataPoint.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Must use NewIntHistogramDataPointSlice function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewIntHistogramDataPointSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewIntHistogramDataPointSlice() IntHistogramDataPointSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    NewIntHistogramDataPointSlice creates a IntHistogramDataPointSlice with 0 elements. Can use "Resize" to initialize with a given length.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (IntHistogramDataPointSlice) Append

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Append will increase the length of the IntHistogramDataPointSlice by one and set the given IntHistogramDataPoint at that new position. The original IntHistogramDataPoint could still be referenced so do not reuse it after passing it to this method.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (IntHistogramDataPointSlice) At

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        At returns the element at the given index.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        This function is used mostly for iterating over all the values in the slice: for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ... // Do something with the element
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (IntHistogramDataPointSlice) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          CopyTo copies all elements from the current slice to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (IntHistogramDataPointSlice) Len

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Len returns the number of elements in the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns "0" for a newly instance created with "NewIntHistogramDataPointSlice()".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (IntHistogramDataPointSlice) MoveAndAppendTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (es IntHistogramDataPointSlice) MoveAndAppendTo(dest IntHistogramDataPointSlice)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              MoveAndAppendTo moves all elements from the current slice and appends them to the dest. The current slice will be cleared.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (IntHistogramDataPointSlice) Resize

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (es IntHistogramDataPointSlice) Resize(newLen int)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Resize is an operation that resizes the slice: 1. If the newLen <= len then equivalent with slice[0:newLen:cap]. 2. If the newLen > len then (newLen - cap) empty elements will be appended to the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Here is how a new IntHistogramDataPointSlice can be initialized: es := NewIntHistogramDataPointSlice() es.Resize(4) for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                // Here should set all the values for e.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type IntSum

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type IntSum struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  IntSum represents the type of a numeric int scalar metric that is calculated as a sum of all reported measurements over a time interval.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Must use NewIntSum function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewIntSum

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewIntSum() IntSum

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    NewIntSum creates a new empty IntSum.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (IntSum) AggregationTemporality

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ms IntSum) AggregationTemporality() AggregationTemporality

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      AggregationTemporality returns the aggregationtemporality associated with this IntSum.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (IntSum) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (ms IntSum) CopyTo(dest IntSum)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (IntSum) DataPoints

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ms IntSum) DataPoints() IntDataPointSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          DataPoints returns the DataPoints associated with this IntSum.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (IntSum) IsMonotonic

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ms IntSum) IsMonotonic() bool

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            IsMonotonic returns the ismonotonic associated with this IntSum.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (IntSum) SetAggregationTemporality

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (ms IntSum) SetAggregationTemporality(v AggregationTemporality)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SetAggregationTemporality replaces the aggregationtemporality associated with this IntSum.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (IntSum) SetIsMonotonic

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (ms IntSum) SetIsMonotonic(v bool)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SetIsMonotonic replaces the ismonotonic associated with this IntSum.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type LogRecord

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type LogRecord struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Must use NewLogRecord function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewLogRecord

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewLogRecord() LogRecord

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    NewLogRecord creates a new empty LogRecord.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (LogRecord) Attributes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ms LogRecord) Attributes() AttributeMap

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Attributes returns the Attributes associated with this LogRecord.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (LogRecord) Body

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (ms LogRecord) Body() AttributeValue

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Body returns the body associated with this LogRecord.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (LogRecord) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ms LogRecord) CopyTo(dest LogRecord)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (LogRecord) DroppedAttributesCount

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ms LogRecord) DroppedAttributesCount() uint32

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            DroppedAttributesCount returns the droppedattributescount associated with this LogRecord.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (LogRecord) Flags

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (ms LogRecord) Flags() uint32

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Flags returns the flags associated with this LogRecord.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (LogRecord) Name

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (ms LogRecord) Name() string

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Name returns the name associated with this LogRecord.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (LogRecord) SetDroppedAttributesCount

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ms LogRecord) SetDroppedAttributesCount(v uint32)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SetDroppedAttributesCount replaces the droppedattributescount associated with this LogRecord.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (LogRecord) SetFlags

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (ms LogRecord) SetFlags(v uint32)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SetFlags replaces the flags associated with this LogRecord.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (LogRecord) SetName

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ms LogRecord) SetName(v string)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SetName replaces the name associated with this LogRecord.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (LogRecord) SetSeverityNumber

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (ms LogRecord) SetSeverityNumber(v SeverityNumber)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SetSeverityNumber replaces the severitynumber associated with this LogRecord.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (LogRecord) SetSeverityText

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ms LogRecord) SetSeverityText(v string)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SetSeverityText replaces the severitytext associated with this LogRecord.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (LogRecord) SetSpanID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ms LogRecord) SetSpanID(v SpanID)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SetSpanID replaces the spanid associated with this LogRecord.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (LogRecord) SetTimestamp

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (ms LogRecord) SetTimestamp(v TimestampUnixNano)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SetTimestamp replaces the timestamp associated with this LogRecord.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (LogRecord) SetTraceID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (ms LogRecord) SetTraceID(v TraceID)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SetTraceID replaces the traceid associated with this LogRecord.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (LogRecord) SeverityNumber

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ms LogRecord) SeverityNumber() SeverityNumber

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SeverityNumber returns the severitynumber associated with this LogRecord.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (LogRecord) SeverityText

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (ms LogRecord) SeverityText() string

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SeverityText returns the severitytext associated with this LogRecord.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (LogRecord) SpanID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ms LogRecord) SpanID() SpanID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SpanID returns the spanid associated with this LogRecord.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (LogRecord) Timestamp

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (ms LogRecord) Timestamp() TimestampUnixNano

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Timestamp returns the timestamp associated with this LogRecord.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (LogRecord) TraceID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ms LogRecord) TraceID() TraceID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          TraceID returns the traceid associated with this LogRecord.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type LogSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type LogSlice struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            LogSlice logically represents a slice of LogRecord.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Must use NewLogSlice function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewLogSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewLogSlice() LogSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              NewLogSlice creates a LogSlice with 0 elements. Can use "Resize" to initialize with a given length.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (LogSlice) Append

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (es LogSlice) Append(e LogRecord)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Append will increase the length of the LogSlice by one and set the given LogRecord at that new position. The original LogRecord could still be referenced so do not reuse it after passing it to this method.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (LogSlice) At

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (es LogSlice) At(ix int) LogRecord

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  At returns the element at the given index.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  This function is used mostly for iterating over all the values in the slice: for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ... // Do something with the element
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (LogSlice) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (es LogSlice) CopyTo(dest LogSlice)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    CopyTo copies all elements from the current slice to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (LogSlice) Len

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (es LogSlice) Len() int

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Len returns the number of elements in the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns "0" for a newly instance created with "NewLogSlice()".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (LogSlice) MoveAndAppendTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (es LogSlice) MoveAndAppendTo(dest LogSlice)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        MoveAndAppendTo moves all elements from the current slice and appends them to the dest. The current slice will be cleared.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (LogSlice) Resize

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (es LogSlice) Resize(newLen int)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Resize is an operation that resizes the slice: 1. If the newLen <= len then equivalent with slice[0:newLen:cap]. 2. If the newLen > len then (newLen - cap) empty elements will be appended to the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Here is how a new LogSlice can be initialized: es := NewLogSlice() es.Resize(4) for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          // Here should set all the values for e.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type Logs

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type Logs struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Logs is the top-level struct that is propagated through the logs pipeline.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            This is a reference type (like builtin map).

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Must use NewLogs functions to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func LogsFromInternalRep

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func LogsFromInternalRep(logs internal.OtlpLogsWrapper) Logs

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              LogsFromInternalRep creates the internal Logs representation from the ProtoBuf. Should not be used outside this module. This is intended to be used only by OTLP exporter and File exporter, which legitimately need to work with OTLP Protobuf structs.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func NewLogs

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func NewLogs() Logs

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                NewLogs creates a new Logs.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (Logs) Clone

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ld Logs) Clone() Logs

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Clone returns a copy of Logs.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (Logs) FromOtlpProtoBytes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (ld Logs) FromOtlpProtoBytes(data []byte) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    FromOtlpProtoBytes converts OTLP Collector ExportLogsServiceRequest ProtoBuf bytes to the internal Logs. Overrides current data. Calling this function on zero-initialized structure causes panic. Use it with NewLogs or on existing initialized Logs.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (Logs) InternalRep

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ld Logs) InternalRep() internal.OtlpLogsWrapper

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      InternalRep returns internal representation of the logs. Should not be used outside this module. This is intended to be used only by OTLP exporter and File exporter, which legitimately need to work with OTLP Protobuf structs.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (Logs) LogRecordCount

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (ld Logs) LogRecordCount() int

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        LogRecordCount calculates the total number of log records.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (Logs) ResourceLogs

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ld Logs) ResourceLogs() ResourceLogsSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (Logs) SizeBytes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ld Logs) SizeBytes() int

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SizeBytes returns the number of bytes in the internal representation of the logs.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (Logs) ToOtlpProtoBytes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ld Logs) ToOtlpProtoBytes() ([]byte, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ToOtlpProtoBytes returns the internal Logs to OTLP Collector ExportTraceServiceRequest ProtoBuf bytes. This is intended to export OTLP Protobuf bytes for OTLP/HTTP transports.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type Metric

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type Metric struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Metric represents one metric as a collection of datapoints. See Metric definition in OTLP: https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/metrics/v1/metrics.proto

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Must use NewMetric function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func NewMetric

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func NewMetric() Metric

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                NewMetric creates a new empty Metric.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (Metric) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ms Metric) CopyTo(dest Metric)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (Metric) DataType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (ms Metric) DataType() MetricDataType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    DataType returns the type of the data for this Metric. Calling this function on zero-initialized Metric will cause a panic.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (Metric) Description

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ms Metric) Description() string

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Description returns the description associated with this Metric.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (Metric) DoubleGauge

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (ms Metric) DoubleGauge() DoubleGauge

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        DoubleGauge returns the data as DoubleGauge. Calling this function when DataType() != MetricDataTypeDoubleGauge will cause a panic. Calling this function on zero-initialized Metric will cause a panic.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (Metric) DoubleHistogram

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ms Metric) DoubleHistogram() DoubleHistogram

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          DoubleHistogram returns the data as DoubleHistogram. Calling this function when DataType() != MetricDataTypeDoubleHistogram will cause a panic. Calling this function on zero-initialized Metric will cause a panic.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (Metric) DoubleSum

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ms Metric) DoubleSum() DoubleSum

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            DoubleSum returns the data as DoubleSum. Calling this function when DataType() != MetricDataTypeDoubleSum will cause a panic. Calling this function on zero-initialized Metric will cause a panic.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (Metric) DoubleSummary

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (ms Metric) DoubleSummary() DoubleSummary

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              DoubleSummary returns the data as DoubleSummary. Calling this function when DataType() != MetricDataTypeDoubleSummary will cause a panic. Calling this function on zero-initialized Metric will cause a panic.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (Metric) IntGauge

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (ms Metric) IntGauge() IntGauge

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                IntGauge returns the data as IntGauge. Calling this function when DataType() != MetricDataTypeIntGauge will cause a panic. Calling this function on zero-initialized Metric will cause a panic.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (Metric) IntHistogram

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ms Metric) IntHistogram() IntHistogram

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  IntHistogram returns the data as IntHistogram. Calling this function when DataType() != MetricDataTypeIntHistogram will cause a panic. Calling this function on zero-initialized Metric will cause a panic.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (Metric) IntSum

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (ms Metric) IntSum() IntSum

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    IntSum returns the data as IntSum. Calling this function when DataType() != MetricDataTypeIntSum will cause a panic. Calling this function on zero-initialized Metric will cause a panic.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (Metric) Name

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ms Metric) Name() string

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Name returns the name associated with this Metric.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (Metric) SetDataType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (ms Metric) SetDataType(ty MetricDataType)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SetDataType clears any existing data and initialize it with an empty data of the given type. Calling this function on zero-initialized Metric will cause a panic.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (Metric) SetDescription

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ms Metric) SetDescription(v string)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SetDescription replaces the description associated with this Metric.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (Metric) SetName

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ms Metric) SetName(v string)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SetName replaces the name associated with this Metric.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (Metric) SetUnit

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (ms Metric) SetUnit(v string)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SetUnit replaces the unit associated with this Metric.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (Metric) Unit

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (ms Metric) Unit() string

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Unit returns the unit associated with this Metric.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type MetricDataType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type MetricDataType int

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  MetricDataType specifies the type of data in a Metric.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  const (
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	MetricDataTypeNone MetricDataType = iota
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	MetricDataTypeIntGauge
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	MetricDataTypeDoubleGauge
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	MetricDataTypeIntSum
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	MetricDataTypeDoubleSum
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	MetricDataTypeIntHistogram
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	MetricDataTypeDoubleHistogram
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	MetricDataTypeDoubleSummary
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  )

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (MetricDataType) String

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (mdt MetricDataType) String() string

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type MetricSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type MetricSlice struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    MetricSlice logically represents a slice of Metric.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Must use NewMetricSlice function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func NewMetricSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func NewMetricSlice() MetricSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      NewMetricSlice creates a MetricSlice with 0 elements. Can use "Resize" to initialize with a given length.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (MetricSlice) Append

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (es MetricSlice) Append(e Metric)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Append will increase the length of the MetricSlice by one and set the given Metric at that new position. The original Metric could still be referenced so do not reuse it after passing it to this method.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (MetricSlice) At

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (es MetricSlice) At(ix int) Metric

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          At returns the element at the given index.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          This function is used mostly for iterating over all the values in the slice: for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ... // Do something with the element
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (MetricSlice) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (es MetricSlice) CopyTo(dest MetricSlice)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            CopyTo copies all elements from the current slice to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (MetricSlice) Len

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (es MetricSlice) Len() int

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Len returns the number of elements in the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns "0" for a newly instance created with "NewMetricSlice()".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (MetricSlice) MoveAndAppendTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (es MetricSlice) MoveAndAppendTo(dest MetricSlice)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                MoveAndAppendTo moves all elements from the current slice and appends them to the dest. The current slice will be cleared.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (MetricSlice) Resize

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (es MetricSlice) Resize(newLen int)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Resize is an operation that resizes the slice: 1. If the newLen <= len then equivalent with slice[0:newLen:cap]. 2. If the newLen > len then (newLen - cap) empty elements will be appended to the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Here is how a new MetricSlice can be initialized: es := NewMetricSlice() es.Resize(4) for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  // Here should set all the values for e.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type Metrics

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type Metrics struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Metrics is an opaque interface that allows transition to the new internal Metrics data, but also facilitate the transition to the new components especially for traces.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Outside of the core repository the metrics pipeline cannot be converted to the new model since data.MetricData is part of the internal package.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func MetricsFromOtlp

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func MetricsFromOtlp(orig []*otlpmetrics.ResourceMetrics) Metrics

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      MetricsFromOtlp creates the internal Metrics representation from the OTLP.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewMetrics

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewMetrics() Metrics

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NewMetrics creates a new Metrics.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (Metrics) Clone

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (md Metrics) Clone() Metrics

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Clone returns a copy of MetricData.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (Metrics) FromOtlpProtoBytes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (md Metrics) FromOtlpProtoBytes(data []byte) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            FromOtlpProtoBytes converts OTLP Collector ExportMetricsServiceRequest ProtoBuf bytes to the internal Metrics. Overrides current data. Calling this function on zero-initialized structure causes panic. Use it with NewMetrics or on existing initialized Metrics.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (Metrics) MetricAndDataPointCount

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (md Metrics) MetricAndDataPointCount() (metricCount int, dataPointCount int)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              MetricAndDataPointCount calculates the total number of metrics and data points.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (Metrics) MetricCount

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (md Metrics) MetricCount() int

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                MetricCount calculates the total number of metrics.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (Metrics) ResourceMetrics

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (md Metrics) ResourceMetrics() ResourceMetricsSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (Metrics) Size

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (md Metrics) Size() int

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Size returns size in bytes.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (Metrics) ToOtlpProtoBytes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (md Metrics) ToOtlpProtoBytes() ([]byte, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ToOtlpProtoBytes returns the internal MetricData to the OTLP Collector ExportMetricsServiceRequest ProtoBuf bytes. This is intended to export OTLP Protobuf bytes for OTLP/HTTP transports.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type Resource

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type Resource struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Resource information.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Must use NewResource function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewResource

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewResource() Resource

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NewResource creates a new empty Resource.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (Resource) Attributes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ms Resource) Attributes() AttributeMap

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Attributes returns the Attributes associated with this Resource.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (Resource) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ms Resource) CopyTo(dest Resource)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type ResourceLogs

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type ResourceLogs struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ResourceLogs is a collection of logs from a Resource.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Must use NewResourceLogs function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func NewResourceLogs

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func NewResourceLogs() ResourceLogs

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                NewResourceLogs creates a new empty ResourceLogs.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ResourceLogs) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ms ResourceLogs) CopyTo(dest ResourceLogs)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (ResourceLogs) InstrumentationLibraryLogs

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (ms ResourceLogs) InstrumentationLibraryLogs() InstrumentationLibraryLogsSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    InstrumentationLibraryLogs returns the InstrumentationLibraryLogs associated with this ResourceLogs.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ResourceLogs) Resource

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ms ResourceLogs) Resource() Resource

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Resource returns the resource associated with this ResourceLogs.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type ResourceLogsSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type ResourceLogsSlice struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ResourceLogsSlice logically represents a slice of ResourceLogs.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Must use NewResourceLogsSlice function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func NewResourceLogsSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func NewResourceLogsSlice() ResourceLogsSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NewResourceLogsSlice creates a ResourceLogsSlice with 0 elements. Can use "Resize" to initialize with a given length.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ResourceLogsSlice) Append

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (es ResourceLogsSlice) Append(e ResourceLogs)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Append will increase the length of the ResourceLogsSlice by one and set the given ResourceLogs at that new position. The original ResourceLogs could still be referenced so do not reuse it after passing it to this method.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (ResourceLogsSlice) At

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              At returns the element at the given index.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              This function is used mostly for iterating over all the values in the slice: for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ... // Do something with the element
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (ResourceLogsSlice) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (es ResourceLogsSlice) CopyTo(dest ResourceLogsSlice)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                CopyTo copies all elements from the current slice to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ResourceLogsSlice) Len

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (es ResourceLogsSlice) Len() int

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Len returns the number of elements in the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns "0" for a newly instance created with "NewResourceLogsSlice()".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (ResourceLogsSlice) MoveAndAppendTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (es ResourceLogsSlice) MoveAndAppendTo(dest ResourceLogsSlice)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    MoveAndAppendTo moves all elements from the current slice and appends them to the dest. The current slice will be cleared.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ResourceLogsSlice) Resize

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (es ResourceLogsSlice) Resize(newLen int)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Resize is an operation that resizes the slice: 1. If the newLen <= len then equivalent with slice[0:newLen:cap]. 2. If the newLen > len then (newLen - cap) empty elements will be appended to the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Here is how a new ResourceLogsSlice can be initialized: es := NewResourceLogsSlice() es.Resize(4) for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      // Here should set all the values for e.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type ResourceMetrics

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type ResourceMetrics struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        InstrumentationLibraryMetrics is a collection of metrics from a LibraryInstrumentation.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Must use NewResourceMetrics function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func NewResourceMetrics

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func NewResourceMetrics() ResourceMetrics

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NewResourceMetrics creates a new empty ResourceMetrics.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ResourceMetrics) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ms ResourceMetrics) CopyTo(dest ResourceMetrics)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (ResourceMetrics) InstrumentationLibraryMetrics

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (ms ResourceMetrics) InstrumentationLibraryMetrics() InstrumentationLibraryMetricsSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              InstrumentationLibraryMetrics returns the InstrumentationLibraryMetrics associated with this ResourceMetrics.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (ResourceMetrics) Resource

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (ms ResourceMetrics) Resource() Resource

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Resource returns the resource associated with this ResourceMetrics.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type ResourceMetricsSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type ResourceMetricsSlice struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ResourceMetricsSlice logically represents a slice of ResourceMetrics.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Must use NewResourceMetricsSlice function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewResourceMetricsSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewResourceMetricsSlice() ResourceMetricsSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    NewResourceMetricsSlice creates a ResourceMetricsSlice with 0 elements. Can use "Resize" to initialize with a given length.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ResourceMetricsSlice) Append

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Append will increase the length of the ResourceMetricsSlice by one and set the given ResourceMetrics at that new position. The original ResourceMetrics could still be referenced so do not reuse it after passing it to this method.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (ResourceMetricsSlice) At

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        At returns the element at the given index.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        This function is used mostly for iterating over all the values in the slice: for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ... // Do something with the element
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ResourceMetricsSlice) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          CopyTo copies all elements from the current slice to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ResourceMetricsSlice) Len

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (es ResourceMetricsSlice) Len() int

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Len returns the number of elements in the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns "0" for a newly instance created with "NewResourceMetricsSlice()".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (ResourceMetricsSlice) MoveAndAppendTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (es ResourceMetricsSlice) MoveAndAppendTo(dest ResourceMetricsSlice)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              MoveAndAppendTo moves all elements from the current slice and appends them to the dest. The current slice will be cleared.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (ResourceMetricsSlice) Resize

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (es ResourceMetricsSlice) Resize(newLen int)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Resize is an operation that resizes the slice: 1. If the newLen <= len then equivalent with slice[0:newLen:cap]. 2. If the newLen > len then (newLen - cap) empty elements will be appended to the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Here is how a new ResourceMetricsSlice can be initialized: es := NewResourceMetricsSlice() es.Resize(4) for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                // Here should set all the values for e.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type ResourceSpans

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type ResourceSpans struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  InstrumentationLibrarySpans is a collection of spans from a LibraryInstrumentation.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Must use NewResourceSpans function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewResourceSpans

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewResourceSpans() ResourceSpans

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    NewResourceSpans creates a new empty ResourceSpans.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ResourceSpans) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ms ResourceSpans) CopyTo(dest ResourceSpans)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (ResourceSpans) InstrumentationLibrarySpans

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (ms ResourceSpans) InstrumentationLibrarySpans() InstrumentationLibrarySpansSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        InstrumentationLibrarySpans returns the InstrumentationLibrarySpans associated with this ResourceSpans.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ResourceSpans) Resource

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ms ResourceSpans) Resource() Resource

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Resource returns the resource associated with this ResourceSpans.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type ResourceSpansSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type ResourceSpansSlice struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ResourceSpansSlice logically represents a slice of ResourceSpans.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Must use NewResourceSpansSlice function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewResourceSpansSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewResourceSpansSlice() ResourceSpansSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              NewResourceSpansSlice creates a ResourceSpansSlice with 0 elements. Can use "Resize" to initialize with a given length.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (ResourceSpansSlice) Append

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (es ResourceSpansSlice) Append(e ResourceSpans)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Append will increase the length of the ResourceSpansSlice by one and set the given ResourceSpans at that new position. The original ResourceSpans could still be referenced so do not reuse it after passing it to this method.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ResourceSpansSlice) At

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  At returns the element at the given index.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  This function is used mostly for iterating over all the values in the slice: for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ... // Do something with the element
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (ResourceSpansSlice) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (es ResourceSpansSlice) CopyTo(dest ResourceSpansSlice)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    CopyTo copies all elements from the current slice to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ResourceSpansSlice) Len

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (es ResourceSpansSlice) Len() int

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Len returns the number of elements in the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns "0" for a newly instance created with "NewResourceSpansSlice()".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (ResourceSpansSlice) MoveAndAppendTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (es ResourceSpansSlice) MoveAndAppendTo(dest ResourceSpansSlice)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        MoveAndAppendTo moves all elements from the current slice and appends them to the dest. The current slice will be cleared.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ResourceSpansSlice) Resize

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (es ResourceSpansSlice) Resize(newLen int)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Resize is an operation that resizes the slice: 1. If the newLen <= len then equivalent with slice[0:newLen:cap]. 2. If the newLen > len then (newLen - cap) empty elements will be appended to the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Here is how a new ResourceSpansSlice can be initialized: es := NewResourceSpansSlice() es.Resize(4) for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          // Here should set all the values for e.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type SeverityNumber

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type SeverityNumber otlplogs.SeverityNumber

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SeverityNumber is the public alias of otlplogs.SeverityNumber from internal package.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type Span

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type Span struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Span represents a single operation within a trace. See Span definition in OTLP: https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/trace/v1/trace.proto#L37

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Must use NewSpan function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func NewSpan

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func NewSpan() Span

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                NewSpan creates a new empty Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (Span) Attributes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ms Span) Attributes() AttributeMap

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Attributes returns the Attributes associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (Span) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (ms Span) CopyTo(dest Span)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (Span) DroppedAttributesCount

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ms Span) DroppedAttributesCount() uint32

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      DroppedAttributesCount returns the droppedattributescount associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (Span) DroppedEventsCount

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (ms Span) DroppedEventsCount() uint32

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        DroppedEventsCount returns the droppedeventscount associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (Span) DroppedLinksCount

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ms Span) DroppedLinksCount() uint32

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          DroppedLinksCount returns the droppedlinkscount associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (Span) EndTime

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ms Span) EndTime() TimestampUnixNano

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            EndTime returns the endtime associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (Span) Events

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (ms Span) Events() SpanEventSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Events returns the Events associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (Span) Kind

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (ms Span) Kind() SpanKind

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Kind returns the kind associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ms Span) Links() SpanLinkSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Links returns the Links associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (Span) Name

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (ms Span) Name() string

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Name returns the name associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (Span) ParentSpanID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ms Span) ParentSpanID() SpanID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ParentSpanID returns the parentspanid associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (Span) SetDroppedAttributesCount

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (ms Span) SetDroppedAttributesCount(v uint32)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SetDroppedAttributesCount replaces the droppedattributescount associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (Span) SetDroppedEventsCount

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ms Span) SetDroppedEventsCount(v uint32)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SetDroppedEventsCount replaces the droppedeventscount associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (Span) SetDroppedLinksCount

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ms Span) SetDroppedLinksCount(v uint32)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SetDroppedLinksCount replaces the droppedlinkscount associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (Span) SetEndTime

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (ms Span) SetEndTime(v TimestampUnixNano)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SetEndTime replaces the endtime associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (Span) SetKind

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (ms Span) SetKind(v SpanKind)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SetKind replaces the kind associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (Span) SetName

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ms Span) SetName(v string)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SetName replaces the name associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (Span) SetParentSpanID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (ms Span) SetParentSpanID(v SpanID)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SetParentSpanID replaces the parentspanid associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (Span) SetSpanID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ms Span) SetSpanID(v SpanID)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SetSpanID replaces the spanid associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (Span) SetStartTime

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (ms Span) SetStartTime(v TimestampUnixNano)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SetStartTime replaces the starttime associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (Span) SetTraceID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ms Span) SetTraceID(v TraceID)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SetTraceID replaces the traceid associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (Span) SetTraceState

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ms Span) SetTraceState(v TraceState)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SetTraceState replaces the tracestate associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (Span) SpanID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (ms Span) SpanID() SpanID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SpanID returns the spanid associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (Span) StartTime

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (ms Span) StartTime() TimestampUnixNano

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                StartTime returns the starttime associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (Span) Status

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ms Span) Status() SpanStatus

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Status returns the status associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (Span) TraceID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (ms Span) TraceID() TraceID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    TraceID returns the traceid associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (Span) TraceState

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ms Span) TraceState() TraceState

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      TraceState returns the tracestate associated with this Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type SpanEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type SpanEvent struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SpanEvent is a time-stamped annotation of the span, consisting of user-supplied text description and key-value pairs. See OTLP for event definition.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Must use NewSpanEvent function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func NewSpanEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func NewSpanEvent() SpanEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NewSpanEvent creates a new empty SpanEvent.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (SpanEvent) Attributes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ms SpanEvent) Attributes() AttributeMap

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Attributes returns the Attributes associated with this SpanEvent.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (SpanEvent) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (ms SpanEvent) CopyTo(dest SpanEvent)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (SpanEvent) DroppedAttributesCount

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (ms SpanEvent) DroppedAttributesCount() uint32

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                DroppedAttributesCount returns the droppedattributescount associated with this SpanEvent.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (SpanEvent) Name

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ms SpanEvent) Name() string

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Name returns the name associated with this SpanEvent.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (SpanEvent) SetDroppedAttributesCount

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (ms SpanEvent) SetDroppedAttributesCount(v uint32)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SetDroppedAttributesCount replaces the droppedattributescount associated with this SpanEvent.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (SpanEvent) SetName

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ms SpanEvent) SetName(v string)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SetName replaces the name associated with this SpanEvent.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (SpanEvent) SetTimestamp

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (ms SpanEvent) SetTimestamp(v TimestampUnixNano)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SetTimestamp replaces the timestamp associated with this SpanEvent.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (SpanEvent) Timestamp

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ms SpanEvent) Timestamp() TimestampUnixNano

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Timestamp returns the timestamp associated with this SpanEvent.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type SpanEventSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type SpanEventSlice struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SpanEventSlice logically represents a slice of SpanEvent.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Must use NewSpanEventSlice function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewSpanEventSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewSpanEventSlice() SpanEventSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              NewSpanEventSlice creates a SpanEventSlice with 0 elements. Can use "Resize" to initialize with a given length.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (SpanEventSlice) Append

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (es SpanEventSlice) Append(e SpanEvent)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Append will increase the length of the SpanEventSlice by one and set the given SpanEvent at that new position. The original SpanEvent could still be referenced so do not reuse it after passing it to this method.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (SpanEventSlice) At

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (es SpanEventSlice) At(ix int) SpanEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  At returns the element at the given index.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  This function is used mostly for iterating over all the values in the slice: for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ... // Do something with the element
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (SpanEventSlice) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (es SpanEventSlice) CopyTo(dest SpanEventSlice)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    CopyTo copies all elements from the current slice to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (SpanEventSlice) Len

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (es SpanEventSlice) Len() int

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Len returns the number of elements in the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns "0" for a newly instance created with "NewSpanEventSlice()".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (SpanEventSlice) MoveAndAppendTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (es SpanEventSlice) MoveAndAppendTo(dest SpanEventSlice)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        MoveAndAppendTo moves all elements from the current slice and appends them to the dest. The current slice will be cleared.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (SpanEventSlice) Resize

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (es SpanEventSlice) Resize(newLen int)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Resize is an operation that resizes the slice: 1. If the newLen <= len then equivalent with slice[0:newLen:cap]. 2. If the newLen > len then (newLen - cap) empty elements will be appended to the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Here is how a new SpanEventSlice can be initialized: es := NewSpanEventSlice() es.Resize(4) for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          // Here should set all the values for e.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type SpanID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type SpanID data.SpanID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SpanID is an alias of OTLP SpanID data type.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func InvalidSpanID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func InvalidSpanID() SpanID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewSpanID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewSpanID(bytes [8]byte) SpanID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (SpanID) Bytes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (t SpanID) Bytes() [8]byte

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Bytes returns the byte array representation of the SpanID.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (SpanID) HexString

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (t SpanID) HexString() string

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                HexString returns hex representation of the SpanID.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (SpanID) IsEmpty

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (t SpanID) IsEmpty() bool

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  IsEmpty returns true if id doesn't contain at least one non-zero byte.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (SpanID) IsValid

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (t SpanID) IsValid() bool

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    IsValid returns true if id contains at leas one non-zero byte. Deprecated: use !IsEmpty() instead.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type SpanKind

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type SpanKind otlptrace.Span_SpanKind

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (SpanKind) String

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (sk SpanKind) String() string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type SpanLink struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SpanLink is a pointer from the current span to another span in the same trace or in a different trace. See OTLP for link definition.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Must use NewSpanLink function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewSpanLink() SpanLink

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NewSpanLink creates a new empty SpanLink.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (SpanLink) Attributes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ms SpanLink) Attributes() AttributeMap

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Attributes returns the Attributes associated with this SpanLink.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (SpanLink) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ms SpanLink) CopyTo(dest SpanLink)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (SpanLink) DroppedAttributesCount

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (ms SpanLink) DroppedAttributesCount() uint32

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              DroppedAttributesCount returns the droppedattributescount associated with this SpanLink.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (SpanLink) SetDroppedAttributesCount

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (ms SpanLink) SetDroppedAttributesCount(v uint32)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SetDroppedAttributesCount replaces the droppedattributescount associated with this SpanLink.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (SpanLink) SetSpanID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ms SpanLink) SetSpanID(v SpanID)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SetSpanID replaces the spanid associated with this SpanLink.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (SpanLink) SetTraceID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (ms SpanLink) SetTraceID(v TraceID)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SetTraceID replaces the traceid associated with this SpanLink.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (SpanLink) SetTraceState

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ms SpanLink) SetTraceState(v TraceState)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SetTraceState replaces the tracestate associated with this SpanLink.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (SpanLink) SpanID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (ms SpanLink) SpanID() SpanID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SpanID returns the spanid associated with this SpanLink.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (SpanLink) TraceID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ms SpanLink) TraceID() TraceID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          TraceID returns the traceid associated with this SpanLink.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (SpanLink) TraceState

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ms SpanLink) TraceState() TraceState

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            TraceState returns the tracestate associated with this SpanLink.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type SpanLinkSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type SpanLinkSlice struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SpanLinkSlice logically represents a slice of SpanLink.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Must use NewSpanLinkSlice function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func NewSpanLinkSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func NewSpanLinkSlice() SpanLinkSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                NewSpanLinkSlice creates a SpanLinkSlice with 0 elements. Can use "Resize" to initialize with a given length.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (SpanLinkSlice) Append

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (es SpanLinkSlice) Append(e SpanLink)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Append will increase the length of the SpanLinkSlice by one and set the given SpanLink at that new position. The original SpanLink could still be referenced so do not reuse it after passing it to this method.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (SpanLinkSlice) At

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (es SpanLinkSlice) At(ix int) SpanLink

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    At returns the element at the given index.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    This function is used mostly for iterating over all the values in the slice: for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ... // Do something with the element
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (SpanLinkSlice) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (es SpanLinkSlice) CopyTo(dest SpanLinkSlice)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      CopyTo copies all elements from the current slice to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (SpanLinkSlice) Len

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (es SpanLinkSlice) Len() int

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Len returns the number of elements in the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Returns "0" for a newly instance created with "NewSpanLinkSlice()".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (SpanLinkSlice) MoveAndAppendTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (es SpanLinkSlice) MoveAndAppendTo(dest SpanLinkSlice)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          MoveAndAppendTo moves all elements from the current slice and appends them to the dest. The current slice will be cleared.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (SpanLinkSlice) Resize

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (es SpanLinkSlice) Resize(newLen int)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Resize is an operation that resizes the slice: 1. If the newLen <= len then equivalent with slice[0:newLen:cap]. 2. If the newLen > len then (newLen - cap) empty elements will be appended to the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Here is how a new SpanLinkSlice can be initialized: es := NewSpanLinkSlice() es.Resize(4) for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            // Here should set all the values for e.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type SpanSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type SpanSlice struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SpanSlice logically represents a slice of Span.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Must use NewSpanSlice function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func NewSpanSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func NewSpanSlice() SpanSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                NewSpanSlice creates a SpanSlice with 0 elements. Can use "Resize" to initialize with a given length.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (SpanSlice) Append

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (es SpanSlice) Append(e Span)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Append will increase the length of the SpanSlice by one and set the given Span at that new position. The original Span could still be referenced so do not reuse it after passing it to this method.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (SpanSlice) At

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (es SpanSlice) At(ix int) Span

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    At returns the element at the given index.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    This function is used mostly for iterating over all the values in the slice: for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ... // Do something with the element
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (SpanSlice) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (es SpanSlice) CopyTo(dest SpanSlice)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      CopyTo copies all elements from the current slice to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (SpanSlice) Len

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (es SpanSlice) Len() int

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Len returns the number of elements in the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Returns "0" for a newly instance created with "NewSpanSlice()".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (SpanSlice) MoveAndAppendTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (es SpanSlice) MoveAndAppendTo(dest SpanSlice)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          MoveAndAppendTo moves all elements from the current slice and appends them to the dest. The current slice will be cleared.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (SpanSlice) Resize

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (es SpanSlice) Resize(newLen int)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Resize is an operation that resizes the slice: 1. If the newLen <= len then equivalent with slice[0:newLen:cap]. 2. If the newLen > len then (newLen - cap) empty elements will be appended to the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Here is how a new SpanSlice can be initialized: es := NewSpanSlice() es.Resize(4) for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            // Here should set all the values for e.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type SpanStatus

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type SpanStatus struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SpanStatus is an optional final status for this span. Semantically when Status wasn't set it is means span ended without errors and assume Status.Ok (code = 0).

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Must use NewSpanStatus function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func NewSpanStatus

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func NewSpanStatus() SpanStatus

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                NewSpanStatus creates a new empty SpanStatus.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (SpanStatus) Code

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ms SpanStatus) Code() StatusCode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Code returns the code associated with this SpanStatus.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (SpanStatus) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (ms SpanStatus) CopyTo(dest SpanStatus)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (SpanStatus) DeprecatedCode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ms SpanStatus) DeprecatedCode() DeprecatedStatusCode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      DeprecatedCode returns the deprecatedcode associated with this SpanStatus.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (SpanStatus) Message

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (ms SpanStatus) Message() string

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Message returns the message associated with this SpanStatus.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (SpanStatus) SetCode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ms SpanStatus) SetCode(v StatusCode)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SetCode replaces the code associated with this SpanStatus.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (SpanStatus) SetDeprecatedCode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ms SpanStatus) SetDeprecatedCode(v DeprecatedStatusCode)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SetDeprecatedCode replaces the deprecatedcode associated with this SpanStatus.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (SpanStatus) SetMessage

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (ms SpanStatus) SetMessage(v string)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SetMessage replaces the message associated with this SpanStatus.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type StringMap

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type StringMap struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                StringMap stores a map of attribute keys to values.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func NewStringMap

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func NewStringMap() StringMap

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NewStringMap creates a StringMap with 0 elements.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (StringMap) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (sm StringMap) CopyTo(dest StringMap)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    CopyTo copies all elements from the current map to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (StringMap) Delete

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (sm StringMap) Delete(k string) bool

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Delete deletes the entry associated with the key and returns true if the key was present in the map, otherwise returns false.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (StringMap) ForEach

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (sm StringMap) ForEach(f func(k string, v string))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ForEach iterates over the every elements in the map by calling the provided func.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Example:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        it := sm.ForEach(func(k string, v StringValue) {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ...
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        })

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (StringMap) Get

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (sm StringMap) Get(k string) (string, bool)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Get returns the StringValue associated with the key and true, otherwise an invalid instance of the StringKeyValue and false. Calling any functions on the returned invalid instance will cause a panic.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (StringMap) InitEmptyWithCapacity

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (sm StringMap) InitEmptyWithCapacity(cap int)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            InitEmptyWithCapacity constructs an empty StringMap with predefined slice capacity.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (StringMap) InitFromMap

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (sm StringMap) InitFromMap(attrMap map[string]string) StringMap

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              InitFromMap overwrites the entire StringMap and reconstructs the StringMap with values from the given map[string]string.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns the same instance to allow nicer code like: assert.EqualValues(t, NewStringMap().InitFromMap(map[string]string{...}), actual)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (StringMap) Insert

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (sm StringMap) Insert(k, v string)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Insert adds the string value to the map when the key does not exist. No action is applied to the map where the key already exists.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (StringMap) Len

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (sm StringMap) Len() int

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Len returns the length of this map.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Because the AttributeMap is represented internally by a slice of pointers, and the data are comping from the wire, it is possible that when iterating using "ForEach" to get access to fewer elements because nil elements are skipped.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (StringMap) Sort

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (sm StringMap) Sort() StringMap

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Sort sorts the entries in the StringMap so two instances can be compared. Returns the same instance to allow nicer code like: assert.EqualValues(t, expected.Sort(), actual.Sort())

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (StringMap) Update

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (sm StringMap) Update(k, v string)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Update updates an existing string value with a value. No action is applied to the map where the key does not exist.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (StringMap) Upsert

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (sm StringMap) Upsert(k, v string)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Upsert performs the Insert or Update action. The string value is insert to the map that did not originally have the key. The key/value is updated to the map where the key already existed.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type TimestampUnixNano

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type TimestampUnixNano uint64

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          TimestampUnixNano is a time specified as UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func TimeToUnixNano

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func TimeToUnixNano(t time.Time) TimestampUnixNano

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func TimestampToUnixNano

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func TimestampToUnixNano(ts *timestamppb.Timestamp) (t TimestampUnixNano)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (TimestampUnixNano) String

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ts TimestampUnixNano) String() string

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type TraceID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type TraceID data.TraceID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            TraceID is an alias of OTLP TraceID data type.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func InvalidTraceID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func InvalidTraceID() TraceID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewTraceID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewTraceID(bytes [16]byte) TraceID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (TraceID) Bytes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (t TraceID) Bytes() [16]byte

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Bytes returns the byte array representation of the TraceID.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (TraceID) HexString

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (t TraceID) HexString() string

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                HexString returns hex representation of the TraceID.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (TraceID) IsEmpty

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (t TraceID) IsEmpty() bool

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  IsEmpty returns true if id doesn't contain at least one non-zero byte.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (TraceID) IsValid

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (t TraceID) IsValid() bool

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    IsValid returns true if id contains at leas one non-zero byte. Deprecated: use !IsEmpty() instead.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type TraceState

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type TraceState string

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      TraceState in w3c-trace-context format: https://www.w3.org/TR/trace-context/#tracestate-header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      const (
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	TraceStateEmpty TraceState = ""
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      )

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type Traces

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type Traces struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Traces is the top-level struct that is propagated through the traces pipeline. This is the newer version of consumerdata.Traces, but uses more efficient in-memory representation.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func NewTraces

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func NewTraces() Traces

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NewTraces creates a new Traces.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func TracesFromOtlp

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func TracesFromOtlp(orig []*otlptrace.ResourceSpans) Traces

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            TracesFromOtlp creates the internal Traces representation from the OTLP.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (Traces) Clone

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (td Traces) Clone() Traces

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Clone returns a copy of Traces.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (Traces) FromOtlpProtoBytes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (td Traces) FromOtlpProtoBytes(data []byte) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                FromOtlpProtoBytes converts OTLP Collector ExportTraceServiceRequest ProtoBuf bytes to the internal Traces. Overrides current data. Calling this function on zero-initialized structure causes panic. Use it with NewTraces or on existing initialized Traces.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (Traces) ResourceSpans

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (td Traces) ResourceSpans() ResourceSpansSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (Traces) Size

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (td Traces) Size() int

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Size returns size in bytes.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (Traces) SpanCount

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (td Traces) SpanCount() int

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SpanCount calculates the total number of spans.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (Traces) ToOtlpProtoBytes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (td Traces) ToOtlpProtoBytes() ([]byte, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ToOtlpProtoBytes converts the internal Traces to OTLP Collector ExportTraceServiceRequest ProtoBuf bytes.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type ValueAtQuantile

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type ValueAtQuantile struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ValueAtQuantile is a quantile value within a Summary data point

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Must use NewValueAtQuantile function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func NewValueAtQuantile

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func NewValueAtQuantile() ValueAtQuantile

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NewValueAtQuantile creates a new empty ValueAtQuantile.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          This must be used only in testing code since no "Set" method available.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ValueAtQuantile) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ms ValueAtQuantile) CopyTo(dest ValueAtQuantile)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            CopyTo copies all properties from the current struct to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (ValueAtQuantile) Quantile

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (ms ValueAtQuantile) Quantile() float64

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Quantile returns the quantile associated with this ValueAtQuantile.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (ValueAtQuantile) SetQuantile

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (ms ValueAtQuantile) SetQuantile(v float64)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SetQuantile replaces the quantile associated with this ValueAtQuantile.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ValueAtQuantile) SetValue

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ms ValueAtQuantile) SetValue(v float64)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SetValue replaces the value associated with this ValueAtQuantile.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (ValueAtQuantile) Value

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (ms ValueAtQuantile) Value() float64

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Value returns the value associated with this ValueAtQuantile.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Important: This causes a runtime error if IsNil() returns "true".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type ValueAtQuantileSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type ValueAtQuantileSlice struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ValueAtQuantileSlice logically represents a slice of ValueAtQuantile.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      This is a reference type, if passed by value and callee modifies it the caller will see the modification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Must use NewValueAtQuantileSlice function to create new instances. Important: zero-initialized instance is not valid for use.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewValueAtQuantileSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewValueAtQuantileSlice() ValueAtQuantileSlice

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NewValueAtQuantileSlice creates a ValueAtQuantileSlice with 0 elements. Can use "Resize" to initialize with a given length.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (ValueAtQuantileSlice) Append

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Append will increase the length of the ValueAtQuantileSlice by one and set the given ValueAtQuantile at that new position. The original ValueAtQuantile could still be referenced so do not reuse it after passing it to this method.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (ValueAtQuantileSlice) At

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            At returns the element at the given index.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            This function is used mostly for iterating over all the values in the slice: for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ... // Do something with the element
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (ValueAtQuantileSlice) CopyTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              CopyTo copies all elements from the current slice to the dest.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (ValueAtQuantileSlice) Len

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (es ValueAtQuantileSlice) Len() int

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Len returns the number of elements in the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Returns "0" for a newly instance created with "NewValueAtQuantileSlice()".

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ValueAtQuantileSlice) MoveAndAppendTo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (es ValueAtQuantileSlice) MoveAndAppendTo(dest ValueAtQuantileSlice)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  MoveAndAppendTo moves all elements from the current slice and appends them to the dest. The current slice will be cleared.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (ValueAtQuantileSlice) Resize

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (es ValueAtQuantileSlice) Resize(newLen int)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Resize is an operation that resizes the slice: 1. If the newLen <= len then equivalent with slice[0:newLen:cap]. 2. If the newLen > len then (newLen - cap) empty elements will be appended to the slice.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Here is how a new ValueAtQuantileSlice can be initialized: es := NewValueAtQuantileSlice() es.Resize(4) for i := 0; i < es.Len(); i++ {

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    e := es.At(i)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    // Here should set all the values for e.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }