Documentation ¶
Index ¶
- func Marshal(out io.Writer, pb proto.Message) error
- func ReadAttribute(iter *jsoniter.Iterator) otlpcommon.KeyValue
- func ReadEnumValue(iter *jsoniter.Iterator, valueMap map[string]int32) int32
- func ReadFloat64(iter *jsoniter.Iterator) float64
- func ReadInt32(iter *jsoniter.Iterator) int32
- func ReadInt64(iter *jsoniter.Iterator) int64
- func ReadResource(iter *jsoniter.Iterator, resource *otlpresource.Resource)
- func ReadScope(iter *jsoniter.Iterator, scope *otlpcommon.InstrumentationScope)
- func ReadUint32(iter *jsoniter.Iterator) uint32
- func ReadUint64(iter *jsoniter.Iterator) uint64
- func ReadValue(iter *jsoniter.Iterator, val *otlpcommon.AnyValue)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadAttribute ¶
func ReadAttribute(iter *jsoniter.Iterator) otlpcommon.KeyValue
ReadAttribute Unmarshal JSON data and return otlpcommon.KeyValue
func ReadEnumValue ¶
ReadEnumValue returns the enum integer value representation. Accepts both enum names and enum integer values. See https://developers.google.com/protocol-buffers/docs/proto3#json.
func ReadFloat64 ¶
func ReadInt32 ¶
ReadInt32 unmarshalls JSON data into an int32. Accepts both numbers and strings decimal. See https://developers.google.com/protocol-buffers/docs/proto3#json.
func ReadInt64 ¶
ReadInt64 unmarshalls JSON data into an int64. Accepts both numbers and strings decimal. See https://developers.google.com/protocol-buffers/docs/proto3#json.
func ReadResource ¶ added in v0.60.0
func ReadResource(iter *jsoniter.Iterator, resource *otlpresource.Resource)
func ReadScope ¶
func ReadScope(iter *jsoniter.Iterator, scope *otlpcommon.InstrumentationScope)
func ReadUint32 ¶
ReadUint32 unmarshalls JSON data into an uint32. Accepts both numbers and strings decimal. See https://developers.google.com/protocol-buffers/docs/proto3#json.
func ReadUint64 ¶
ReadUint64 unmarshalls JSON data into an uint64. Accepts both numbers and strings decimal. See https://developers.google.com/protocol-buffers/docs/proto3#json.
Types ¶
This section is empty.