Uses of Class
io.opentelemetry.exporter.internal.marshal.MarshalerContext
Packages that use MarshalerContext
Package
Description
Marshaling framework for serializing data to protobuf format.
Utilities for working with the OTLP format.
Marshaling of OTLP logs.
Marshaling of OTLP metrics.
Marshaling of OTLP traces.
-
Uses of MarshalerContext in io.opentelemetry.exporter.internal.marshal
Methods in io.opentelemetry.exporter.internal.marshal with parameters of type MarshalerContextModifier and TypeMethodDescriptionintStatelessMarshaler.getBinarySerializedSize(T value, MarshalerContext context) Returns the number of bytes marshaling given value will write in proto binary format.intStatelessMarshaler2.getBinarySerializedSize(K key, V value, MarshalerContext context) Returns the number of bytes this Marshaler will write.static <T> Map<Resource, Map<InstrumentationScopeInfo, List<T>>> StatelessMarshalerUtil.groupByResourceAndScope(Collection<T> dataList, Function<T, Resource> getResource, Function<T, InstrumentationScopeInfo> getInstrumentationScope, MarshalerContext context) Groups SDK items by resource and instrumentation scope.<K,V> void Serializer.serializeMessageWithContext(ProtoFieldInfo field, K key, V value, StatelessMarshaler2<K, V> marshaler, MarshalerContext context) Serializes a protobuf embeddedmessage.<T> voidSerializer.serializeMessageWithContext(ProtoFieldInfo field, T message, StatelessMarshaler<T> marshaler, MarshalerContext context) Serializes a protobuf embeddedmessage.voidSerializer.serializeRepeatedMessageWithContext(ProtoFieldInfo field, Attributes attributes, StatelessMarshaler2<AttributeKey<?>, Object> marshaler, MarshalerContext context) Serializesrepeated messagefield.<T> voidSerializer.serializeRepeatedMessageWithContext(ProtoFieldInfo field, Collection<? extends T> messages, StatelessMarshaler<T> marshaler, MarshalerContext context, MarshalerContext.Key key) Serializesrepeated messagefield.abstract <T> voidSerializer.serializeRepeatedMessageWithContext(ProtoFieldInfo field, List<? extends T> messages, StatelessMarshaler<T> marshaler, MarshalerContext context) Serializesrepeated messagefield.<K,V> void Serializer.serializeRepeatedMessageWithContext(ProtoFieldInfo field, Map<K, V> messages, StatelessMarshaler2<K, V> marshaler, MarshalerContext context, MarshalerContext.Key key) Serializesrepeated messagefield.voidSerializer.serializeSpanId(ProtoFieldInfo field, String spanId, MarshalerContext context) voidSerializer.serializeStringWithContext(ProtoFieldInfo field, String string, MarshalerContext context) Serializes a protobufstringfield.voidSerializer.serializeTraceId(ProtoFieldInfo field, String traceId, MarshalerContext context) static <K,V> int StatelessMarshalerUtil.sizeMessageWithContext(ProtoFieldInfo field, K key, V value, StatelessMarshaler2<K, V> marshaler, MarshalerContext context) Returns the size of a message field.static <T> intStatelessMarshalerUtil.sizeMessageWithContext(ProtoFieldInfo field, T element, StatelessMarshaler<T> marshaler, MarshalerContext context) Returns the size of a message field.static intStatelessMarshalerUtil.sizeRepeatedMessageWithContext(ProtoFieldInfo field, Attributes attributes, StatelessMarshaler2<AttributeKey<?>, Object> marshaler, MarshalerContext context) Returns the size of a repeated message field.static <T> intStatelessMarshalerUtil.sizeRepeatedMessageWithContext(ProtoFieldInfo field, Collection<? extends T> messages, StatelessMarshaler<T> marshaler, MarshalerContext context, MarshalerContext.Key key) Returns the size of a repeated message field.static <T> intStatelessMarshalerUtil.sizeRepeatedMessageWithContext(ProtoFieldInfo field, List<? extends T> messages, StatelessMarshaler<T> marshaler, MarshalerContext context) Returns the size of a repeated message field.static <K,V> int StatelessMarshalerUtil.sizeRepeatedMessageWithContext(ProtoFieldInfo field, Map<K, V> messages, StatelessMarshaler2<K, V> marshaler, MarshalerContext context, MarshalerContext.Key key) Returns the size of a repeated message field.static intStatelessMarshalerUtil.sizeStringWithContext(ProtoFieldInfo field, String value, MarshalerContext context) Returns the size of a string field.protected voidSerializer.writeSpanId(ProtoFieldInfo field, String spanId, MarshalerContext context) abstract voidSerializer.writeString(ProtoFieldInfo field, String string, int utf8Length, MarshalerContext context) voidStatelessMarshaler.writeTo(Serializer output, T value, MarshalerContext context) Marshal given value using the providedSerializer.voidStatelessMarshaler2.writeTo(Serializer output, K key, V value, MarshalerContext context) Marshal given key and value using the providedSerializer.protected voidSerializer.writeTraceId(ProtoFieldInfo field, String traceId, MarshalerContext context) -
Uses of MarshalerContext in io.opentelemetry.exporter.internal.otlp
Methods in io.opentelemetry.exporter.internal.otlp with parameters of type MarshalerContextModifier and TypeMethodDescriptionintAnyValueStatelessMarshaler.getBinarySerializedSize(Value<?> value, MarshalerContext context) intAttributeKeyValueStatelessMarshaler.getBinarySerializedSize(AttributeKey<?> attributeKey, Object value, MarshalerContext context) intKeyValueStatelessMarshaler.getBinarySerializedSize(KeyValue value, MarshalerContext context) voidAnyValueStatelessMarshaler.writeTo(Serializer output, Value<?> value, MarshalerContext context) voidAttributeKeyValueStatelessMarshaler.writeTo(Serializer output, AttributeKey<?> attributeKey, Object value, MarshalerContext context) voidKeyValueStatelessMarshaler.writeTo(Serializer output, KeyValue value, MarshalerContext context) -
Uses of MarshalerContext in io.opentelemetry.exporter.internal.otlp.logs
Methods in io.opentelemetry.exporter.internal.otlp.logs with parameters of type MarshalerContextModifier and TypeMethodDescriptionintResourceLogsStatelessMarshaler.getBinarySerializedSize(Resource resource, Map<InstrumentationScopeInfo, List<LogRecordData>> scopeMap, MarshalerContext context) voidResourceLogsStatelessMarshaler.writeTo(Serializer output, Resource resource, Map<InstrumentationScopeInfo, List<LogRecordData>> scopeMap, MarshalerContext context) -
Uses of MarshalerContext in io.opentelemetry.exporter.internal.otlp.metrics
Methods in io.opentelemetry.exporter.internal.otlp.metrics with parameters of type MarshalerContextModifier and TypeMethodDescriptionintResourceMetricsStatelessMarshaler.getBinarySerializedSize(Resource resource, Map<InstrumentationScopeInfo, List<MetricData>> scopeMap, MarshalerContext context) voidResourceMetricsStatelessMarshaler.writeTo(Serializer output, Resource resource, Map<InstrumentationScopeInfo, List<MetricData>> scopeMap, MarshalerContext context) -
Uses of MarshalerContext in io.opentelemetry.exporter.internal.otlp.traces
Methods in io.opentelemetry.exporter.internal.otlp.traces with parameters of type MarshalerContextModifier and TypeMethodDescriptionintResourceSpansStatelessMarshaler.getBinarySerializedSize(Resource resource, Map<InstrumentationScopeInfo, List<SpanData>> scopeMap, MarshalerContext context) voidResourceSpansStatelessMarshaler.writeTo(Serializer output, Resource resource, Map<InstrumentationScopeInfo, List<SpanData>> scopeMap, MarshalerContext context)