From 9ae45c4a41582be0a36509c5ebf2637e0c56703c Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Tue, 29 Oct 2024 10:39:04 -0600 Subject: [PATCH] lib: fluent-otel-proto: update files for latest profiles support Signed-off-by: Eduardo Silva --- lib/fluent-otel-proto/CMakeLists.txt | 4 - .../proto/metrics/v1/metrics.pb-c.h | 6 +- .../v1development/pprofextended.pb-c.c | 1525 ---------------- .../v1development/pprofextended.pb-c.h | 799 --------- .../profiles/v1development/profiles.pb-c.c | 1559 ++++++++++++++++- .../profiles/v1development/profiles.pb-c.h | 795 ++++++++- lib/fluent-otel-proto/src/CMakeLists.txt | 1 - 7 files changed, 2242 insertions(+), 2447 deletions(-) delete mode 100644 lib/fluent-otel-proto/proto_c/opentelemetry/proto/profiles/v1development/pprofextended.pb-c.c delete mode 100644 lib/fluent-otel-proto/proto_c/opentelemetry/proto/profiles/v1development/pprofextended.pb-c.h diff --git a/lib/fluent-otel-proto/CMakeLists.txt b/lib/fluent-otel-proto/CMakeLists.txt index e741e184dff..109589b5bd1 100644 --- a/lib/fluent-otel-proto/CMakeLists.txt +++ b/lib/fluent-otel-proto/CMakeLists.txt @@ -114,10 +114,6 @@ if (FLUENT_PROTO_REGENERATE) set(proto_file "${OTEL_PROTO_DIR}/opentelemetry/proto/profiles/v1development/profiles.proto") execute_process(COMMAND ${PROTOC_BIN} ${PROTOC_ARG_OUT} ${PROTOC_ARG_PATH} ${proto_file}) - message(STATUS "processing pprofextended.proto") - set(proto_file "${OTEL_PROTO_DIR}/opentelemetry/proto/profiles/v1development/pprofextended.proto") - execute_process(COMMAND ${PROTOC_BIN} ${PROTOC_ARG_OUT} ${PROTOC_ARG_PATH} ${proto_file}) - include_directories(${PROJECT_BINARY_DIR}/opentelemetry/proto/profiles/v1development/) FLUENT_OTEL_DEFINITION(FLUENT_OTEL_HAVE_PROFILES) endif() diff --git a/lib/fluent-otel-proto/proto_c/opentelemetry/proto/metrics/v1/metrics.pb-c.h b/lib/fluent-otel-proto/proto_c/opentelemetry/proto/metrics/v1/metrics.pb-c.h index 48a96611546..51de5389b0d 100644 --- a/lib/fluent-otel-proto/proto_c/opentelemetry/proto/metrics/v1/metrics.pb-c.h +++ b/lib/fluent-otel-proto/proto_c/opentelemetry/proto/metrics/v1/metrics.pb-c.h @@ -453,6 +453,9 @@ struct Opentelemetry__Proto__Metrics__V1__ExponentialHistogram * data type. These data points cannot always be merged in a meaningful way. * While they can be useful in some applications, histogram data points are * recommended for new applications. + * Summary metrics do not have an aggregation temporality field. This is + * because the count and sum fields of a SummaryDataPoint are assumed to be + * cumulative values. */ struct Opentelemetry__Proto__Metrics__V1__Summary { @@ -846,7 +849,8 @@ struct Opentelemetry__Proto__Metrics__V1__SummaryDataPoint__ValueAtQuantile /* * SummaryDataPoint is a single data point in a timeseries that describes the - * time-varying values of a Summary metric. + * time-varying values of a Summary metric. The count and sum fields represent + * cumulative values. */ struct Opentelemetry__Proto__Metrics__V1__SummaryDataPoint { diff --git a/lib/fluent-otel-proto/proto_c/opentelemetry/proto/profiles/v1development/pprofextended.pb-c.c b/lib/fluent-otel-proto/proto_c/opentelemetry/proto/profiles/v1development/pprofextended.pb-c.c deleted file mode 100644 index 2d8fa3e10a2..00000000000 --- a/lib/fluent-otel-proto/proto_c/opentelemetry/proto/profiles/v1development/pprofextended.pb-c.c +++ /dev/null @@ -1,1525 +0,0 @@ -/* Generated by the protocol buffer compiler. DO NOT EDIT! */ -/* Generated from: opentelemetry/proto/profiles/v1development/pprofextended.proto */ - -/* Do not generate deprecated warnings for self */ -#ifndef PROTOBUF_C__NO_DEPRECATED -#define PROTOBUF_C__NO_DEPRECATED -#endif - -#include "opentelemetry/proto/profiles/v1development/pprofextended.pb-c.h" -void opentelemetry__proto__profiles__v1development__profile__init - (Opentelemetry__Proto__Profiles__V1development__Profile *message) -{ - static const Opentelemetry__Proto__Profiles__V1development__Profile init_value = OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__PROFILE__INIT; - *message = init_value; -} -size_t opentelemetry__proto__profiles__v1development__profile__get_packed_size - (const Opentelemetry__Proto__Profiles__V1development__Profile *message) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__profile__descriptor); - return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); -} -size_t opentelemetry__proto__profiles__v1development__profile__pack - (const Opentelemetry__Proto__Profiles__V1development__Profile *message, - uint8_t *out) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__profile__descriptor); - return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); -} -size_t opentelemetry__proto__profiles__v1development__profile__pack_to_buffer - (const Opentelemetry__Proto__Profiles__V1development__Profile *message, - ProtobufCBuffer *buffer) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__profile__descriptor); - return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); -} -Opentelemetry__Proto__Profiles__V1development__Profile * - opentelemetry__proto__profiles__v1development__profile__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data) -{ - return (Opentelemetry__Proto__Profiles__V1development__Profile *) - protobuf_c_message_unpack (&opentelemetry__proto__profiles__v1development__profile__descriptor, - allocator, len, data); -} -void opentelemetry__proto__profiles__v1development__profile__free_unpacked - (Opentelemetry__Proto__Profiles__V1development__Profile *message, - ProtobufCAllocator *allocator) -{ - if(!message) - return; - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__profile__descriptor); - protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); -} -void opentelemetry__proto__profiles__v1development__attribute_unit__init - (Opentelemetry__Proto__Profiles__V1development__AttributeUnit *message) -{ - static const Opentelemetry__Proto__Profiles__V1development__AttributeUnit init_value = OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__ATTRIBUTE_UNIT__INIT; - *message = init_value; -} -size_t opentelemetry__proto__profiles__v1development__attribute_unit__get_packed_size - (const Opentelemetry__Proto__Profiles__V1development__AttributeUnit *message) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__attribute_unit__descriptor); - return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); -} -size_t opentelemetry__proto__profiles__v1development__attribute_unit__pack - (const Opentelemetry__Proto__Profiles__V1development__AttributeUnit *message, - uint8_t *out) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__attribute_unit__descriptor); - return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); -} -size_t opentelemetry__proto__profiles__v1development__attribute_unit__pack_to_buffer - (const Opentelemetry__Proto__Profiles__V1development__AttributeUnit *message, - ProtobufCBuffer *buffer) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__attribute_unit__descriptor); - return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); -} -Opentelemetry__Proto__Profiles__V1development__AttributeUnit * - opentelemetry__proto__profiles__v1development__attribute_unit__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data) -{ - return (Opentelemetry__Proto__Profiles__V1development__AttributeUnit *) - protobuf_c_message_unpack (&opentelemetry__proto__profiles__v1development__attribute_unit__descriptor, - allocator, len, data); -} -void opentelemetry__proto__profiles__v1development__attribute_unit__free_unpacked - (Opentelemetry__Proto__Profiles__V1development__AttributeUnit *message, - ProtobufCAllocator *allocator) -{ - if(!message) - return; - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__attribute_unit__descriptor); - protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); -} -void opentelemetry__proto__profiles__v1development__link__init - (Opentelemetry__Proto__Profiles__V1development__Link *message) -{ - static const Opentelemetry__Proto__Profiles__V1development__Link init_value = OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__LINK__INIT; - *message = init_value; -} -size_t opentelemetry__proto__profiles__v1development__link__get_packed_size - (const Opentelemetry__Proto__Profiles__V1development__Link *message) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__link__descriptor); - return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); -} -size_t opentelemetry__proto__profiles__v1development__link__pack - (const Opentelemetry__Proto__Profiles__V1development__Link *message, - uint8_t *out) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__link__descriptor); - return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); -} -size_t opentelemetry__proto__profiles__v1development__link__pack_to_buffer - (const Opentelemetry__Proto__Profiles__V1development__Link *message, - ProtobufCBuffer *buffer) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__link__descriptor); - return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); -} -Opentelemetry__Proto__Profiles__V1development__Link * - opentelemetry__proto__profiles__v1development__link__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data) -{ - return (Opentelemetry__Proto__Profiles__V1development__Link *) - protobuf_c_message_unpack (&opentelemetry__proto__profiles__v1development__link__descriptor, - allocator, len, data); -} -void opentelemetry__proto__profiles__v1development__link__free_unpacked - (Opentelemetry__Proto__Profiles__V1development__Link *message, - ProtobufCAllocator *allocator) -{ - if(!message) - return; - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__link__descriptor); - protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); -} -void opentelemetry__proto__profiles__v1development__value_type__init - (Opentelemetry__Proto__Profiles__V1development__ValueType *message) -{ - static const Opentelemetry__Proto__Profiles__V1development__ValueType init_value = OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__VALUE_TYPE__INIT; - *message = init_value; -} -size_t opentelemetry__proto__profiles__v1development__value_type__get_packed_size - (const Opentelemetry__Proto__Profiles__V1development__ValueType *message) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__value_type__descriptor); - return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); -} -size_t opentelemetry__proto__profiles__v1development__value_type__pack - (const Opentelemetry__Proto__Profiles__V1development__ValueType *message, - uint8_t *out) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__value_type__descriptor); - return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); -} -size_t opentelemetry__proto__profiles__v1development__value_type__pack_to_buffer - (const Opentelemetry__Proto__Profiles__V1development__ValueType *message, - ProtobufCBuffer *buffer) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__value_type__descriptor); - return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); -} -Opentelemetry__Proto__Profiles__V1development__ValueType * - opentelemetry__proto__profiles__v1development__value_type__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data) -{ - return (Opentelemetry__Proto__Profiles__V1development__ValueType *) - protobuf_c_message_unpack (&opentelemetry__proto__profiles__v1development__value_type__descriptor, - allocator, len, data); -} -void opentelemetry__proto__profiles__v1development__value_type__free_unpacked - (Opentelemetry__Proto__Profiles__V1development__ValueType *message, - ProtobufCAllocator *allocator) -{ - if(!message) - return; - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__value_type__descriptor); - protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); -} -void opentelemetry__proto__profiles__v1development__sample__init - (Opentelemetry__Proto__Profiles__V1development__Sample *message) -{ - static const Opentelemetry__Proto__Profiles__V1development__Sample init_value = OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__SAMPLE__INIT; - *message = init_value; -} -size_t opentelemetry__proto__profiles__v1development__sample__get_packed_size - (const Opentelemetry__Proto__Profiles__V1development__Sample *message) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__sample__descriptor); - return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); -} -size_t opentelemetry__proto__profiles__v1development__sample__pack - (const Opentelemetry__Proto__Profiles__V1development__Sample *message, - uint8_t *out) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__sample__descriptor); - return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); -} -size_t opentelemetry__proto__profiles__v1development__sample__pack_to_buffer - (const Opentelemetry__Proto__Profiles__V1development__Sample *message, - ProtobufCBuffer *buffer) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__sample__descriptor); - return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); -} -Opentelemetry__Proto__Profiles__V1development__Sample * - opentelemetry__proto__profiles__v1development__sample__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data) -{ - return (Opentelemetry__Proto__Profiles__V1development__Sample *) - protobuf_c_message_unpack (&opentelemetry__proto__profiles__v1development__sample__descriptor, - allocator, len, data); -} -void opentelemetry__proto__profiles__v1development__sample__free_unpacked - (Opentelemetry__Proto__Profiles__V1development__Sample *message, - ProtobufCAllocator *allocator) -{ - if(!message) - return; - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__sample__descriptor); - protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); -} -void opentelemetry__proto__profiles__v1development__label__init - (Opentelemetry__Proto__Profiles__V1development__Label *message) -{ - static const Opentelemetry__Proto__Profiles__V1development__Label init_value = OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__LABEL__INIT; - *message = init_value; -} -size_t opentelemetry__proto__profiles__v1development__label__get_packed_size - (const Opentelemetry__Proto__Profiles__V1development__Label *message) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__label__descriptor); - return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); -} -size_t opentelemetry__proto__profiles__v1development__label__pack - (const Opentelemetry__Proto__Profiles__V1development__Label *message, - uint8_t *out) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__label__descriptor); - return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); -} -size_t opentelemetry__proto__profiles__v1development__label__pack_to_buffer - (const Opentelemetry__Proto__Profiles__V1development__Label *message, - ProtobufCBuffer *buffer) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__label__descriptor); - return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); -} -Opentelemetry__Proto__Profiles__V1development__Label * - opentelemetry__proto__profiles__v1development__label__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data) -{ - return (Opentelemetry__Proto__Profiles__V1development__Label *) - protobuf_c_message_unpack (&opentelemetry__proto__profiles__v1development__label__descriptor, - allocator, len, data); -} -void opentelemetry__proto__profiles__v1development__label__free_unpacked - (Opentelemetry__Proto__Profiles__V1development__Label *message, - ProtobufCAllocator *allocator) -{ - if(!message) - return; - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__label__descriptor); - protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); -} -void opentelemetry__proto__profiles__v1development__mapping__init - (Opentelemetry__Proto__Profiles__V1development__Mapping *message) -{ - static const Opentelemetry__Proto__Profiles__V1development__Mapping init_value = OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__MAPPING__INIT; - *message = init_value; -} -size_t opentelemetry__proto__profiles__v1development__mapping__get_packed_size - (const Opentelemetry__Proto__Profiles__V1development__Mapping *message) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__mapping__descriptor); - return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); -} -size_t opentelemetry__proto__profiles__v1development__mapping__pack - (const Opentelemetry__Proto__Profiles__V1development__Mapping *message, - uint8_t *out) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__mapping__descriptor); - return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); -} -size_t opentelemetry__proto__profiles__v1development__mapping__pack_to_buffer - (const Opentelemetry__Proto__Profiles__V1development__Mapping *message, - ProtobufCBuffer *buffer) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__mapping__descriptor); - return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); -} -Opentelemetry__Proto__Profiles__V1development__Mapping * - opentelemetry__proto__profiles__v1development__mapping__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data) -{ - return (Opentelemetry__Proto__Profiles__V1development__Mapping *) - protobuf_c_message_unpack (&opentelemetry__proto__profiles__v1development__mapping__descriptor, - allocator, len, data); -} -void opentelemetry__proto__profiles__v1development__mapping__free_unpacked - (Opentelemetry__Proto__Profiles__V1development__Mapping *message, - ProtobufCAllocator *allocator) -{ - if(!message) - return; - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__mapping__descriptor); - protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); -} -void opentelemetry__proto__profiles__v1development__location__init - (Opentelemetry__Proto__Profiles__V1development__Location *message) -{ - static const Opentelemetry__Proto__Profiles__V1development__Location init_value = OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__LOCATION__INIT; - *message = init_value; -} -size_t opentelemetry__proto__profiles__v1development__location__get_packed_size - (const Opentelemetry__Proto__Profiles__V1development__Location *message) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__location__descriptor); - return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); -} -size_t opentelemetry__proto__profiles__v1development__location__pack - (const Opentelemetry__Proto__Profiles__V1development__Location *message, - uint8_t *out) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__location__descriptor); - return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); -} -size_t opentelemetry__proto__profiles__v1development__location__pack_to_buffer - (const Opentelemetry__Proto__Profiles__V1development__Location *message, - ProtobufCBuffer *buffer) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__location__descriptor); - return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); -} -Opentelemetry__Proto__Profiles__V1development__Location * - opentelemetry__proto__profiles__v1development__location__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data) -{ - return (Opentelemetry__Proto__Profiles__V1development__Location *) - protobuf_c_message_unpack (&opentelemetry__proto__profiles__v1development__location__descriptor, - allocator, len, data); -} -void opentelemetry__proto__profiles__v1development__location__free_unpacked - (Opentelemetry__Proto__Profiles__V1development__Location *message, - ProtobufCAllocator *allocator) -{ - if(!message) - return; - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__location__descriptor); - protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); -} -void opentelemetry__proto__profiles__v1development__line__init - (Opentelemetry__Proto__Profiles__V1development__Line *message) -{ - static const Opentelemetry__Proto__Profiles__V1development__Line init_value = OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__LINE__INIT; - *message = init_value; -} -size_t opentelemetry__proto__profiles__v1development__line__get_packed_size - (const Opentelemetry__Proto__Profiles__V1development__Line *message) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__line__descriptor); - return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); -} -size_t opentelemetry__proto__profiles__v1development__line__pack - (const Opentelemetry__Proto__Profiles__V1development__Line *message, - uint8_t *out) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__line__descriptor); - return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); -} -size_t opentelemetry__proto__profiles__v1development__line__pack_to_buffer - (const Opentelemetry__Proto__Profiles__V1development__Line *message, - ProtobufCBuffer *buffer) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__line__descriptor); - return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); -} -Opentelemetry__Proto__Profiles__V1development__Line * - opentelemetry__proto__profiles__v1development__line__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data) -{ - return (Opentelemetry__Proto__Profiles__V1development__Line *) - protobuf_c_message_unpack (&opentelemetry__proto__profiles__v1development__line__descriptor, - allocator, len, data); -} -void opentelemetry__proto__profiles__v1development__line__free_unpacked - (Opentelemetry__Proto__Profiles__V1development__Line *message, - ProtobufCAllocator *allocator) -{ - if(!message) - return; - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__line__descriptor); - protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); -} -void opentelemetry__proto__profiles__v1development__function__init - (Opentelemetry__Proto__Profiles__V1development__Function *message) -{ - static const Opentelemetry__Proto__Profiles__V1development__Function init_value = OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__FUNCTION__INIT; - *message = init_value; -} -size_t opentelemetry__proto__profiles__v1development__function__get_packed_size - (const Opentelemetry__Proto__Profiles__V1development__Function *message) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__function__descriptor); - return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); -} -size_t opentelemetry__proto__profiles__v1development__function__pack - (const Opentelemetry__Proto__Profiles__V1development__Function *message, - uint8_t *out) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__function__descriptor); - return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); -} -size_t opentelemetry__proto__profiles__v1development__function__pack_to_buffer - (const Opentelemetry__Proto__Profiles__V1development__Function *message, - ProtobufCBuffer *buffer) -{ - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__function__descriptor); - return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); -} -Opentelemetry__Proto__Profiles__V1development__Function * - opentelemetry__proto__profiles__v1development__function__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data) -{ - return (Opentelemetry__Proto__Profiles__V1development__Function *) - protobuf_c_message_unpack (&opentelemetry__proto__profiles__v1development__function__descriptor, - allocator, len, data); -} -void opentelemetry__proto__profiles__v1development__function__free_unpacked - (Opentelemetry__Proto__Profiles__V1development__Function *message, - ProtobufCAllocator *allocator) -{ - if(!message) - return; - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__function__descriptor); - protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); -} -static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1development__profile__field_descriptors[18] = -{ - { - "sample_type", - 1, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, n_sample_type), - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, sample_type), - &opentelemetry__proto__profiles__v1development__value_type__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "sample", - 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, n_sample), - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, sample), - &opentelemetry__proto__profiles__v1development__sample__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "mapping", - 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, n_mapping), - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, mapping), - &opentelemetry__proto__profiles__v1development__mapping__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "location", - 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, n_location), - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, location), - &opentelemetry__proto__profiles__v1development__location__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "function", - 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, n_function), - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, function), - &opentelemetry__proto__profiles__v1development__function__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "string_table", - 6, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_STRING, - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, n_string_table), - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, string_table), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "drop_frames", - 7, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, drop_frames), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "keep_frames", - 8, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, keep_frames), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "time_nanos", - 9, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, time_nanos), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "duration_nanos", - 10, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, duration_nanos), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "period_type", - 11, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, period_type), - &opentelemetry__proto__profiles__v1development__value_type__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "period", - 12, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, period), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "comment", - 13, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_INT64, - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, n_comment), - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, comment), - NULL, - NULL, - PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "default_sample_type", - 14, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, default_sample_type), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "location_indices", - 15, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_INT64, - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, n_location_indices), - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, location_indices), - NULL, - NULL, - PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "attribute_table", - 16, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, n_attribute_table), - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, attribute_table), - &opentelemetry__proto__common__v1__key_value__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "attribute_units", - 17, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, n_attribute_units), - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, attribute_units), - &opentelemetry__proto__profiles__v1development__attribute_unit__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "link_table", - 18, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, n_link_table), - offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, link_table), - &opentelemetry__proto__profiles__v1development__link__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned opentelemetry__proto__profiles__v1development__profile__field_indices_by_name[] = { - 15, /* field[15] = attribute_table */ - 16, /* field[16] = attribute_units */ - 12, /* field[12] = comment */ - 13, /* field[13] = default_sample_type */ - 6, /* field[6] = drop_frames */ - 9, /* field[9] = duration_nanos */ - 4, /* field[4] = function */ - 7, /* field[7] = keep_frames */ - 17, /* field[17] = link_table */ - 3, /* field[3] = location */ - 14, /* field[14] = location_indices */ - 2, /* field[2] = mapping */ - 11, /* field[11] = period */ - 10, /* field[10] = period_type */ - 1, /* field[1] = sample */ - 0, /* field[0] = sample_type */ - 5, /* field[5] = string_table */ - 8, /* field[8] = time_nanos */ -}; -static const ProtobufCIntRange opentelemetry__proto__profiles__v1development__profile__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 18 } -}; -const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__profile__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "opentelemetry.proto.profiles.v1development.Profile", - "Profile", - "Opentelemetry__Proto__Profiles__V1development__Profile", - "opentelemetry.proto.profiles.v1development", - sizeof(Opentelemetry__Proto__Profiles__V1development__Profile), - 18, - opentelemetry__proto__profiles__v1development__profile__field_descriptors, - opentelemetry__proto__profiles__v1development__profile__field_indices_by_name, - 1, opentelemetry__proto__profiles__v1development__profile__number_ranges, - (ProtobufCMessageInit) opentelemetry__proto__profiles__v1development__profile__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1development__attribute_unit__field_descriptors[2] = -{ - { - "attribute_key", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__AttributeUnit, attribute_key), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "unit", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__AttributeUnit, unit), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned opentelemetry__proto__profiles__v1development__attribute_unit__field_indices_by_name[] = { - 0, /* field[0] = attribute_key */ - 1, /* field[1] = unit */ -}; -static const ProtobufCIntRange opentelemetry__proto__profiles__v1development__attribute_unit__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 2 } -}; -const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__attribute_unit__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "opentelemetry.proto.profiles.v1development.AttributeUnit", - "AttributeUnit", - "Opentelemetry__Proto__Profiles__V1development__AttributeUnit", - "opentelemetry.proto.profiles.v1development", - sizeof(Opentelemetry__Proto__Profiles__V1development__AttributeUnit), - 2, - opentelemetry__proto__profiles__v1development__attribute_unit__field_descriptors, - opentelemetry__proto__profiles__v1development__attribute_unit__field_indices_by_name, - 1, opentelemetry__proto__profiles__v1development__attribute_unit__number_ranges, - (ProtobufCMessageInit) opentelemetry__proto__profiles__v1development__attribute_unit__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1development__link__field_descriptors[2] = -{ - { - "trace_id", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BYTES, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Link, trace_id), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "span_id", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BYTES, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Link, span_id), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned opentelemetry__proto__profiles__v1development__link__field_indices_by_name[] = { - 1, /* field[1] = span_id */ - 0, /* field[0] = trace_id */ -}; -static const ProtobufCIntRange opentelemetry__proto__profiles__v1development__link__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 2 } -}; -const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__link__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "opentelemetry.proto.profiles.v1development.Link", - "Link", - "Opentelemetry__Proto__Profiles__V1development__Link", - "opentelemetry.proto.profiles.v1development", - sizeof(Opentelemetry__Proto__Profiles__V1development__Link), - 2, - opentelemetry__proto__profiles__v1development__link__field_descriptors, - opentelemetry__proto__profiles__v1development__link__field_indices_by_name, - 1, opentelemetry__proto__profiles__v1development__link__number_ranges, - (ProtobufCMessageInit) opentelemetry__proto__profiles__v1development__link__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1development__value_type__field_descriptors[3] = -{ - { - "type", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__ValueType, type), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "unit", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__ValueType, unit), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "aggregation_temporality", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__ValueType, aggregation_temporality), - &opentelemetry__proto__profiles__v1development__aggregation_temporality__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned opentelemetry__proto__profiles__v1development__value_type__field_indices_by_name[] = { - 2, /* field[2] = aggregation_temporality */ - 0, /* field[0] = type */ - 1, /* field[1] = unit */ -}; -static const ProtobufCIntRange opentelemetry__proto__profiles__v1development__value_type__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 3 } -}; -const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__value_type__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "opentelemetry.proto.profiles.v1development.ValueType", - "ValueType", - "Opentelemetry__Proto__Profiles__V1development__ValueType", - "opentelemetry.proto.profiles.v1development", - sizeof(Opentelemetry__Proto__Profiles__V1development__ValueType), - 3, - opentelemetry__proto__profiles__v1development__value_type__field_descriptors, - opentelemetry__proto__profiles__v1development__value_type__field_indices_by_name, - 1, opentelemetry__proto__profiles__v1development__value_type__number_ranges, - (ProtobufCMessageInit) opentelemetry__proto__profiles__v1development__value_type__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1development__sample__field_descriptors[7] = -{ - { - "location_index", - 1, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT64, - offsetof(Opentelemetry__Proto__Profiles__V1development__Sample, n_location_index), - offsetof(Opentelemetry__Proto__Profiles__V1development__Sample, location_index), - NULL, - NULL, - PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "value", - 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_INT64, - offsetof(Opentelemetry__Proto__Profiles__V1development__Sample, n_value), - offsetof(Opentelemetry__Proto__Profiles__V1development__Sample, value), - NULL, - NULL, - PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "locations_start_index", - 7, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Sample, locations_start_index), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "locations_length", - 8, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Sample, locations_length), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "attributes", - 10, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT64, - offsetof(Opentelemetry__Proto__Profiles__V1development__Sample, n_attributes), - offsetof(Opentelemetry__Proto__Profiles__V1development__Sample, attributes), - NULL, - NULL, - PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "link", - 12, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Sample, link), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "timestamps_unix_nano", - 13, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT64, - offsetof(Opentelemetry__Proto__Profiles__V1development__Sample, n_timestamps_unix_nano), - offsetof(Opentelemetry__Proto__Profiles__V1development__Sample, timestamps_unix_nano), - NULL, - NULL, - PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned opentelemetry__proto__profiles__v1development__sample__field_indices_by_name[] = { - 4, /* field[4] = attributes */ - 5, /* field[5] = link */ - 0, /* field[0] = location_index */ - 3, /* field[3] = locations_length */ - 2, /* field[2] = locations_start_index */ - 6, /* field[6] = timestamps_unix_nano */ - 1, /* field[1] = value */ -}; -static const ProtobufCIntRange opentelemetry__proto__profiles__v1development__sample__number_ranges[4 + 1] = -{ - { 1, 0 }, - { 7, 2 }, - { 10, 4 }, - { 12, 5 }, - { 0, 7 } -}; -const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__sample__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "opentelemetry.proto.profiles.v1development.Sample", - "Sample", - "Opentelemetry__Proto__Profiles__V1development__Sample", - "opentelemetry.proto.profiles.v1development", - sizeof(Opentelemetry__Proto__Profiles__V1development__Sample), - 7, - opentelemetry__proto__profiles__v1development__sample__field_descriptors, - opentelemetry__proto__profiles__v1development__sample__field_indices_by_name, - 4, opentelemetry__proto__profiles__v1development__sample__number_ranges, - (ProtobufCMessageInit) opentelemetry__proto__profiles__v1development__sample__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1development__label__field_descriptors[4] = -{ - { - "key", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Label, key), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "str", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Label, str), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "num", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Label, num), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "num_unit", - 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Label, num_unit), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned opentelemetry__proto__profiles__v1development__label__field_indices_by_name[] = { - 0, /* field[0] = key */ - 2, /* field[2] = num */ - 3, /* field[3] = num_unit */ - 1, /* field[1] = str */ -}; -static const ProtobufCIntRange opentelemetry__proto__profiles__v1development__label__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 4 } -}; -const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__label__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "opentelemetry.proto.profiles.v1development.Label", - "Label", - "Opentelemetry__Proto__Profiles__V1development__Label", - "opentelemetry.proto.profiles.v1development", - sizeof(Opentelemetry__Proto__Profiles__V1development__Label), - 4, - opentelemetry__proto__profiles__v1development__label__field_descriptors, - opentelemetry__proto__profiles__v1development__label__field_indices_by_name, - 1, opentelemetry__proto__profiles__v1development__label__number_ranges, - (ProtobufCMessageInit) opentelemetry__proto__profiles__v1development__label__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1development__mapping__field_descriptors[10] = -{ - { - "id", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Mapping, id), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "memory_start", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Mapping, memory_start), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "memory_limit", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Mapping, memory_limit), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "file_offset", - 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Mapping, file_offset), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "filename", - 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Mapping, filename), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "has_functions", - 7, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Mapping, has_functions), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "has_filenames", - 8, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Mapping, has_filenames), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "has_line_numbers", - 9, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Mapping, has_line_numbers), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "has_inline_frames", - 10, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Mapping, has_inline_frames), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "attributes", - 12, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT64, - offsetof(Opentelemetry__Proto__Profiles__V1development__Mapping, n_attributes), - offsetof(Opentelemetry__Proto__Profiles__V1development__Mapping, attributes), - NULL, - NULL, - PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned opentelemetry__proto__profiles__v1development__mapping__field_indices_by_name[] = { - 9, /* field[9] = attributes */ - 3, /* field[3] = file_offset */ - 4, /* field[4] = filename */ - 6, /* field[6] = has_filenames */ - 5, /* field[5] = has_functions */ - 8, /* field[8] = has_inline_frames */ - 7, /* field[7] = has_line_numbers */ - 0, /* field[0] = id */ - 2, /* field[2] = memory_limit */ - 1, /* field[1] = memory_start */ -}; -static const ProtobufCIntRange opentelemetry__proto__profiles__v1development__mapping__number_ranges[3 + 1] = -{ - { 1, 0 }, - { 7, 5 }, - { 12, 9 }, - { 0, 10 } -}; -const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__mapping__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "opentelemetry.proto.profiles.v1development.Mapping", - "Mapping", - "Opentelemetry__Proto__Profiles__V1development__Mapping", - "opentelemetry.proto.profiles.v1development", - sizeof(Opentelemetry__Proto__Profiles__V1development__Mapping), - 10, - opentelemetry__proto__profiles__v1development__mapping__field_descriptors, - opentelemetry__proto__profiles__v1development__mapping__field_indices_by_name, - 3, opentelemetry__proto__profiles__v1development__mapping__number_ranges, - (ProtobufCMessageInit) opentelemetry__proto__profiles__v1development__mapping__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1development__location__field_descriptors[6] = -{ - { - "id", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Location, id), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "mapping_index", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Location, mapping_index), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "address", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Location, address), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "line", - 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(Opentelemetry__Proto__Profiles__V1development__Location, n_line), - offsetof(Opentelemetry__Proto__Profiles__V1development__Location, line), - &opentelemetry__proto__profiles__v1development__line__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "is_folded", - 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Location, is_folded), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "attributes", - 7, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT64, - offsetof(Opentelemetry__Proto__Profiles__V1development__Location, n_attributes), - offsetof(Opentelemetry__Proto__Profiles__V1development__Location, attributes), - NULL, - NULL, - PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned opentelemetry__proto__profiles__v1development__location__field_indices_by_name[] = { - 2, /* field[2] = address */ - 5, /* field[5] = attributes */ - 0, /* field[0] = id */ - 4, /* field[4] = is_folded */ - 3, /* field[3] = line */ - 1, /* field[1] = mapping_index */ -}; -static const ProtobufCIntRange opentelemetry__proto__profiles__v1development__location__number_ranges[2 + 1] = -{ - { 1, 0 }, - { 7, 5 }, - { 0, 6 } -}; -const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__location__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "opentelemetry.proto.profiles.v1development.Location", - "Location", - "Opentelemetry__Proto__Profiles__V1development__Location", - "opentelemetry.proto.profiles.v1development", - sizeof(Opentelemetry__Proto__Profiles__V1development__Location), - 6, - opentelemetry__proto__profiles__v1development__location__field_descriptors, - opentelemetry__proto__profiles__v1development__location__field_indices_by_name, - 2, opentelemetry__proto__profiles__v1development__location__number_ranges, - (ProtobufCMessageInit) opentelemetry__proto__profiles__v1development__location__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1development__line__field_descriptors[3] = -{ - { - "function_index", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Line, function_index), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "line", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Line, line), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "column", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Line, column), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned opentelemetry__proto__profiles__v1development__line__field_indices_by_name[] = { - 2, /* field[2] = column */ - 0, /* field[0] = function_index */ - 1, /* field[1] = line */ -}; -static const ProtobufCIntRange opentelemetry__proto__profiles__v1development__line__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 3 } -}; -const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__line__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "opentelemetry.proto.profiles.v1development.Line", - "Line", - "Opentelemetry__Proto__Profiles__V1development__Line", - "opentelemetry.proto.profiles.v1development", - sizeof(Opentelemetry__Proto__Profiles__V1development__Line), - 3, - opentelemetry__proto__profiles__v1development__line__field_descriptors, - opentelemetry__proto__profiles__v1development__line__field_indices_by_name, - 1, opentelemetry__proto__profiles__v1development__line__number_ranges, - (ProtobufCMessageInit) opentelemetry__proto__profiles__v1development__line__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1development__function__field_descriptors[5] = -{ - { - "id", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Function, id), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "name", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Function, name), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "system_name", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Function, system_name), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "filename", - 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Function, filename), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "start_line", - 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__Function, start_line), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned opentelemetry__proto__profiles__v1development__function__field_indices_by_name[] = { - 3, /* field[3] = filename */ - 0, /* field[0] = id */ - 1, /* field[1] = name */ - 4, /* field[4] = start_line */ - 2, /* field[2] = system_name */ -}; -static const ProtobufCIntRange opentelemetry__proto__profiles__v1development__function__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 5 } -}; -const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__function__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "opentelemetry.proto.profiles.v1development.Function", - "Function", - "Opentelemetry__Proto__Profiles__V1development__Function", - "opentelemetry.proto.profiles.v1development", - sizeof(Opentelemetry__Proto__Profiles__V1development__Function), - 5, - opentelemetry__proto__profiles__v1development__function__field_descriptors, - opentelemetry__proto__profiles__v1development__function__field_indices_by_name, - 1, opentelemetry__proto__profiles__v1development__function__number_ranges, - (ProtobufCMessageInit) opentelemetry__proto__profiles__v1development__function__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCEnumValue opentelemetry__proto__profiles__v1development__aggregation_temporality__enum_values_by_number[3] = -{ - { "AGGREGATION_TEMPORALITY_UNSPECIFIED", "OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__AGGREGATION_TEMPORALITY__AGGREGATION_TEMPORALITY_UNSPECIFIED", 0 }, - { "AGGREGATION_TEMPORALITY_DELTA", "OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__AGGREGATION_TEMPORALITY__AGGREGATION_TEMPORALITY_DELTA", 1 }, - { "AGGREGATION_TEMPORALITY_CUMULATIVE", "OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__AGGREGATION_TEMPORALITY__AGGREGATION_TEMPORALITY_CUMULATIVE", 2 }, -}; -static const ProtobufCIntRange opentelemetry__proto__profiles__v1development__aggregation_temporality__value_ranges[] = { -{0, 0},{0, 3} -}; -static const ProtobufCEnumValueIndex opentelemetry__proto__profiles__v1development__aggregation_temporality__enum_values_by_name[3] = -{ - { "AGGREGATION_TEMPORALITY_CUMULATIVE", 2 }, - { "AGGREGATION_TEMPORALITY_DELTA", 1 }, - { "AGGREGATION_TEMPORALITY_UNSPECIFIED", 0 }, -}; -const ProtobufCEnumDescriptor opentelemetry__proto__profiles__v1development__aggregation_temporality__descriptor = -{ - PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, - "opentelemetry.proto.profiles.v1development.AggregationTemporality", - "AggregationTemporality", - "Opentelemetry__Proto__Profiles__V1development__AggregationTemporality", - "opentelemetry.proto.profiles.v1development", - 3, - opentelemetry__proto__profiles__v1development__aggregation_temporality__enum_values_by_number, - 3, - opentelemetry__proto__profiles__v1development__aggregation_temporality__enum_values_by_name, - 1, - opentelemetry__proto__profiles__v1development__aggregation_temporality__value_ranges, - NULL,NULL,NULL,NULL /* reserved[1234] */ -}; diff --git a/lib/fluent-otel-proto/proto_c/opentelemetry/proto/profiles/v1development/pprofextended.pb-c.h b/lib/fluent-otel-proto/proto_c/opentelemetry/proto/profiles/v1development/pprofextended.pb-c.h deleted file mode 100644 index deec0afb116..00000000000 --- a/lib/fluent-otel-proto/proto_c/opentelemetry/proto/profiles/v1development/pprofextended.pb-c.h +++ /dev/null @@ -1,799 +0,0 @@ -/* Generated by the protocol buffer compiler. DO NOT EDIT! */ -/* Generated from: opentelemetry/proto/profiles/v1development/pprofextended.proto */ - -#ifndef PROTOBUF_C_opentelemetry_2fproto_2fprofiles_2fv1development_2fpprofextended_2eproto__INCLUDED -#define PROTOBUF_C_opentelemetry_2fproto_2fprofiles_2fv1development_2fpprofextended_2eproto__INCLUDED - -#include - -PROTOBUF_C__BEGIN_DECLS - -#if PROTOBUF_C_VERSION_NUMBER < 1003000 -# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. -#elif 1005000 < PROTOBUF_C_MIN_COMPILER_VERSION -# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. -#endif - -#include "opentelemetry/proto/common/v1/common.pb-c.h" - -typedef struct Opentelemetry__Proto__Profiles__V1development__Profile Opentelemetry__Proto__Profiles__V1development__Profile; -typedef struct Opentelemetry__Proto__Profiles__V1development__AttributeUnit Opentelemetry__Proto__Profiles__V1development__AttributeUnit; -typedef struct Opentelemetry__Proto__Profiles__V1development__Link Opentelemetry__Proto__Profiles__V1development__Link; -typedef struct Opentelemetry__Proto__Profiles__V1development__ValueType Opentelemetry__Proto__Profiles__V1development__ValueType; -typedef struct Opentelemetry__Proto__Profiles__V1development__Sample Opentelemetry__Proto__Profiles__V1development__Sample; -typedef struct Opentelemetry__Proto__Profiles__V1development__Label Opentelemetry__Proto__Profiles__V1development__Label; -typedef struct Opentelemetry__Proto__Profiles__V1development__Mapping Opentelemetry__Proto__Profiles__V1development__Mapping; -typedef struct Opentelemetry__Proto__Profiles__V1development__Location Opentelemetry__Proto__Profiles__V1development__Location; -typedef struct Opentelemetry__Proto__Profiles__V1development__Line Opentelemetry__Proto__Profiles__V1development__Line; -typedef struct Opentelemetry__Proto__Profiles__V1development__Function Opentelemetry__Proto__Profiles__V1development__Function; - - -/* --- enums --- */ - -/* - * Specifies the method of aggregating metric values, either DELTA (change since last report) - * or CUMULATIVE (total since a fixed start time). - */ -typedef enum _Opentelemetry__Proto__Profiles__V1development__AggregationTemporality { - /* - * UNSPECIFIED is the default AggregationTemporality, it MUST not be used. - */ - OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__AGGREGATION_TEMPORALITY__AGGREGATION_TEMPORALITY_UNSPECIFIED = 0, - /* - ** DELTA is an AggregationTemporality for a profiler which reports - *changes since last report time. Successive metrics contain aggregation of - *values from continuous and non-overlapping intervals. - *The values for a DELTA metric are based only on the time interval - *associated with one measurement cycle. There is no dependency on - *previous measurements like is the case for CUMULATIVE metrics. - *For example, consider a system measuring the number of requests that - *it receives and reports the sum of these requests every second as a - *DELTA metric: - *1. The system starts receiving at time=t_0. - *2. A request is received, the system measures 1 request. - *3. A request is received, the system measures 1 request. - *4. A request is received, the system measures 1 request. - *5. The 1 second collection cycle ends. A metric is exported for the - *number of requests received over the interval of time t_0 to - *t_0+1 with a value of 3. - *6. A request is received, the system measures 1 request. - *7. A request is received, the system measures 1 request. - *8. The 1 second collection cycle ends. A metric is exported for the - *number of requests received over the interval of time t_0+1 to - *t_0+2 with a value of 2. - */ - OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__AGGREGATION_TEMPORALITY__AGGREGATION_TEMPORALITY_DELTA = 1, - /* - ** CUMULATIVE is an AggregationTemporality for a profiler which - *reports changes since a fixed start time. This means that current values - *of a CUMULATIVE metric depend on all previous measurements since the - *start time. Because of this, the sender is required to retain this state - *in some form. If this state is lost or invalidated, the CUMULATIVE metric - *values MUST be reset and a new fixed start time following the last - *reported measurement time sent MUST be used. - *For example, consider a system measuring the number of requests that - *it receives and reports the sum of these requests every second as a - *CUMULATIVE metric: - *1. The system starts receiving at time=t_0. - *2. A request is received, the system measures 1 request. - *3. A request is received, the system measures 1 request. - *4. A request is received, the system measures 1 request. - *5. The 1 second collection cycle ends. A metric is exported for the - *number of requests received over the interval of time t_0 to - *t_0+1 with a value of 3. - *6. A request is received, the system measures 1 request. - *7. A request is received, the system measures 1 request. - *8. The 1 second collection cycle ends. A metric is exported for the - *number of requests received over the interval of time t_0 to - *t_0+2 with a value of 5. - *9. The system experiences a fault and loses state. - *10. The system recovers and resumes receiving at time=t_1. - *11. A request is received, the system measures 1 request. - *12. The 1 second collection cycle ends. A metric is exported for the - *number of requests received over the interval of time t_1 to - *t_1+1 with a value of 1. - *Note: Even though, when reporting changes since last report time, using - *CUMULATIVE is valid, it is not recommended. - */ - OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__AGGREGATION_TEMPORALITY__AGGREGATION_TEMPORALITY_CUMULATIVE = 2 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__AGGREGATION_TEMPORALITY) -} Opentelemetry__Proto__Profiles__V1development__AggregationTemporality; - -/* --- messages --- */ - -/* - * Represents a complete profile, including sample types, samples, - * mappings to binaries, locations, functions, string table, and additional metadata. - */ -struct Opentelemetry__Proto__Profiles__V1development__Profile -{ - ProtobufCMessage base; - /* - * A description of the samples associated with each Sample.value. - * For a cpu profile this might be: - * [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]] - * For a heap profile, this might be: - * [["allocations","count"], ["space","bytes"]], - * If one of the values represents the number of events represented - * by the sample, by convention it should be at index 0 and use - * sample_type.unit == "count". - */ - size_t n_sample_type; - Opentelemetry__Proto__Profiles__V1development__ValueType **sample_type; - /* - * The set of samples recorded in this profile. - */ - size_t n_sample; - Opentelemetry__Proto__Profiles__V1development__Sample **sample; - /* - * Mapping from address ranges to the image/binary/library mapped - * into that address range. mapping[0] will be the main binary. - * If multiple binaries contribute to the Profile and no main - * binary can be identified, mapping[0] has no special meaning. - */ - size_t n_mapping; - Opentelemetry__Proto__Profiles__V1development__Mapping **mapping; - /* - * Locations referenced by samples via location_indices. - */ - size_t n_location; - Opentelemetry__Proto__Profiles__V1development__Location **location; - /* - * Array of locations referenced by samples. - */ - size_t n_location_indices; - int64_t *location_indices; - /* - * Functions referenced by locations. - */ - size_t n_function; - Opentelemetry__Proto__Profiles__V1development__Function **function; - /* - * Lookup table for attributes. - */ - size_t n_attribute_table; - Opentelemetry__Proto__Common__V1__KeyValue **attribute_table; - /* - * Represents a mapping between Attribute Keys and Units. - */ - size_t n_attribute_units; - Opentelemetry__Proto__Profiles__V1development__AttributeUnit **attribute_units; - /* - * Lookup table for links. - */ - size_t n_link_table; - Opentelemetry__Proto__Profiles__V1development__Link **link_table; - /* - * A common table for strings referenced by various messages. - * string_table[0] must always be "". - */ - size_t n_string_table; - char **string_table; - /* - * frames with Function.function_name fully matching the following - * regexp will be dropped from the samples, along with their successors. - */ - /* - * Index into string table. - */ - int64_t drop_frames; - /* - * frames with Function.function_name fully matching the following - * regexp will be kept, even if it matches drop_frames. - */ - /* - * Index into string table. - */ - int64_t keep_frames; - /* - * Time of collection (UTC) represented as nanoseconds past the epoch. - */ - int64_t time_nanos; - /* - * Duration of the profile, if a duration makes sense. - */ - int64_t duration_nanos; - /* - * The kind of events between sampled occurrences. - * e.g [ "cpu","cycles" ] or [ "heap","bytes" ] - */ - Opentelemetry__Proto__Profiles__V1development__ValueType *period_type; - /* - * The number of events between sampled occurrences. - */ - int64_t period; - /* - * Free-form text associated with the profile. The text is displayed as is - * to the user by the tools that read profiles (e.g. by pprof). This field - * should not be used to store any machine-readable information, it is only - * for human-friendly content. The profile must stay functional if this field - * is cleaned. - */ - /* - * Indices into string table. - */ - size_t n_comment; - int64_t *comment; - /* - * Index into the string table of the type of the preferred sample - * value. If unset, clients should default to the last sample value. - */ - int64_t default_sample_type; -}; -#define OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__PROFILE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__profiles__v1development__profile__descriptor) \ - , 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0, 0, 0, 0, NULL, 0, 0,NULL, 0 } - - -/* - * Represents a mapping between Attribute Keys and Units. - */ -struct Opentelemetry__Proto__Profiles__V1development__AttributeUnit -{ - ProtobufCMessage base; - /* - * Index into string table. - */ - int64_t attribute_key; - /* - * Index into string table. - */ - int64_t unit; -}; -#define OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__ATTRIBUTE_UNIT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__profiles__v1development__attribute_unit__descriptor) \ - , 0, 0 } - - -/* - * A pointer from a profile Sample to a trace Span. - * Connects a profile sample to a trace span, identified by unique trace and span IDs. - */ -struct Opentelemetry__Proto__Profiles__V1development__Link -{ - ProtobufCMessage base; - /* - * A unique identifier of a trace that this linked span is part of. The ID is a - * 16-byte array. - */ - ProtobufCBinaryData trace_id; - /* - * A unique identifier for the linked span. The ID is an 8-byte array. - */ - ProtobufCBinaryData span_id; -}; -#define OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__LINK__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__profiles__v1development__link__descriptor) \ - , {0,NULL}, {0,NULL} } - - -/* - * ValueType describes the type and units of a value, with an optional aggregation temporality. - */ -struct Opentelemetry__Proto__Profiles__V1development__ValueType -{ - ProtobufCMessage base; - /* - * Index into string table. - */ - int64_t type; - /* - * Index into string table. - */ - int64_t unit; - Opentelemetry__Proto__Profiles__V1development__AggregationTemporality aggregation_temporality; -}; -#define OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__VALUE_TYPE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__profiles__v1development__value_type__descriptor) \ - , 0, 0, OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__AGGREGATION_TEMPORALITY__AGGREGATION_TEMPORALITY_UNSPECIFIED } - - -/* - * Each Sample records values encountered in some program - * context. The program context is typically a stack trace, perhaps - * augmented with auxiliary information like the thread-id, some - * indicator of a higher level request being handled etc. - */ -struct Opentelemetry__Proto__Profiles__V1development__Sample -{ - ProtobufCMessage base; - /* - * The indices recorded here correspond to locations in Profile.location. - * The leaf is at location_index[0]. [deprecated, superseded by locations_start_index / locations_length] - */ - size_t n_location_index; - uint64_t *location_index; - /* - * locations_start_index along with locations_length refers to to a slice of locations in Profile.location. - * Supersedes location_index. - */ - uint64_t locations_start_index; - /* - * locations_length along with locations_start_index refers to a slice of locations in Profile.location. - * Supersedes location_index. - */ - uint64_t locations_length; - /* - * The type and unit of each value is defined by the corresponding - * entry in Profile.sample_type. All samples must have the same - * number of values, the same as the length of Profile.sample_type. - * When aggregating multiple samples into a single sample, the - * result has a list of values that is the element-wise sum of the - * lists of the originals. - */ - size_t n_value; - int64_t *value; - /* - * References to attributes in Profile.attribute_table. [optional] - */ - size_t n_attributes; - uint64_t *attributes; - /* - * Reference to link in Profile.link_table. [optional] - */ - uint64_t link; - /* - * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected - * to fall within the Profile's time range. [optional] - */ - size_t n_timestamps_unix_nano; - uint64_t *timestamps_unix_nano; -}; -#define OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__SAMPLE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__profiles__v1development__sample__descriptor) \ - , 0,NULL, 0, 0, 0,NULL, 0,NULL, 0, 0,NULL } - - -/* - * Provides additional context for a sample, - * such as thread ID or allocation size, with optional units. [deprecated] - */ -struct Opentelemetry__Proto__Profiles__V1development__Label -{ - ProtobufCMessage base; - /* - * Index into string table - */ - int64_t key; - /* - * At most one of the following must be present - */ - /* - * Index into string table - */ - int64_t str; - int64_t num; - /* - * Should only be present when num is present. - * Specifies the units of num. - * Use arbitrary string (for example, "requests") as a custom count unit. - * If no unit is specified, consumer may apply heuristic to deduce the unit. - * Consumers may also interpret units like "bytes" and "kilobytes" as memory - * units and units like "seconds" and "nanoseconds" as time units, - * and apply appropriate unit conversions to these. - */ - /* - * Index into string table - */ - int64_t num_unit; -}; -#define OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__LABEL__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__profiles__v1development__label__descriptor) \ - , 0, 0, 0, 0 } - - -/* - * Describes the mapping of a binary in memory, including its address range, - * file offset, and metadata like build ID - */ -struct Opentelemetry__Proto__Profiles__V1development__Mapping -{ - ProtobufCMessage base; - /* - * Unique nonzero id for the mapping. [deprecated] - */ - uint64_t id; - /* - * Address at which the binary (or DLL) is loaded into memory. - */ - uint64_t memory_start; - /* - * The limit of the address range occupied by this mapping. - */ - uint64_t memory_limit; - /* - * Offset in the binary that corresponds to the first mapped address. - */ - uint64_t file_offset; - /* - * The object this entry is loaded from. This can be a filename on - * disk for the main binary and shared libraries, or virtual - * abstractions like "[vdso]". - */ - /* - * Index into string table - */ - int64_t filename; - /* - * References to attributes in Profile.attribute_table. [optional] - */ - size_t n_attributes; - uint64_t *attributes; - /* - * The following fields indicate the resolution of symbolic info. - */ - protobuf_c_boolean has_functions; - protobuf_c_boolean has_filenames; - protobuf_c_boolean has_line_numbers; - protobuf_c_boolean has_inline_frames; -}; -#define OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__MAPPING__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__profiles__v1development__mapping__descriptor) \ - , 0, 0, 0, 0, 0, 0,NULL, 0, 0, 0, 0 } - - -/* - * Describes function and line table debug information. - */ -struct Opentelemetry__Proto__Profiles__V1development__Location -{ - ProtobufCMessage base; - /* - * Unique nonzero id for the location. A profile could use - * instruction addresses or any integer sequence as ids. [deprecated] - */ - uint64_t id; - /* - * The index of the corresponding profile.Mapping for this location. - * It can be unset if the mapping is unknown or not applicable for - * this profile type. - */ - uint64_t mapping_index; - /* - * The instruction address for this location, if available. It - * should be within [Mapping.memory_start...Mapping.memory_limit] - * for the corresponding mapping. A non-leaf address may be in the - * middle of a call instruction. It is up to display tools to find - * the beginning of the instruction if necessary. - */ - uint64_t address; - /* - * Multiple line indicates this location has inlined functions, - * where the last entry represents the caller into which the - * preceding entries were inlined. - * E.g., if memcpy() is inlined into printf: - * line[0].function_name == "memcpy" - * line[1].function_name == "printf" - */ - size_t n_line; - Opentelemetry__Proto__Profiles__V1development__Line **line; - /* - * Provides an indication that multiple symbols map to this location's - * address, for example due to identical code folding by the linker. In that - * case the line information above represents one of the multiple - * symbols. This field must be recomputed when the symbolization state of the - * profile changes. - */ - protobuf_c_boolean is_folded; - /* - * References to attributes in Profile.attribute_table. [optional] - */ - size_t n_attributes; - uint64_t *attributes; -}; -#define OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__LOCATION__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__profiles__v1development__location__descriptor) \ - , 0, 0, 0, 0,NULL, 0, 0,NULL } - - -/* - * Details a specific line in a source code, linked to a function. - */ -struct Opentelemetry__Proto__Profiles__V1development__Line -{ - ProtobufCMessage base; - /* - * The index of the corresponding profile.Function for this line. - */ - uint64_t function_index; - /* - * Line number in source code. - */ - int64_t line; - /* - * Column number in source code. - */ - int64_t column; -}; -#define OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__LINE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__profiles__v1development__line__descriptor) \ - , 0, 0, 0 } - - -/* - * Describes a function, including its human-readable name, system name, - * source file, and starting line number in the source. - */ -struct Opentelemetry__Proto__Profiles__V1development__Function -{ - ProtobufCMessage base; - /* - * Unique nonzero id for the function. [deprecated] - */ - uint64_t id; - /* - * Name of the function, in human-readable form if available. - */ - /* - * Index into string table - */ - int64_t name; - /* - * Name of the function, as identified by the system. - * For instance, it can be a C++ mangled name. - */ - /* - * Index into string table - */ - int64_t system_name; - /* - * Source file containing the function. - */ - /* - * Index into string table - */ - int64_t filename; - /* - * Line number in source file. - */ - int64_t start_line; -}; -#define OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__FUNCTION__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__profiles__v1development__function__descriptor) \ - , 0, 0, 0, 0, 0 } - - -/* Opentelemetry__Proto__Profiles__V1development__Profile methods */ -void opentelemetry__proto__profiles__v1development__profile__init - (Opentelemetry__Proto__Profiles__V1development__Profile *message); -size_t opentelemetry__proto__profiles__v1development__profile__get_packed_size - (const Opentelemetry__Proto__Profiles__V1development__Profile *message); -size_t opentelemetry__proto__profiles__v1development__profile__pack - (const Opentelemetry__Proto__Profiles__V1development__Profile *message, - uint8_t *out); -size_t opentelemetry__proto__profiles__v1development__profile__pack_to_buffer - (const Opentelemetry__Proto__Profiles__V1development__Profile *message, - ProtobufCBuffer *buffer); -Opentelemetry__Proto__Profiles__V1development__Profile * - opentelemetry__proto__profiles__v1development__profile__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void opentelemetry__proto__profiles__v1development__profile__free_unpacked - (Opentelemetry__Proto__Profiles__V1development__Profile *message, - ProtobufCAllocator *allocator); -/* Opentelemetry__Proto__Profiles__V1development__AttributeUnit methods */ -void opentelemetry__proto__profiles__v1development__attribute_unit__init - (Opentelemetry__Proto__Profiles__V1development__AttributeUnit *message); -size_t opentelemetry__proto__profiles__v1development__attribute_unit__get_packed_size - (const Opentelemetry__Proto__Profiles__V1development__AttributeUnit *message); -size_t opentelemetry__proto__profiles__v1development__attribute_unit__pack - (const Opentelemetry__Proto__Profiles__V1development__AttributeUnit *message, - uint8_t *out); -size_t opentelemetry__proto__profiles__v1development__attribute_unit__pack_to_buffer - (const Opentelemetry__Proto__Profiles__V1development__AttributeUnit *message, - ProtobufCBuffer *buffer); -Opentelemetry__Proto__Profiles__V1development__AttributeUnit * - opentelemetry__proto__profiles__v1development__attribute_unit__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void opentelemetry__proto__profiles__v1development__attribute_unit__free_unpacked - (Opentelemetry__Proto__Profiles__V1development__AttributeUnit *message, - ProtobufCAllocator *allocator); -/* Opentelemetry__Proto__Profiles__V1development__Link methods */ -void opentelemetry__proto__profiles__v1development__link__init - (Opentelemetry__Proto__Profiles__V1development__Link *message); -size_t opentelemetry__proto__profiles__v1development__link__get_packed_size - (const Opentelemetry__Proto__Profiles__V1development__Link *message); -size_t opentelemetry__proto__profiles__v1development__link__pack - (const Opentelemetry__Proto__Profiles__V1development__Link *message, - uint8_t *out); -size_t opentelemetry__proto__profiles__v1development__link__pack_to_buffer - (const Opentelemetry__Proto__Profiles__V1development__Link *message, - ProtobufCBuffer *buffer); -Opentelemetry__Proto__Profiles__V1development__Link * - opentelemetry__proto__profiles__v1development__link__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void opentelemetry__proto__profiles__v1development__link__free_unpacked - (Opentelemetry__Proto__Profiles__V1development__Link *message, - ProtobufCAllocator *allocator); -/* Opentelemetry__Proto__Profiles__V1development__ValueType methods */ -void opentelemetry__proto__profiles__v1development__value_type__init - (Opentelemetry__Proto__Profiles__V1development__ValueType *message); -size_t opentelemetry__proto__profiles__v1development__value_type__get_packed_size - (const Opentelemetry__Proto__Profiles__V1development__ValueType *message); -size_t opentelemetry__proto__profiles__v1development__value_type__pack - (const Opentelemetry__Proto__Profiles__V1development__ValueType *message, - uint8_t *out); -size_t opentelemetry__proto__profiles__v1development__value_type__pack_to_buffer - (const Opentelemetry__Proto__Profiles__V1development__ValueType *message, - ProtobufCBuffer *buffer); -Opentelemetry__Proto__Profiles__V1development__ValueType * - opentelemetry__proto__profiles__v1development__value_type__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void opentelemetry__proto__profiles__v1development__value_type__free_unpacked - (Opentelemetry__Proto__Profiles__V1development__ValueType *message, - ProtobufCAllocator *allocator); -/* Opentelemetry__Proto__Profiles__V1development__Sample methods */ -void opentelemetry__proto__profiles__v1development__sample__init - (Opentelemetry__Proto__Profiles__V1development__Sample *message); -size_t opentelemetry__proto__profiles__v1development__sample__get_packed_size - (const Opentelemetry__Proto__Profiles__V1development__Sample *message); -size_t opentelemetry__proto__profiles__v1development__sample__pack - (const Opentelemetry__Proto__Profiles__V1development__Sample *message, - uint8_t *out); -size_t opentelemetry__proto__profiles__v1development__sample__pack_to_buffer - (const Opentelemetry__Proto__Profiles__V1development__Sample *message, - ProtobufCBuffer *buffer); -Opentelemetry__Proto__Profiles__V1development__Sample * - opentelemetry__proto__profiles__v1development__sample__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void opentelemetry__proto__profiles__v1development__sample__free_unpacked - (Opentelemetry__Proto__Profiles__V1development__Sample *message, - ProtobufCAllocator *allocator); -/* Opentelemetry__Proto__Profiles__V1development__Label methods */ -void opentelemetry__proto__profiles__v1development__label__init - (Opentelemetry__Proto__Profiles__V1development__Label *message); -size_t opentelemetry__proto__profiles__v1development__label__get_packed_size - (const Opentelemetry__Proto__Profiles__V1development__Label *message); -size_t opentelemetry__proto__profiles__v1development__label__pack - (const Opentelemetry__Proto__Profiles__V1development__Label *message, - uint8_t *out); -size_t opentelemetry__proto__profiles__v1development__label__pack_to_buffer - (const Opentelemetry__Proto__Profiles__V1development__Label *message, - ProtobufCBuffer *buffer); -Opentelemetry__Proto__Profiles__V1development__Label * - opentelemetry__proto__profiles__v1development__label__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void opentelemetry__proto__profiles__v1development__label__free_unpacked - (Opentelemetry__Proto__Profiles__V1development__Label *message, - ProtobufCAllocator *allocator); -/* Opentelemetry__Proto__Profiles__V1development__Mapping methods */ -void opentelemetry__proto__profiles__v1development__mapping__init - (Opentelemetry__Proto__Profiles__V1development__Mapping *message); -size_t opentelemetry__proto__profiles__v1development__mapping__get_packed_size - (const Opentelemetry__Proto__Profiles__V1development__Mapping *message); -size_t opentelemetry__proto__profiles__v1development__mapping__pack - (const Opentelemetry__Proto__Profiles__V1development__Mapping *message, - uint8_t *out); -size_t opentelemetry__proto__profiles__v1development__mapping__pack_to_buffer - (const Opentelemetry__Proto__Profiles__V1development__Mapping *message, - ProtobufCBuffer *buffer); -Opentelemetry__Proto__Profiles__V1development__Mapping * - opentelemetry__proto__profiles__v1development__mapping__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void opentelemetry__proto__profiles__v1development__mapping__free_unpacked - (Opentelemetry__Proto__Profiles__V1development__Mapping *message, - ProtobufCAllocator *allocator); -/* Opentelemetry__Proto__Profiles__V1development__Location methods */ -void opentelemetry__proto__profiles__v1development__location__init - (Opentelemetry__Proto__Profiles__V1development__Location *message); -size_t opentelemetry__proto__profiles__v1development__location__get_packed_size - (const Opentelemetry__Proto__Profiles__V1development__Location *message); -size_t opentelemetry__proto__profiles__v1development__location__pack - (const Opentelemetry__Proto__Profiles__V1development__Location *message, - uint8_t *out); -size_t opentelemetry__proto__profiles__v1development__location__pack_to_buffer - (const Opentelemetry__Proto__Profiles__V1development__Location *message, - ProtobufCBuffer *buffer); -Opentelemetry__Proto__Profiles__V1development__Location * - opentelemetry__proto__profiles__v1development__location__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void opentelemetry__proto__profiles__v1development__location__free_unpacked - (Opentelemetry__Proto__Profiles__V1development__Location *message, - ProtobufCAllocator *allocator); -/* Opentelemetry__Proto__Profiles__V1development__Line methods */ -void opentelemetry__proto__profiles__v1development__line__init - (Opentelemetry__Proto__Profiles__V1development__Line *message); -size_t opentelemetry__proto__profiles__v1development__line__get_packed_size - (const Opentelemetry__Proto__Profiles__V1development__Line *message); -size_t opentelemetry__proto__profiles__v1development__line__pack - (const Opentelemetry__Proto__Profiles__V1development__Line *message, - uint8_t *out); -size_t opentelemetry__proto__profiles__v1development__line__pack_to_buffer - (const Opentelemetry__Proto__Profiles__V1development__Line *message, - ProtobufCBuffer *buffer); -Opentelemetry__Proto__Profiles__V1development__Line * - opentelemetry__proto__profiles__v1development__line__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void opentelemetry__proto__profiles__v1development__line__free_unpacked - (Opentelemetry__Proto__Profiles__V1development__Line *message, - ProtobufCAllocator *allocator); -/* Opentelemetry__Proto__Profiles__V1development__Function methods */ -void opentelemetry__proto__profiles__v1development__function__init - (Opentelemetry__Proto__Profiles__V1development__Function *message); -size_t opentelemetry__proto__profiles__v1development__function__get_packed_size - (const Opentelemetry__Proto__Profiles__V1development__Function *message); -size_t opentelemetry__proto__profiles__v1development__function__pack - (const Opentelemetry__Proto__Profiles__V1development__Function *message, - uint8_t *out); -size_t opentelemetry__proto__profiles__v1development__function__pack_to_buffer - (const Opentelemetry__Proto__Profiles__V1development__Function *message, - ProtobufCBuffer *buffer); -Opentelemetry__Proto__Profiles__V1development__Function * - opentelemetry__proto__profiles__v1development__function__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void opentelemetry__proto__profiles__v1development__function__free_unpacked - (Opentelemetry__Proto__Profiles__V1development__Function *message, - ProtobufCAllocator *allocator); -/* --- per-message closures --- */ - -typedef void (*Opentelemetry__Proto__Profiles__V1development__Profile_Closure) - (const Opentelemetry__Proto__Profiles__V1development__Profile *message, - void *closure_data); -typedef void (*Opentelemetry__Proto__Profiles__V1development__AttributeUnit_Closure) - (const Opentelemetry__Proto__Profiles__V1development__AttributeUnit *message, - void *closure_data); -typedef void (*Opentelemetry__Proto__Profiles__V1development__Link_Closure) - (const Opentelemetry__Proto__Profiles__V1development__Link *message, - void *closure_data); -typedef void (*Opentelemetry__Proto__Profiles__V1development__ValueType_Closure) - (const Opentelemetry__Proto__Profiles__V1development__ValueType *message, - void *closure_data); -typedef void (*Opentelemetry__Proto__Profiles__V1development__Sample_Closure) - (const Opentelemetry__Proto__Profiles__V1development__Sample *message, - void *closure_data); -typedef void (*Opentelemetry__Proto__Profiles__V1development__Label_Closure) - (const Opentelemetry__Proto__Profiles__V1development__Label *message, - void *closure_data); -typedef void (*Opentelemetry__Proto__Profiles__V1development__Mapping_Closure) - (const Opentelemetry__Proto__Profiles__V1development__Mapping *message, - void *closure_data); -typedef void (*Opentelemetry__Proto__Profiles__V1development__Location_Closure) - (const Opentelemetry__Proto__Profiles__V1development__Location *message, - void *closure_data); -typedef void (*Opentelemetry__Proto__Profiles__V1development__Line_Closure) - (const Opentelemetry__Proto__Profiles__V1development__Line *message, - void *closure_data); -typedef void (*Opentelemetry__Proto__Profiles__V1development__Function_Closure) - (const Opentelemetry__Proto__Profiles__V1development__Function *message, - void *closure_data); - -/* --- services --- */ - - -/* --- descriptors --- */ - -extern const ProtobufCEnumDescriptor opentelemetry__proto__profiles__v1development__aggregation_temporality__descriptor; -extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__profile__descriptor; -extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__attribute_unit__descriptor; -extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__link__descriptor; -extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__value_type__descriptor; -extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__sample__descriptor; -extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__label__descriptor; -extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__mapping__descriptor; -extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__location__descriptor; -extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__line__descriptor; -extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__function__descriptor; - -PROTOBUF_C__END_DECLS - - -#endif /* PROTOBUF_C_opentelemetry_2fproto_2fprofiles_2fv1development_2fpprofextended_2eproto__INCLUDED */ diff --git a/lib/fluent-otel-proto/proto_c/opentelemetry/proto/profiles/v1development/profiles.pb-c.c b/lib/fluent-otel-proto/proto_c/opentelemetry/proto/profiles/v1development/profiles.pb-c.c index 1af8619d953..7714ce4285c 100644 --- a/lib/fluent-otel-proto/proto_c/opentelemetry/proto/profiles/v1development/profiles.pb-c.c +++ b/lib/fluent-otel-proto/proto_c/opentelemetry/proto/profiles/v1development/profiles.pb-c.c @@ -142,49 +142,454 @@ void opentelemetry__proto__profiles__v1development__scope_profiles__free_unpac assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__scope_profiles__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -void opentelemetry__proto__profiles__v1development__profile_container__init - (Opentelemetry__Proto__Profiles__V1development__ProfileContainer *message) +void opentelemetry__proto__profiles__v1development__profile__init + (Opentelemetry__Proto__Profiles__V1development__Profile *message) { - static const Opentelemetry__Proto__Profiles__V1development__ProfileContainer init_value = OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__PROFILE_CONTAINER__INIT; + static const Opentelemetry__Proto__Profiles__V1development__Profile init_value = OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__PROFILE__INIT; *message = init_value; } -size_t opentelemetry__proto__profiles__v1development__profile_container__get_packed_size - (const Opentelemetry__Proto__Profiles__V1development__ProfileContainer *message) +size_t opentelemetry__proto__profiles__v1development__profile__get_packed_size + (const Opentelemetry__Proto__Profiles__V1development__Profile *message) { - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__profile_container__descriptor); + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__profile__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } -size_t opentelemetry__proto__profiles__v1development__profile_container__pack - (const Opentelemetry__Proto__Profiles__V1development__ProfileContainer *message, +size_t opentelemetry__proto__profiles__v1development__profile__pack + (const Opentelemetry__Proto__Profiles__V1development__Profile *message, uint8_t *out) { - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__profile_container__descriptor); + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__profile__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } -size_t opentelemetry__proto__profiles__v1development__profile_container__pack_to_buffer - (const Opentelemetry__Proto__Profiles__V1development__ProfileContainer *message, +size_t opentelemetry__proto__profiles__v1development__profile__pack_to_buffer + (const Opentelemetry__Proto__Profiles__V1development__Profile *message, ProtobufCBuffer *buffer) { - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__profile_container__descriptor); + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__profile__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } -Opentelemetry__Proto__Profiles__V1development__ProfileContainer * - opentelemetry__proto__profiles__v1development__profile_container__unpack +Opentelemetry__Proto__Profiles__V1development__Profile * + opentelemetry__proto__profiles__v1development__profile__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { - return (Opentelemetry__Proto__Profiles__V1development__ProfileContainer *) - protobuf_c_message_unpack (&opentelemetry__proto__profiles__v1development__profile_container__descriptor, + return (Opentelemetry__Proto__Profiles__V1development__Profile *) + protobuf_c_message_unpack (&opentelemetry__proto__profiles__v1development__profile__descriptor, allocator, len, data); } -void opentelemetry__proto__profiles__v1development__profile_container__free_unpacked - (Opentelemetry__Proto__Profiles__V1development__ProfileContainer *message, +void opentelemetry__proto__profiles__v1development__profile__free_unpacked + (Opentelemetry__Proto__Profiles__V1development__Profile *message, ProtobufCAllocator *allocator) { if(!message) return; - assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__profile_container__descriptor); + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__profile__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void opentelemetry__proto__profiles__v1development__attribute_unit__init + (Opentelemetry__Proto__Profiles__V1development__AttributeUnit *message) +{ + static const Opentelemetry__Proto__Profiles__V1development__AttributeUnit init_value = OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__ATTRIBUTE_UNIT__INIT; + *message = init_value; +} +size_t opentelemetry__proto__profiles__v1development__attribute_unit__get_packed_size + (const Opentelemetry__Proto__Profiles__V1development__AttributeUnit *message) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__attribute_unit__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t opentelemetry__proto__profiles__v1development__attribute_unit__pack + (const Opentelemetry__Proto__Profiles__V1development__AttributeUnit *message, + uint8_t *out) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__attribute_unit__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t opentelemetry__proto__profiles__v1development__attribute_unit__pack_to_buffer + (const Opentelemetry__Proto__Profiles__V1development__AttributeUnit *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__attribute_unit__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Opentelemetry__Proto__Profiles__V1development__AttributeUnit * + opentelemetry__proto__profiles__v1development__attribute_unit__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Opentelemetry__Proto__Profiles__V1development__AttributeUnit *) + protobuf_c_message_unpack (&opentelemetry__proto__profiles__v1development__attribute_unit__descriptor, + allocator, len, data); +} +void opentelemetry__proto__profiles__v1development__attribute_unit__free_unpacked + (Opentelemetry__Proto__Profiles__V1development__AttributeUnit *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__attribute_unit__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void opentelemetry__proto__profiles__v1development__link__init + (Opentelemetry__Proto__Profiles__V1development__Link *message) +{ + static const Opentelemetry__Proto__Profiles__V1development__Link init_value = OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__LINK__INIT; + *message = init_value; +} +size_t opentelemetry__proto__profiles__v1development__link__get_packed_size + (const Opentelemetry__Proto__Profiles__V1development__Link *message) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__link__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t opentelemetry__proto__profiles__v1development__link__pack + (const Opentelemetry__Proto__Profiles__V1development__Link *message, + uint8_t *out) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__link__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t opentelemetry__proto__profiles__v1development__link__pack_to_buffer + (const Opentelemetry__Proto__Profiles__V1development__Link *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__link__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Opentelemetry__Proto__Profiles__V1development__Link * + opentelemetry__proto__profiles__v1development__link__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Opentelemetry__Proto__Profiles__V1development__Link *) + protobuf_c_message_unpack (&opentelemetry__proto__profiles__v1development__link__descriptor, + allocator, len, data); +} +void opentelemetry__proto__profiles__v1development__link__free_unpacked + (Opentelemetry__Proto__Profiles__V1development__Link *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__link__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void opentelemetry__proto__profiles__v1development__value_type__init + (Opentelemetry__Proto__Profiles__V1development__ValueType *message) +{ + static const Opentelemetry__Proto__Profiles__V1development__ValueType init_value = OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__VALUE_TYPE__INIT; + *message = init_value; +} +size_t opentelemetry__proto__profiles__v1development__value_type__get_packed_size + (const Opentelemetry__Proto__Profiles__V1development__ValueType *message) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__value_type__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t opentelemetry__proto__profiles__v1development__value_type__pack + (const Opentelemetry__Proto__Profiles__V1development__ValueType *message, + uint8_t *out) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__value_type__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t opentelemetry__proto__profiles__v1development__value_type__pack_to_buffer + (const Opentelemetry__Proto__Profiles__V1development__ValueType *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__value_type__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Opentelemetry__Proto__Profiles__V1development__ValueType * + opentelemetry__proto__profiles__v1development__value_type__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Opentelemetry__Proto__Profiles__V1development__ValueType *) + protobuf_c_message_unpack (&opentelemetry__proto__profiles__v1development__value_type__descriptor, + allocator, len, data); +} +void opentelemetry__proto__profiles__v1development__value_type__free_unpacked + (Opentelemetry__Proto__Profiles__V1development__ValueType *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__value_type__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void opentelemetry__proto__profiles__v1development__sample__init + (Opentelemetry__Proto__Profiles__V1development__Sample *message) +{ + static const Opentelemetry__Proto__Profiles__V1development__Sample init_value = OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__SAMPLE__INIT; + *message = init_value; +} +size_t opentelemetry__proto__profiles__v1development__sample__get_packed_size + (const Opentelemetry__Proto__Profiles__V1development__Sample *message) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__sample__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t opentelemetry__proto__profiles__v1development__sample__pack + (const Opentelemetry__Proto__Profiles__V1development__Sample *message, + uint8_t *out) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__sample__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t opentelemetry__proto__profiles__v1development__sample__pack_to_buffer + (const Opentelemetry__Proto__Profiles__V1development__Sample *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__sample__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Opentelemetry__Proto__Profiles__V1development__Sample * + opentelemetry__proto__profiles__v1development__sample__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Opentelemetry__Proto__Profiles__V1development__Sample *) + protobuf_c_message_unpack (&opentelemetry__proto__profiles__v1development__sample__descriptor, + allocator, len, data); +} +void opentelemetry__proto__profiles__v1development__sample__free_unpacked + (Opentelemetry__Proto__Profiles__V1development__Sample *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__sample__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void opentelemetry__proto__profiles__v1development__label__init + (Opentelemetry__Proto__Profiles__V1development__Label *message) +{ + static const Opentelemetry__Proto__Profiles__V1development__Label init_value = OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__LABEL__INIT; + *message = init_value; +} +size_t opentelemetry__proto__profiles__v1development__label__get_packed_size + (const Opentelemetry__Proto__Profiles__V1development__Label *message) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__label__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t opentelemetry__proto__profiles__v1development__label__pack + (const Opentelemetry__Proto__Profiles__V1development__Label *message, + uint8_t *out) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__label__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t opentelemetry__proto__profiles__v1development__label__pack_to_buffer + (const Opentelemetry__Proto__Profiles__V1development__Label *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__label__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Opentelemetry__Proto__Profiles__V1development__Label * + opentelemetry__proto__profiles__v1development__label__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Opentelemetry__Proto__Profiles__V1development__Label *) + protobuf_c_message_unpack (&opentelemetry__proto__profiles__v1development__label__descriptor, + allocator, len, data); +} +void opentelemetry__proto__profiles__v1development__label__free_unpacked + (Opentelemetry__Proto__Profiles__V1development__Label *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__label__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void opentelemetry__proto__profiles__v1development__mapping__init + (Opentelemetry__Proto__Profiles__V1development__Mapping *message) +{ + static const Opentelemetry__Proto__Profiles__V1development__Mapping init_value = OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__MAPPING__INIT; + *message = init_value; +} +size_t opentelemetry__proto__profiles__v1development__mapping__get_packed_size + (const Opentelemetry__Proto__Profiles__V1development__Mapping *message) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__mapping__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t opentelemetry__proto__profiles__v1development__mapping__pack + (const Opentelemetry__Proto__Profiles__V1development__Mapping *message, + uint8_t *out) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__mapping__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t opentelemetry__proto__profiles__v1development__mapping__pack_to_buffer + (const Opentelemetry__Proto__Profiles__V1development__Mapping *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__mapping__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Opentelemetry__Proto__Profiles__V1development__Mapping * + opentelemetry__proto__profiles__v1development__mapping__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Opentelemetry__Proto__Profiles__V1development__Mapping *) + protobuf_c_message_unpack (&opentelemetry__proto__profiles__v1development__mapping__descriptor, + allocator, len, data); +} +void opentelemetry__proto__profiles__v1development__mapping__free_unpacked + (Opentelemetry__Proto__Profiles__V1development__Mapping *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__mapping__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void opentelemetry__proto__profiles__v1development__location__init + (Opentelemetry__Proto__Profiles__V1development__Location *message) +{ + static const Opentelemetry__Proto__Profiles__V1development__Location init_value = OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__LOCATION__INIT; + *message = init_value; +} +size_t opentelemetry__proto__profiles__v1development__location__get_packed_size + (const Opentelemetry__Proto__Profiles__V1development__Location *message) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__location__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t opentelemetry__proto__profiles__v1development__location__pack + (const Opentelemetry__Proto__Profiles__V1development__Location *message, + uint8_t *out) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__location__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t opentelemetry__proto__profiles__v1development__location__pack_to_buffer + (const Opentelemetry__Proto__Profiles__V1development__Location *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__location__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Opentelemetry__Proto__Profiles__V1development__Location * + opentelemetry__proto__profiles__v1development__location__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Opentelemetry__Proto__Profiles__V1development__Location *) + protobuf_c_message_unpack (&opentelemetry__proto__profiles__v1development__location__descriptor, + allocator, len, data); +} +void opentelemetry__proto__profiles__v1development__location__free_unpacked + (Opentelemetry__Proto__Profiles__V1development__Location *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__location__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void opentelemetry__proto__profiles__v1development__line__init + (Opentelemetry__Proto__Profiles__V1development__Line *message) +{ + static const Opentelemetry__Proto__Profiles__V1development__Line init_value = OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__LINE__INIT; + *message = init_value; +} +size_t opentelemetry__proto__profiles__v1development__line__get_packed_size + (const Opentelemetry__Proto__Profiles__V1development__Line *message) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__line__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t opentelemetry__proto__profiles__v1development__line__pack + (const Opentelemetry__Proto__Profiles__V1development__Line *message, + uint8_t *out) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__line__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t opentelemetry__proto__profiles__v1development__line__pack_to_buffer + (const Opentelemetry__Proto__Profiles__V1development__Line *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__line__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Opentelemetry__Proto__Profiles__V1development__Line * + opentelemetry__proto__profiles__v1development__line__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Opentelemetry__Proto__Profiles__V1development__Line *) + protobuf_c_message_unpack (&opentelemetry__proto__profiles__v1development__line__descriptor, + allocator, len, data); +} +void opentelemetry__proto__profiles__v1development__line__free_unpacked + (Opentelemetry__Proto__Profiles__V1development__Line *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__line__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void opentelemetry__proto__profiles__v1development__function__init + (Opentelemetry__Proto__Profiles__V1development__Function *message) +{ + static const Opentelemetry__Proto__Profiles__V1development__Function init_value = OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__FUNCTION__INIT; + *message = init_value; +} +size_t opentelemetry__proto__profiles__v1development__function__get_packed_size + (const Opentelemetry__Proto__Profiles__V1development__Function *message) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__function__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t opentelemetry__proto__profiles__v1development__function__pack + (const Opentelemetry__Proto__Profiles__V1development__Function *message, + uint8_t *out) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__function__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t opentelemetry__proto__profiles__v1development__function__pack_to_buffer + (const Opentelemetry__Proto__Profiles__V1development__Function *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__function__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Opentelemetry__Proto__Profiles__V1development__Function * + opentelemetry__proto__profiles__v1development__function__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Opentelemetry__Proto__Profiles__V1development__Function *) + protobuf_c_message_unpack (&opentelemetry__proto__profiles__v1development__function__descriptor, + allocator, len, data); +} +void opentelemetry__proto__profiles__v1development__function__free_unpacked + (Opentelemetry__Proto__Profiles__V1development__Function *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &opentelemetry__proto__profiles__v1development__function__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1development__profiles_data__field_descriptors[1] = @@ -310,7 +715,7 @@ static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1developm PROTOBUF_C_TYPE_MESSAGE, offsetof(Opentelemetry__Proto__Profiles__V1development__ScopeProfiles, n_profiles), offsetof(Opentelemetry__Proto__Profiles__V1development__ScopeProfiles, profiles), - &opentelemetry__proto__profiles__v1development__profile_container__descriptor, + &opentelemetry__proto__profiles__v1development__profile__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ @@ -353,63 +758,255 @@ const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__ (ProtobufCMessageInit) opentelemetry__proto__profiles__v1development__scope_profiles__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1development__profile_container__field_descriptors[8] = +static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1development__profile__field_descriptors[23] = { { - "profile_id", + "sample_type", 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BYTES, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__ProfileContainer, profile_id), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, n_sample_type), + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, sample_type), + &opentelemetry__proto__profiles__v1development__value_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "start_time_unix_nano", + "sample", 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_FIXED64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__ProfileContainer, start_time_unix_nano), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, n_sample), + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, sample), + &opentelemetry__proto__profiles__v1development__sample__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "end_time_unix_nano", + "mapping", 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_FIXED64, - 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__ProfileContainer, end_time_unix_nano), - NULL, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, n_mapping), + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, mapping), + &opentelemetry__proto__profiles__v1development__mapping__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "attributes", + "location", 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - offsetof(Opentelemetry__Proto__Profiles__V1development__ProfileContainer, n_attributes), - offsetof(Opentelemetry__Proto__Profiles__V1development__ProfileContainer, attributes), - &opentelemetry__proto__common__v1__key_value__descriptor, + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, n_location), + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, location), + &opentelemetry__proto__profiles__v1development__location__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "dropped_attributes_count", + "function", 5, - PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, n_function), + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, function), + &opentelemetry__proto__profiles__v1development__function__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "string_table", + 6, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_STRING, + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, n_string_table), + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, string_table), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "drop_frames", + 7, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, drop_frames), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "keep_frames", + 8, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, keep_frames), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "time_nanos", + 9, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, time_nanos), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "duration_nanos", + 10, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, duration_nanos), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "period_type", + 11, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, period_type), + &opentelemetry__proto__profiles__v1development__value_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "period", + 12, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, period), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "comment", + 13, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_INT64, + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, n_comment), + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, comment), + NULL, + NULL, + PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "default_sample_type", + 14, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, default_sample_type), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "location_indices", + 15, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_INT64, + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, n_location_indices), + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, location_indices), + NULL, + NULL, + PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "attribute_table", + 16, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, n_attribute_table), + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, attribute_table), + &opentelemetry__proto__common__v1__key_value__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "attribute_units", + 17, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, n_attribute_units), + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, attribute_units), + &opentelemetry__proto__profiles__v1development__attribute_unit__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "link_table", + 18, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, n_link_table), + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, link_table), + &opentelemetry__proto__profiles__v1development__link__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "profile_id", + 19, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, profile_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "attributes", + 20, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, n_attributes), + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, attributes), + &opentelemetry__proto__common__v1__key_value__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "dropped_attributes_count", + 21, + PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__ProfileContainer, dropped_attributes_count), + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, dropped_attributes_count), NULL, NULL, 0, /* flags */ @@ -417,11 +1014,11 @@ static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1developm }, { "original_payload_format", - 6, + 22, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__ProfileContainer, original_payload_format), + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, original_payload_format), NULL, &protobuf_c_empty_string, 0, /* flags */ @@ -429,56 +1026,866 @@ static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1developm }, { "original_payload", - 7, + 23, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BYTES, 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__ProfileContainer, original_payload), + offsetof(Opentelemetry__Proto__Profiles__V1development__Profile, original_payload), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, +}; +static const unsigned opentelemetry__proto__profiles__v1development__profile__field_indices_by_name[] = { + 15, /* field[15] = attribute_table */ + 16, /* field[16] = attribute_units */ + 19, /* field[19] = attributes */ + 12, /* field[12] = comment */ + 13, /* field[13] = default_sample_type */ + 6, /* field[6] = drop_frames */ + 20, /* field[20] = dropped_attributes_count */ + 9, /* field[9] = duration_nanos */ + 4, /* field[4] = function */ + 7, /* field[7] = keep_frames */ + 17, /* field[17] = link_table */ + 3, /* field[3] = location */ + 14, /* field[14] = location_indices */ + 2, /* field[2] = mapping */ + 22, /* field[22] = original_payload */ + 21, /* field[21] = original_payload_format */ + 11, /* field[11] = period */ + 10, /* field[10] = period_type */ + 18, /* field[18] = profile_id */ + 1, /* field[1] = sample */ + 0, /* field[0] = sample_type */ + 5, /* field[5] = string_table */ + 8, /* field[8] = time_nanos */ +}; +static const ProtobufCIntRange opentelemetry__proto__profiles__v1development__profile__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 23 } +}; +const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__profile__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "opentelemetry.proto.profiles.v1development.Profile", + "Profile", + "Opentelemetry__Proto__Profiles__V1development__Profile", + "opentelemetry.proto.profiles.v1development", + sizeof(Opentelemetry__Proto__Profiles__V1development__Profile), + 23, + opentelemetry__proto__profiles__v1development__profile__field_descriptors, + opentelemetry__proto__profiles__v1development__profile__field_indices_by_name, + 1, opentelemetry__proto__profiles__v1development__profile__number_ranges, + (ProtobufCMessageInit) opentelemetry__proto__profiles__v1development__profile__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1development__attribute_unit__field_descriptors[2] = +{ { - "profile", - 8, + "attribute_key", + 1, PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, + PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ - offsetof(Opentelemetry__Proto__Profiles__V1development__ProfileContainer, profile), - &opentelemetry__proto__profiles__v1development__profile__descriptor, + offsetof(Opentelemetry__Proto__Profiles__V1development__AttributeUnit, attribute_key), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "unit", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__AttributeUnit, unit), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned opentelemetry__proto__profiles__v1development__attribute_unit__field_indices_by_name[] = { + 0, /* field[0] = attribute_key */ + 1, /* field[1] = unit */ +}; +static const ProtobufCIntRange opentelemetry__proto__profiles__v1development__attribute_unit__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__attribute_unit__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "opentelemetry.proto.profiles.v1development.AttributeUnit", + "AttributeUnit", + "Opentelemetry__Proto__Profiles__V1development__AttributeUnit", + "opentelemetry.proto.profiles.v1development", + sizeof(Opentelemetry__Proto__Profiles__V1development__AttributeUnit), + 2, + opentelemetry__proto__profiles__v1development__attribute_unit__field_descriptors, + opentelemetry__proto__profiles__v1development__attribute_unit__field_indices_by_name, + 1, opentelemetry__proto__profiles__v1development__attribute_unit__number_ranges, + (ProtobufCMessageInit) opentelemetry__proto__profiles__v1development__attribute_unit__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1development__link__field_descriptors[2] = +{ + { + "trace_id", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Link, trace_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "span_id", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Link, span_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned opentelemetry__proto__profiles__v1development__link__field_indices_by_name[] = { + 1, /* field[1] = span_id */ + 0, /* field[0] = trace_id */ +}; +static const ProtobufCIntRange opentelemetry__proto__profiles__v1development__link__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__link__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "opentelemetry.proto.profiles.v1development.Link", + "Link", + "Opentelemetry__Proto__Profiles__V1development__Link", + "opentelemetry.proto.profiles.v1development", + sizeof(Opentelemetry__Proto__Profiles__V1development__Link), + 2, + opentelemetry__proto__profiles__v1development__link__field_descriptors, + opentelemetry__proto__profiles__v1development__link__field_indices_by_name, + 1, opentelemetry__proto__profiles__v1development__link__number_ranges, + (ProtobufCMessageInit) opentelemetry__proto__profiles__v1development__link__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1development__value_type__field_descriptors[3] = +{ + { + "type", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__ValueType, type), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "unit", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__ValueType, unit), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "aggregation_temporality", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__ValueType, aggregation_temporality), + &opentelemetry__proto__profiles__v1development__aggregation_temporality__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned opentelemetry__proto__profiles__v1development__profile_container__field_indices_by_name[] = { - 3, /* field[3] = attributes */ - 4, /* field[4] = dropped_attributes_count */ - 2, /* field[2] = end_time_unix_nano */ - 6, /* field[6] = original_payload */ - 5, /* field[5] = original_payload_format */ - 7, /* field[7] = profile */ - 0, /* field[0] = profile_id */ - 1, /* field[1] = start_time_unix_nano */ +static const unsigned opentelemetry__proto__profiles__v1development__value_type__field_indices_by_name[] = { + 2, /* field[2] = aggregation_temporality */ + 0, /* field[0] = type */ + 1, /* field[1] = unit */ }; -static const ProtobufCIntRange opentelemetry__proto__profiles__v1development__profile_container__number_ranges[1 + 1] = +static const ProtobufCIntRange opentelemetry__proto__profiles__v1development__value_type__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 8 } + { 0, 3 } }; -const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__profile_container__descriptor = +const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__value_type__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "opentelemetry.proto.profiles.v1development.ProfileContainer", - "ProfileContainer", - "Opentelemetry__Proto__Profiles__V1development__ProfileContainer", + "opentelemetry.proto.profiles.v1development.ValueType", + "ValueType", + "Opentelemetry__Proto__Profiles__V1development__ValueType", "opentelemetry.proto.profiles.v1development", - sizeof(Opentelemetry__Proto__Profiles__V1development__ProfileContainer), - 8, - opentelemetry__proto__profiles__v1development__profile_container__field_descriptors, - opentelemetry__proto__profiles__v1development__profile_container__field_indices_by_name, - 1, opentelemetry__proto__profiles__v1development__profile_container__number_ranges, - (ProtobufCMessageInit) opentelemetry__proto__profiles__v1development__profile_container__init, + sizeof(Opentelemetry__Proto__Profiles__V1development__ValueType), + 3, + opentelemetry__proto__profiles__v1development__value_type__field_descriptors, + opentelemetry__proto__profiles__v1development__value_type__field_indices_by_name, + 1, opentelemetry__proto__profiles__v1development__value_type__number_ranges, + (ProtobufCMessageInit) opentelemetry__proto__profiles__v1development__value_type__init, NULL,NULL,NULL /* reserved[123] */ }; +static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1development__sample__field_descriptors[7] = +{ + { + "location_index", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_UINT64, + offsetof(Opentelemetry__Proto__Profiles__V1development__Sample, n_location_index), + offsetof(Opentelemetry__Proto__Profiles__V1development__Sample, location_index), + NULL, + NULL, + PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "value", + 2, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_INT64, + offsetof(Opentelemetry__Proto__Profiles__V1development__Sample, n_value), + offsetof(Opentelemetry__Proto__Profiles__V1development__Sample, value), + NULL, + NULL, + PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "locations_start_index", + 7, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Sample, locations_start_index), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "locations_length", + 8, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Sample, locations_length), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "attributes", + 10, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_UINT64, + offsetof(Opentelemetry__Proto__Profiles__V1development__Sample, n_attributes), + offsetof(Opentelemetry__Proto__Profiles__V1development__Sample, attributes), + NULL, + NULL, + PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "link", + 12, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Sample, link), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "timestamps_unix_nano", + 13, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_UINT64, + offsetof(Opentelemetry__Proto__Profiles__V1development__Sample, n_timestamps_unix_nano), + offsetof(Opentelemetry__Proto__Profiles__V1development__Sample, timestamps_unix_nano), + NULL, + NULL, + PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned opentelemetry__proto__profiles__v1development__sample__field_indices_by_name[] = { + 4, /* field[4] = attributes */ + 5, /* field[5] = link */ + 0, /* field[0] = location_index */ + 3, /* field[3] = locations_length */ + 2, /* field[2] = locations_start_index */ + 6, /* field[6] = timestamps_unix_nano */ + 1, /* field[1] = value */ +}; +static const ProtobufCIntRange opentelemetry__proto__profiles__v1development__sample__number_ranges[4 + 1] = +{ + { 1, 0 }, + { 7, 2 }, + { 10, 4 }, + { 12, 5 }, + { 0, 7 } +}; +const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__sample__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "opentelemetry.proto.profiles.v1development.Sample", + "Sample", + "Opentelemetry__Proto__Profiles__V1development__Sample", + "opentelemetry.proto.profiles.v1development", + sizeof(Opentelemetry__Proto__Profiles__V1development__Sample), + 7, + opentelemetry__proto__profiles__v1development__sample__field_descriptors, + opentelemetry__proto__profiles__v1development__sample__field_indices_by_name, + 4, opentelemetry__proto__profiles__v1development__sample__number_ranges, + (ProtobufCMessageInit) opentelemetry__proto__profiles__v1development__sample__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1development__label__field_descriptors[4] = +{ + { + "key", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Label, key), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "str", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Label, str), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "num", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Label, num), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "num_unit", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Label, num_unit), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned opentelemetry__proto__profiles__v1development__label__field_indices_by_name[] = { + 0, /* field[0] = key */ + 2, /* field[2] = num */ + 3, /* field[3] = num_unit */ + 1, /* field[1] = str */ +}; +static const ProtobufCIntRange opentelemetry__proto__profiles__v1development__label__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__label__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "opentelemetry.proto.profiles.v1development.Label", + "Label", + "Opentelemetry__Proto__Profiles__V1development__Label", + "opentelemetry.proto.profiles.v1development", + sizeof(Opentelemetry__Proto__Profiles__V1development__Label), + 4, + opentelemetry__proto__profiles__v1development__label__field_descriptors, + opentelemetry__proto__profiles__v1development__label__field_indices_by_name, + 1, opentelemetry__proto__profiles__v1development__label__number_ranges, + (ProtobufCMessageInit) opentelemetry__proto__profiles__v1development__label__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1development__mapping__field_descriptors[10] = +{ + { + "id", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Mapping, id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "memory_start", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Mapping, memory_start), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "memory_limit", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Mapping, memory_limit), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "file_offset", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Mapping, file_offset), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "filename", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Mapping, filename), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "has_functions", + 7, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Mapping, has_functions), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "has_filenames", + 8, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Mapping, has_filenames), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "has_line_numbers", + 9, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Mapping, has_line_numbers), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "has_inline_frames", + 10, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Mapping, has_inline_frames), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "attributes", + 12, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_UINT64, + offsetof(Opentelemetry__Proto__Profiles__V1development__Mapping, n_attributes), + offsetof(Opentelemetry__Proto__Profiles__V1development__Mapping, attributes), + NULL, + NULL, + PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned opentelemetry__proto__profiles__v1development__mapping__field_indices_by_name[] = { + 9, /* field[9] = attributes */ + 3, /* field[3] = file_offset */ + 4, /* field[4] = filename */ + 6, /* field[6] = has_filenames */ + 5, /* field[5] = has_functions */ + 8, /* field[8] = has_inline_frames */ + 7, /* field[7] = has_line_numbers */ + 0, /* field[0] = id */ + 2, /* field[2] = memory_limit */ + 1, /* field[1] = memory_start */ +}; +static const ProtobufCIntRange opentelemetry__proto__profiles__v1development__mapping__number_ranges[3 + 1] = +{ + { 1, 0 }, + { 7, 5 }, + { 12, 9 }, + { 0, 10 } +}; +const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__mapping__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "opentelemetry.proto.profiles.v1development.Mapping", + "Mapping", + "Opentelemetry__Proto__Profiles__V1development__Mapping", + "opentelemetry.proto.profiles.v1development", + sizeof(Opentelemetry__Proto__Profiles__V1development__Mapping), + 10, + opentelemetry__proto__profiles__v1development__mapping__field_descriptors, + opentelemetry__proto__profiles__v1development__mapping__field_indices_by_name, + 3, opentelemetry__proto__profiles__v1development__mapping__number_ranges, + (ProtobufCMessageInit) opentelemetry__proto__profiles__v1development__mapping__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1development__location__field_descriptors[6] = +{ + { + "id", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Location, id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "mapping_index", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Location, mapping_index), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "address", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Location, address), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "line", + 4, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Opentelemetry__Proto__Profiles__V1development__Location, n_line), + offsetof(Opentelemetry__Proto__Profiles__V1development__Location, line), + &opentelemetry__proto__profiles__v1development__line__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "is_folded", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Location, is_folded), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "attributes", + 7, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_UINT64, + offsetof(Opentelemetry__Proto__Profiles__V1development__Location, n_attributes), + offsetof(Opentelemetry__Proto__Profiles__V1development__Location, attributes), + NULL, + NULL, + PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned opentelemetry__proto__profiles__v1development__location__field_indices_by_name[] = { + 2, /* field[2] = address */ + 5, /* field[5] = attributes */ + 0, /* field[0] = id */ + 4, /* field[4] = is_folded */ + 3, /* field[3] = line */ + 1, /* field[1] = mapping_index */ +}; +static const ProtobufCIntRange opentelemetry__proto__profiles__v1development__location__number_ranges[2 + 1] = +{ + { 1, 0 }, + { 7, 5 }, + { 0, 6 } +}; +const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__location__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "opentelemetry.proto.profiles.v1development.Location", + "Location", + "Opentelemetry__Proto__Profiles__V1development__Location", + "opentelemetry.proto.profiles.v1development", + sizeof(Opentelemetry__Proto__Profiles__V1development__Location), + 6, + opentelemetry__proto__profiles__v1development__location__field_descriptors, + opentelemetry__proto__profiles__v1development__location__field_indices_by_name, + 2, opentelemetry__proto__profiles__v1development__location__number_ranges, + (ProtobufCMessageInit) opentelemetry__proto__profiles__v1development__location__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1development__line__field_descriptors[3] = +{ + { + "function_index", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Line, function_index), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "line", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Line, line), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "column", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Line, column), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned opentelemetry__proto__profiles__v1development__line__field_indices_by_name[] = { + 2, /* field[2] = column */ + 0, /* field[0] = function_index */ + 1, /* field[1] = line */ +}; +static const ProtobufCIntRange opentelemetry__proto__profiles__v1development__line__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__line__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "opentelemetry.proto.profiles.v1development.Line", + "Line", + "Opentelemetry__Proto__Profiles__V1development__Line", + "opentelemetry.proto.profiles.v1development", + sizeof(Opentelemetry__Proto__Profiles__V1development__Line), + 3, + opentelemetry__proto__profiles__v1development__line__field_descriptors, + opentelemetry__proto__profiles__v1development__line__field_indices_by_name, + 1, opentelemetry__proto__profiles__v1development__line__number_ranges, + (ProtobufCMessageInit) opentelemetry__proto__profiles__v1development__line__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor opentelemetry__proto__profiles__v1development__function__field_descriptors[5] = +{ + { + "id", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Function, id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "name", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Function, name), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "system_name", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Function, system_name), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "filename", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Function, filename), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "start_line", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT64, + 0, /* quantifier_offset */ + offsetof(Opentelemetry__Proto__Profiles__V1development__Function, start_line), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned opentelemetry__proto__profiles__v1development__function__field_indices_by_name[] = { + 3, /* field[3] = filename */ + 0, /* field[0] = id */ + 1, /* field[1] = name */ + 4, /* field[4] = start_line */ + 2, /* field[2] = system_name */ +}; +static const ProtobufCIntRange opentelemetry__proto__profiles__v1development__function__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__function__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "opentelemetry.proto.profiles.v1development.Function", + "Function", + "Opentelemetry__Proto__Profiles__V1development__Function", + "opentelemetry.proto.profiles.v1development", + sizeof(Opentelemetry__Proto__Profiles__V1development__Function), + 5, + opentelemetry__proto__profiles__v1development__function__field_descriptors, + opentelemetry__proto__profiles__v1development__function__field_indices_by_name, + 1, opentelemetry__proto__profiles__v1development__function__number_ranges, + (ProtobufCMessageInit) opentelemetry__proto__profiles__v1development__function__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCEnumValue opentelemetry__proto__profiles__v1development__aggregation_temporality__enum_values_by_number[3] = +{ + { "AGGREGATION_TEMPORALITY_UNSPECIFIED", "OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__AGGREGATION_TEMPORALITY__AGGREGATION_TEMPORALITY_UNSPECIFIED", 0 }, + { "AGGREGATION_TEMPORALITY_DELTA", "OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__AGGREGATION_TEMPORALITY__AGGREGATION_TEMPORALITY_DELTA", 1 }, + { "AGGREGATION_TEMPORALITY_CUMULATIVE", "OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__AGGREGATION_TEMPORALITY__AGGREGATION_TEMPORALITY_CUMULATIVE", 2 }, +}; +static const ProtobufCIntRange opentelemetry__proto__profiles__v1development__aggregation_temporality__value_ranges[] = { +{0, 0},{0, 3} +}; +static const ProtobufCEnumValueIndex opentelemetry__proto__profiles__v1development__aggregation_temporality__enum_values_by_name[3] = +{ + { "AGGREGATION_TEMPORALITY_CUMULATIVE", 2 }, + { "AGGREGATION_TEMPORALITY_DELTA", 1 }, + { "AGGREGATION_TEMPORALITY_UNSPECIFIED", 0 }, +}; +const ProtobufCEnumDescriptor opentelemetry__proto__profiles__v1development__aggregation_temporality__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "opentelemetry.proto.profiles.v1development.AggregationTemporality", + "AggregationTemporality", + "Opentelemetry__Proto__Profiles__V1development__AggregationTemporality", + "opentelemetry.proto.profiles.v1development", + 3, + opentelemetry__proto__profiles__v1development__aggregation_temporality__enum_values_by_number, + 3, + opentelemetry__proto__profiles__v1development__aggregation_temporality__enum_values_by_name, + 1, + opentelemetry__proto__profiles__v1development__aggregation_temporality__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; diff --git a/lib/fluent-otel-proto/proto_c/opentelemetry/proto/profiles/v1development/profiles.pb-c.h b/lib/fluent-otel-proto/proto_c/opentelemetry/proto/profiles/v1development/profiles.pb-c.h index cf597d6ad5b..05285d9e326 100644 --- a/lib/fluent-otel-proto/proto_c/opentelemetry/proto/profiles/v1development/profiles.pb-c.h +++ b/lib/fluent-otel-proto/proto_c/opentelemetry/proto/profiles/v1development/profiles.pb-c.h @@ -16,16 +16,92 @@ PROTOBUF_C__BEGIN_DECLS #include "opentelemetry/proto/common/v1/common.pb-c.h" #include "opentelemetry/proto/resource/v1/resource.pb-c.h" -#include "opentelemetry/proto/profiles/v1development/pprofextended.pb-c.h" typedef struct Opentelemetry__Proto__Profiles__V1development__ProfilesData Opentelemetry__Proto__Profiles__V1development__ProfilesData; typedef struct Opentelemetry__Proto__Profiles__V1development__ResourceProfiles Opentelemetry__Proto__Profiles__V1development__ResourceProfiles; typedef struct Opentelemetry__Proto__Profiles__V1development__ScopeProfiles Opentelemetry__Proto__Profiles__V1development__ScopeProfiles; -typedef struct Opentelemetry__Proto__Profiles__V1development__ProfileContainer Opentelemetry__Proto__Profiles__V1development__ProfileContainer; +typedef struct Opentelemetry__Proto__Profiles__V1development__Profile Opentelemetry__Proto__Profiles__V1development__Profile; +typedef struct Opentelemetry__Proto__Profiles__V1development__AttributeUnit Opentelemetry__Proto__Profiles__V1development__AttributeUnit; +typedef struct Opentelemetry__Proto__Profiles__V1development__Link Opentelemetry__Proto__Profiles__V1development__Link; +typedef struct Opentelemetry__Proto__Profiles__V1development__ValueType Opentelemetry__Proto__Profiles__V1development__ValueType; +typedef struct Opentelemetry__Proto__Profiles__V1development__Sample Opentelemetry__Proto__Profiles__V1development__Sample; +typedef struct Opentelemetry__Proto__Profiles__V1development__Label Opentelemetry__Proto__Profiles__V1development__Label; +typedef struct Opentelemetry__Proto__Profiles__V1development__Mapping Opentelemetry__Proto__Profiles__V1development__Mapping; +typedef struct Opentelemetry__Proto__Profiles__V1development__Location Opentelemetry__Proto__Profiles__V1development__Location; +typedef struct Opentelemetry__Proto__Profiles__V1development__Line Opentelemetry__Proto__Profiles__V1development__Line; +typedef struct Opentelemetry__Proto__Profiles__V1development__Function Opentelemetry__Proto__Profiles__V1development__Function; /* --- enums --- */ +/* + * Specifies the method of aggregating metric values, either DELTA (change since last report) + * or CUMULATIVE (total since a fixed start time). + */ +typedef enum _Opentelemetry__Proto__Profiles__V1development__AggregationTemporality { + /* + * UNSPECIFIED is the default AggregationTemporality, it MUST not be used. + */ + OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__AGGREGATION_TEMPORALITY__AGGREGATION_TEMPORALITY_UNSPECIFIED = 0, + /* + ** DELTA is an AggregationTemporality for a profiler which reports + *changes since last report time. Successive metrics contain aggregation of + *values from continuous and non-overlapping intervals. + *The values for a DELTA metric are based only on the time interval + *associated with one measurement cycle. There is no dependency on + *previous measurements like is the case for CUMULATIVE metrics. + *For example, consider a system measuring the number of requests that + *it receives and reports the sum of these requests every second as a + *DELTA metric: + *1. The system starts receiving at time=t_0. + *2. A request is received, the system measures 1 request. + *3. A request is received, the system measures 1 request. + *4. A request is received, the system measures 1 request. + *5. The 1 second collection cycle ends. A metric is exported for the + *number of requests received over the interval of time t_0 to + *t_0+1 with a value of 3. + *6. A request is received, the system measures 1 request. + *7. A request is received, the system measures 1 request. + *8. The 1 second collection cycle ends. A metric is exported for the + *number of requests received over the interval of time t_0+1 to + *t_0+2 with a value of 2. + */ + OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__AGGREGATION_TEMPORALITY__AGGREGATION_TEMPORALITY_DELTA = 1, + /* + ** CUMULATIVE is an AggregationTemporality for a profiler which + *reports changes since a fixed start time. This means that current values + *of a CUMULATIVE metric depend on all previous measurements since the + *start time. Because of this, the sender is required to retain this state + *in some form. If this state is lost or invalidated, the CUMULATIVE metric + *values MUST be reset and a new fixed start time following the last + *reported measurement time sent MUST be used. + *For example, consider a system measuring the number of requests that + *it receives and reports the sum of these requests every second as a + *CUMULATIVE metric: + *1. The system starts receiving at time=t_0. + *2. A request is received, the system measures 1 request. + *3. A request is received, the system measures 1 request. + *4. A request is received, the system measures 1 request. + *5. The 1 second collection cycle ends. A metric is exported for the + *number of requests received over the interval of time t_0 to + *t_0+1 with a value of 3. + *6. A request is received, the system measures 1 request. + *7. A request is received, the system measures 1 request. + *8. The 1 second collection cycle ends. A metric is exported for the + *number of requests received over the interval of time t_0 to + *t_0+2 with a value of 5. + *9. The system experiences a fault and loses state. + *10. The system recovers and resumes receiving at time=t_1. + *11. A request is received, the system measures 1 request. + *12. The 1 second collection cycle ends. A metric is exported for the + *number of requests received over the interval of time t_1 to + *t_1+1 with a value of 1. + *Note: Even though, when reporting changes since last report time, using + *CUMULATIVE is valid, it is not recommended. + */ + OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__AGGREGATION_TEMPORALITY__AGGREGATION_TEMPORALITY_CUMULATIVE = 2 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__AGGREGATION_TEMPORALITY) +} Opentelemetry__Proto__Profiles__V1development__AggregationTemporality; /* --- messages --- */ @@ -88,7 +164,7 @@ struct Opentelemetry__Proto__Profiles__V1development__ResourceProfiles /* - * A collection of ProfileContainers produced by an InstrumentationScope. + * A collection of Profiles produced by an InstrumentationScope. */ struct Opentelemetry__Proto__Profiles__V1development__ScopeProfiles { @@ -100,10 +176,10 @@ struct Opentelemetry__Proto__Profiles__V1development__ScopeProfiles */ Opentelemetry__Proto__Common__V1__InstrumentationScope *scope; /* - * A list of ProfileContainers that originate from an instrumentation scope. + * A list of Profiles that originate from an instrumentation scope. */ size_t n_profiles; - Opentelemetry__Proto__Profiles__V1development__ProfileContainer **profiles; + Opentelemetry__Proto__Profiles__V1development__Profile **profiles; /* * The Schema URL, if known. This is the identifier of the Schema that the metric data * is recorded in. To learn more about Schema URL see @@ -118,29 +194,133 @@ struct Opentelemetry__Proto__Profiles__V1development__ScopeProfiles /* - * A ProfileContainer represents a single profile. It wraps pprof profile with OpenTelemetry specific metadata. + * Represents a complete profile, including sample types, samples, + * mappings to binaries, locations, functions, string table, and additional metadata. + * It modifies and annotates pprof Profile with OpenTelemetry specific fields. + * Note that whilst fields in this message retain the name and field id from pprof in most cases + * for ease of understanding data migration, it is not intended that pprof:Profile and + * OpenTelemetry:Profile encoding be wire compatible. */ -struct Opentelemetry__Proto__Profiles__V1development__ProfileContainer +struct Opentelemetry__Proto__Profiles__V1development__Profile { ProtobufCMessage base; /* - * A globally unique identifier for a profile. The ID is a 16-byte array. An ID with - * all zeroes is considered invalid. - * This field is required. + * A description of the samples associated with each Sample.value. + * For a cpu profile this might be: + * [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]] + * For a heap profile, this might be: + * [["allocations","count"], ["space","bytes"]], + * If one of the values represents the number of events represented + * by the sample, by convention it should be at index 0 and use + * sample_type.unit == "count". */ - ProtobufCBinaryData profile_id; + size_t n_sample_type; + Opentelemetry__Proto__Profiles__V1development__ValueType **sample_type; + /* + * The set of samples recorded in this profile. + */ + size_t n_sample; + Opentelemetry__Proto__Profiles__V1development__Sample **sample; + /* + * Mapping from address ranges to the image/binary/library mapped + * into that address range. mapping[0] will be the main binary. + * If multiple binaries contribute to the Profile and no main + * binary can be identified, mapping[0] has no special meaning. + */ + size_t n_mapping; + Opentelemetry__Proto__Profiles__V1development__Mapping **mapping; + /* + * Locations referenced by samples via location_indices. + */ + size_t n_location; + Opentelemetry__Proto__Profiles__V1development__Location **location; + /* + * Array of locations referenced by samples. + */ + size_t n_location_indices; + int64_t *location_indices; + /* + * Functions referenced by locations. + */ + size_t n_function; + Opentelemetry__Proto__Profiles__V1development__Function **function; + /* + * Lookup table for attributes. + */ + size_t n_attribute_table; + Opentelemetry__Proto__Common__V1__KeyValue **attribute_table; + /* + * Represents a mapping between Attribute Keys and Units. + */ + size_t n_attribute_units; + Opentelemetry__Proto__Profiles__V1development__AttributeUnit **attribute_units; + /* + * Lookup table for links. + */ + size_t n_link_table; + Opentelemetry__Proto__Profiles__V1development__Link **link_table; + /* + * A common table for strings referenced by various messages. + * string_table[0] must always be "". + */ + size_t n_string_table; + char **string_table; + /* + * frames with Function.function_name fully matching the following + * regexp will be dropped from the samples, along with their successors. + */ + /* + * Index into string table. + */ + int64_t drop_frames; /* - * start_time_unix_nano is the start time of the profile. - * Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. - * This field is semantically required and it is expected that end_time >= start_time. + * frames with Function.function_name fully matching the following + * regexp will be kept, even if it matches drop_frames. */ - uint64_t start_time_unix_nano; /* - * end_time_unix_nano is the end time of the profile. - * Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. - * This field is semantically required and it is expected that end_time >= start_time. + * Index into string table. */ - uint64_t end_time_unix_nano; + int64_t keep_frames; + /* + * Time of collection (UTC) represented as nanoseconds past the epoch. + */ + int64_t time_nanos; + /* + * Duration of the profile, if a duration makes sense. + */ + int64_t duration_nanos; + /* + * The kind of events between sampled occurrences. + * e.g [ "cpu","cycles" ] or [ "heap","bytes" ] + */ + Opentelemetry__Proto__Profiles__V1development__ValueType *period_type; + /* + * The number of events between sampled occurrences. + */ + int64_t period; + /* + * Free-form text associated with the profile. The text is displayed as is + * to the user by the tools that read profiles (e.g. by pprof). This field + * should not be used to store any machine-readable information, it is only + * for human-friendly content. The profile must stay functional if this field + * is cleaned. + */ + /* + * Indices into string table. + */ + size_t n_comment; + int64_t *comment; + /* + * Index into the string table of the type of the preferred sample + * value. If unset, clients should default to the last sample value. + */ + int64_t default_sample_type; + /* + * A globally unique identifier for a profile. The ID is a 16-byte array. An ID with + * all zeroes is considered invalid. + * This field is required. + */ + ProtobufCBinaryData profile_id; /* * attributes is a collection of key/value pairs. Note, global attributes * like server name can be set using the resource API. Examples of attributes: @@ -170,17 +350,342 @@ struct Opentelemetry__Proto__Profiles__V1development__ProfileContainer * Formats such as JFR are highly extensible and can contain more information than what is defined in this spec. * Inclusion of original payload should be configurable by the user. Default behavior should be to not include the original payload. * If the original payload is in pprof format, it SHOULD not be included in this field. - * The field is optional, however if it is present `profile` MUST be present and contain the same profiling information. + * The field is optional, however if it is present then equivalent converted data should be populated in other fields + * of this message as far as is practicable. */ ProtobufCBinaryData original_payload; +}; +#define OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__PROFILE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__profiles__v1development__profile__descriptor) \ + , 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0, 0, 0, 0, NULL, 0, 0,NULL, 0, {0,NULL}, 0,NULL, 0, (char *)protobuf_c_empty_string, {0,NULL} } + + +/* + * Represents a mapping between Attribute Keys and Units. + */ +struct Opentelemetry__Proto__Profiles__V1development__AttributeUnit +{ + ProtobufCMessage base; + /* + * Index into string table. + */ + int64_t attribute_key; + /* + * Index into string table. + */ + int64_t unit; +}; +#define OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__ATTRIBUTE_UNIT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__profiles__v1development__attribute_unit__descriptor) \ + , 0, 0 } + + +/* + * A pointer from a profile Sample to a trace Span. + * Connects a profile sample to a trace span, identified by unique trace and span IDs. + */ +struct Opentelemetry__Proto__Profiles__V1development__Link +{ + ProtobufCMessage base; + /* + * A unique identifier of a trace that this linked span is part of. The ID is a + * 16-byte array. + */ + ProtobufCBinaryData trace_id; + /* + * A unique identifier for the linked span. The ID is an 8-byte array. + */ + ProtobufCBinaryData span_id; +}; +#define OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__LINK__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__profiles__v1development__link__descriptor) \ + , {0,NULL}, {0,NULL} } + + +/* + * ValueType describes the type and units of a value, with an optional aggregation temporality. + */ +struct Opentelemetry__Proto__Profiles__V1development__ValueType +{ + ProtobufCMessage base; + /* + * Index into string table. + */ + int64_t type; /* - * This is a reference to a pprof profile. Required, even when original_payload is present. + * Index into string table. */ - Opentelemetry__Proto__Profiles__V1development__Profile *profile; + int64_t unit; + Opentelemetry__Proto__Profiles__V1development__AggregationTemporality aggregation_temporality; }; -#define OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__PROFILE_CONTAINER__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__profiles__v1development__profile_container__descriptor) \ - , {0,NULL}, 0, 0, 0,NULL, 0, (char *)protobuf_c_empty_string, {0,NULL}, NULL } +#define OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__VALUE_TYPE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__profiles__v1development__value_type__descriptor) \ + , 0, 0, OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__AGGREGATION_TEMPORALITY__AGGREGATION_TEMPORALITY_UNSPECIFIED } + + +/* + * Each Sample records values encountered in some program + * context. The program context is typically a stack trace, perhaps + * augmented with auxiliary information like the thread-id, some + * indicator of a higher level request being handled etc. + */ +struct Opentelemetry__Proto__Profiles__V1development__Sample +{ + ProtobufCMessage base; + /* + * The indices recorded here correspond to locations in Profile.location. + * The leaf is at location_index[0]. [deprecated, superseded by locations_start_index / locations_length] + */ + size_t n_location_index; + uint64_t *location_index; + /* + * locations_start_index along with locations_length refers to to a slice of locations in Profile.location. + * Supersedes location_index. + */ + uint64_t locations_start_index; + /* + * locations_length along with locations_start_index refers to a slice of locations in Profile.location. + * Supersedes location_index. + */ + uint64_t locations_length; + /* + * The type and unit of each value is defined by the corresponding + * entry in Profile.sample_type. All samples must have the same + * number of values, the same as the length of Profile.sample_type. + * When aggregating multiple samples into a single sample, the + * result has a list of values that is the element-wise sum of the + * lists of the originals. + */ + size_t n_value; + int64_t *value; + /* + * References to attributes in Profile.attribute_table. [optional] + */ + size_t n_attributes; + uint64_t *attributes; + /* + * Reference to link in Profile.link_table. [optional] + */ + uint64_t link; + /* + * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected + * to fall within the Profile's time range. [optional] + */ + size_t n_timestamps_unix_nano; + uint64_t *timestamps_unix_nano; +}; +#define OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__SAMPLE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__profiles__v1development__sample__descriptor) \ + , 0,NULL, 0, 0, 0,NULL, 0,NULL, 0, 0,NULL } + + +/* + * Provides additional context for a sample, + * such as thread ID or allocation size, with optional units. [deprecated] + */ +struct Opentelemetry__Proto__Profiles__V1development__Label +{ + ProtobufCMessage base; + /* + * Index into string table + */ + int64_t key; + /* + * At most one of the following must be present + */ + /* + * Index into string table + */ + int64_t str; + int64_t num; + /* + * Should only be present when num is present. + * Specifies the units of num. + * Use arbitrary string (for example, "requests") as a custom count unit. + * If no unit is specified, consumer may apply heuristic to deduce the unit. + * Consumers may also interpret units like "bytes" and "kilobytes" as memory + * units and units like "seconds" and "nanoseconds" as time units, + * and apply appropriate unit conversions to these. + */ + /* + * Index into string table + */ + int64_t num_unit; +}; +#define OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__LABEL__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__profiles__v1development__label__descriptor) \ + , 0, 0, 0, 0 } + + +/* + * Describes the mapping of a binary in memory, including its address range, + * file offset, and metadata like build ID + */ +struct Opentelemetry__Proto__Profiles__V1development__Mapping +{ + ProtobufCMessage base; + /* + * Unique nonzero id for the mapping. [deprecated] + */ + uint64_t id; + /* + * Address at which the binary (or DLL) is loaded into memory. + */ + uint64_t memory_start; + /* + * The limit of the address range occupied by this mapping. + */ + uint64_t memory_limit; + /* + * Offset in the binary that corresponds to the first mapped address. + */ + uint64_t file_offset; + /* + * The object this entry is loaded from. This can be a filename on + * disk for the main binary and shared libraries, or virtual + * abstractions like "[vdso]". + */ + /* + * Index into string table + */ + int64_t filename; + /* + * References to attributes in Profile.attribute_table. [optional] + */ + size_t n_attributes; + uint64_t *attributes; + /* + * The following fields indicate the resolution of symbolic info. + */ + protobuf_c_boolean has_functions; + protobuf_c_boolean has_filenames; + protobuf_c_boolean has_line_numbers; + protobuf_c_boolean has_inline_frames; +}; +#define OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__MAPPING__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__profiles__v1development__mapping__descriptor) \ + , 0, 0, 0, 0, 0, 0,NULL, 0, 0, 0, 0 } + + +/* + * Describes function and line table debug information. + */ +struct Opentelemetry__Proto__Profiles__V1development__Location +{ + ProtobufCMessage base; + /* + * Unique nonzero id for the location. A profile could use + * instruction addresses or any integer sequence as ids. [deprecated] + */ + uint64_t id; + /* + * The index of the corresponding profile.Mapping for this location. + * It can be unset if the mapping is unknown or not applicable for + * this profile type. + */ + uint64_t mapping_index; + /* + * The instruction address for this location, if available. It + * should be within [Mapping.memory_start...Mapping.memory_limit] + * for the corresponding mapping. A non-leaf address may be in the + * middle of a call instruction. It is up to display tools to find + * the beginning of the instruction if necessary. + */ + uint64_t address; + /* + * Multiple line indicates this location has inlined functions, + * where the last entry represents the caller into which the + * preceding entries were inlined. + * E.g., if memcpy() is inlined into printf: + * line[0].function_name == "memcpy" + * line[1].function_name == "printf" + */ + size_t n_line; + Opentelemetry__Proto__Profiles__V1development__Line **line; + /* + * Provides an indication that multiple symbols map to this location's + * address, for example due to identical code folding by the linker. In that + * case the line information above represents one of the multiple + * symbols. This field must be recomputed when the symbolization state of the + * profile changes. + */ + protobuf_c_boolean is_folded; + /* + * References to attributes in Profile.attribute_table. [optional] + */ + size_t n_attributes; + uint64_t *attributes; +}; +#define OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__LOCATION__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__profiles__v1development__location__descriptor) \ + , 0, 0, 0, 0,NULL, 0, 0,NULL } + + +/* + * Details a specific line in a source code, linked to a function. + */ +struct Opentelemetry__Proto__Profiles__V1development__Line +{ + ProtobufCMessage base; + /* + * The index of the corresponding profile.Function for this line. + */ + uint64_t function_index; + /* + * Line number in source code. + */ + int64_t line; + /* + * Column number in source code. + */ + int64_t column; +}; +#define OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__LINE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__profiles__v1development__line__descriptor) \ + , 0, 0, 0 } + + +/* + * Describes a function, including its human-readable name, system name, + * source file, and starting line number in the source. + */ +struct Opentelemetry__Proto__Profiles__V1development__Function +{ + ProtobufCMessage base; + /* + * Unique nonzero id for the function. [deprecated] + */ + uint64_t id; + /* + * Name of the function, in human-readable form if available. + */ + /* + * Index into string table + */ + int64_t name; + /* + * Name of the function, as identified by the system. + * For instance, it can be a C++ mangled name. + */ + /* + * Index into string table + */ + int64_t system_name; + /* + * Source file containing the function. + */ + /* + * Index into string table + */ + int64_t filename; + /* + * Line number in source file. + */ + int64_t start_line; +}; +#define OPENTELEMETRY__PROTO__PROFILES__V1DEVELOPMENT__FUNCTION__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&opentelemetry__proto__profiles__v1development__function__descriptor) \ + , 0, 0, 0, 0, 0 } /* Opentelemetry__Proto__Profiles__V1development__ProfilesData methods */ @@ -240,24 +745,195 @@ Opentelemetry__Proto__Profiles__V1development__ScopeProfiles * void opentelemetry__proto__profiles__v1development__scope_profiles__free_unpacked (Opentelemetry__Proto__Profiles__V1development__ScopeProfiles *message, ProtobufCAllocator *allocator); -/* Opentelemetry__Proto__Profiles__V1development__ProfileContainer methods */ -void opentelemetry__proto__profiles__v1development__profile_container__init - (Opentelemetry__Proto__Profiles__V1development__ProfileContainer *message); -size_t opentelemetry__proto__profiles__v1development__profile_container__get_packed_size - (const Opentelemetry__Proto__Profiles__V1development__ProfileContainer *message); -size_t opentelemetry__proto__profiles__v1development__profile_container__pack - (const Opentelemetry__Proto__Profiles__V1development__ProfileContainer *message, +/* Opentelemetry__Proto__Profiles__V1development__Profile methods */ +void opentelemetry__proto__profiles__v1development__profile__init + (Opentelemetry__Proto__Profiles__V1development__Profile *message); +size_t opentelemetry__proto__profiles__v1development__profile__get_packed_size + (const Opentelemetry__Proto__Profiles__V1development__Profile *message); +size_t opentelemetry__proto__profiles__v1development__profile__pack + (const Opentelemetry__Proto__Profiles__V1development__Profile *message, + uint8_t *out); +size_t opentelemetry__proto__profiles__v1development__profile__pack_to_buffer + (const Opentelemetry__Proto__Profiles__V1development__Profile *message, + ProtobufCBuffer *buffer); +Opentelemetry__Proto__Profiles__V1development__Profile * + opentelemetry__proto__profiles__v1development__profile__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void opentelemetry__proto__profiles__v1development__profile__free_unpacked + (Opentelemetry__Proto__Profiles__V1development__Profile *message, + ProtobufCAllocator *allocator); +/* Opentelemetry__Proto__Profiles__V1development__AttributeUnit methods */ +void opentelemetry__proto__profiles__v1development__attribute_unit__init + (Opentelemetry__Proto__Profiles__V1development__AttributeUnit *message); +size_t opentelemetry__proto__profiles__v1development__attribute_unit__get_packed_size + (const Opentelemetry__Proto__Profiles__V1development__AttributeUnit *message); +size_t opentelemetry__proto__profiles__v1development__attribute_unit__pack + (const Opentelemetry__Proto__Profiles__V1development__AttributeUnit *message, + uint8_t *out); +size_t opentelemetry__proto__profiles__v1development__attribute_unit__pack_to_buffer + (const Opentelemetry__Proto__Profiles__V1development__AttributeUnit *message, + ProtobufCBuffer *buffer); +Opentelemetry__Proto__Profiles__V1development__AttributeUnit * + opentelemetry__proto__profiles__v1development__attribute_unit__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void opentelemetry__proto__profiles__v1development__attribute_unit__free_unpacked + (Opentelemetry__Proto__Profiles__V1development__AttributeUnit *message, + ProtobufCAllocator *allocator); +/* Opentelemetry__Proto__Profiles__V1development__Link methods */ +void opentelemetry__proto__profiles__v1development__link__init + (Opentelemetry__Proto__Profiles__V1development__Link *message); +size_t opentelemetry__proto__profiles__v1development__link__get_packed_size + (const Opentelemetry__Proto__Profiles__V1development__Link *message); +size_t opentelemetry__proto__profiles__v1development__link__pack + (const Opentelemetry__Proto__Profiles__V1development__Link *message, + uint8_t *out); +size_t opentelemetry__proto__profiles__v1development__link__pack_to_buffer + (const Opentelemetry__Proto__Profiles__V1development__Link *message, + ProtobufCBuffer *buffer); +Opentelemetry__Proto__Profiles__V1development__Link * + opentelemetry__proto__profiles__v1development__link__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void opentelemetry__proto__profiles__v1development__link__free_unpacked + (Opentelemetry__Proto__Profiles__V1development__Link *message, + ProtobufCAllocator *allocator); +/* Opentelemetry__Proto__Profiles__V1development__ValueType methods */ +void opentelemetry__proto__profiles__v1development__value_type__init + (Opentelemetry__Proto__Profiles__V1development__ValueType *message); +size_t opentelemetry__proto__profiles__v1development__value_type__get_packed_size + (const Opentelemetry__Proto__Profiles__V1development__ValueType *message); +size_t opentelemetry__proto__profiles__v1development__value_type__pack + (const Opentelemetry__Proto__Profiles__V1development__ValueType *message, + uint8_t *out); +size_t opentelemetry__proto__profiles__v1development__value_type__pack_to_buffer + (const Opentelemetry__Proto__Profiles__V1development__ValueType *message, + ProtobufCBuffer *buffer); +Opentelemetry__Proto__Profiles__V1development__ValueType * + opentelemetry__proto__profiles__v1development__value_type__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void opentelemetry__proto__profiles__v1development__value_type__free_unpacked + (Opentelemetry__Proto__Profiles__V1development__ValueType *message, + ProtobufCAllocator *allocator); +/* Opentelemetry__Proto__Profiles__V1development__Sample methods */ +void opentelemetry__proto__profiles__v1development__sample__init + (Opentelemetry__Proto__Profiles__V1development__Sample *message); +size_t opentelemetry__proto__profiles__v1development__sample__get_packed_size + (const Opentelemetry__Proto__Profiles__V1development__Sample *message); +size_t opentelemetry__proto__profiles__v1development__sample__pack + (const Opentelemetry__Proto__Profiles__V1development__Sample *message, + uint8_t *out); +size_t opentelemetry__proto__profiles__v1development__sample__pack_to_buffer + (const Opentelemetry__Proto__Profiles__V1development__Sample *message, + ProtobufCBuffer *buffer); +Opentelemetry__Proto__Profiles__V1development__Sample * + opentelemetry__proto__profiles__v1development__sample__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void opentelemetry__proto__profiles__v1development__sample__free_unpacked + (Opentelemetry__Proto__Profiles__V1development__Sample *message, + ProtobufCAllocator *allocator); +/* Opentelemetry__Proto__Profiles__V1development__Label methods */ +void opentelemetry__proto__profiles__v1development__label__init + (Opentelemetry__Proto__Profiles__V1development__Label *message); +size_t opentelemetry__proto__profiles__v1development__label__get_packed_size + (const Opentelemetry__Proto__Profiles__V1development__Label *message); +size_t opentelemetry__proto__profiles__v1development__label__pack + (const Opentelemetry__Proto__Profiles__V1development__Label *message, uint8_t *out); -size_t opentelemetry__proto__profiles__v1development__profile_container__pack_to_buffer - (const Opentelemetry__Proto__Profiles__V1development__ProfileContainer *message, +size_t opentelemetry__proto__profiles__v1development__label__pack_to_buffer + (const Opentelemetry__Proto__Profiles__V1development__Label *message, ProtobufCBuffer *buffer); -Opentelemetry__Proto__Profiles__V1development__ProfileContainer * - opentelemetry__proto__profiles__v1development__profile_container__unpack +Opentelemetry__Proto__Profiles__V1development__Label * + opentelemetry__proto__profiles__v1development__label__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); -void opentelemetry__proto__profiles__v1development__profile_container__free_unpacked - (Opentelemetry__Proto__Profiles__V1development__ProfileContainer *message, +void opentelemetry__proto__profiles__v1development__label__free_unpacked + (Opentelemetry__Proto__Profiles__V1development__Label *message, + ProtobufCAllocator *allocator); +/* Opentelemetry__Proto__Profiles__V1development__Mapping methods */ +void opentelemetry__proto__profiles__v1development__mapping__init + (Opentelemetry__Proto__Profiles__V1development__Mapping *message); +size_t opentelemetry__proto__profiles__v1development__mapping__get_packed_size + (const Opentelemetry__Proto__Profiles__V1development__Mapping *message); +size_t opentelemetry__proto__profiles__v1development__mapping__pack + (const Opentelemetry__Proto__Profiles__V1development__Mapping *message, + uint8_t *out); +size_t opentelemetry__proto__profiles__v1development__mapping__pack_to_buffer + (const Opentelemetry__Proto__Profiles__V1development__Mapping *message, + ProtobufCBuffer *buffer); +Opentelemetry__Proto__Profiles__V1development__Mapping * + opentelemetry__proto__profiles__v1development__mapping__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void opentelemetry__proto__profiles__v1development__mapping__free_unpacked + (Opentelemetry__Proto__Profiles__V1development__Mapping *message, + ProtobufCAllocator *allocator); +/* Opentelemetry__Proto__Profiles__V1development__Location methods */ +void opentelemetry__proto__profiles__v1development__location__init + (Opentelemetry__Proto__Profiles__V1development__Location *message); +size_t opentelemetry__proto__profiles__v1development__location__get_packed_size + (const Opentelemetry__Proto__Profiles__V1development__Location *message); +size_t opentelemetry__proto__profiles__v1development__location__pack + (const Opentelemetry__Proto__Profiles__V1development__Location *message, + uint8_t *out); +size_t opentelemetry__proto__profiles__v1development__location__pack_to_buffer + (const Opentelemetry__Proto__Profiles__V1development__Location *message, + ProtobufCBuffer *buffer); +Opentelemetry__Proto__Profiles__V1development__Location * + opentelemetry__proto__profiles__v1development__location__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void opentelemetry__proto__profiles__v1development__location__free_unpacked + (Opentelemetry__Proto__Profiles__V1development__Location *message, + ProtobufCAllocator *allocator); +/* Opentelemetry__Proto__Profiles__V1development__Line methods */ +void opentelemetry__proto__profiles__v1development__line__init + (Opentelemetry__Proto__Profiles__V1development__Line *message); +size_t opentelemetry__proto__profiles__v1development__line__get_packed_size + (const Opentelemetry__Proto__Profiles__V1development__Line *message); +size_t opentelemetry__proto__profiles__v1development__line__pack + (const Opentelemetry__Proto__Profiles__V1development__Line *message, + uint8_t *out); +size_t opentelemetry__proto__profiles__v1development__line__pack_to_buffer + (const Opentelemetry__Proto__Profiles__V1development__Line *message, + ProtobufCBuffer *buffer); +Opentelemetry__Proto__Profiles__V1development__Line * + opentelemetry__proto__profiles__v1development__line__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void opentelemetry__proto__profiles__v1development__line__free_unpacked + (Opentelemetry__Proto__Profiles__V1development__Line *message, + ProtobufCAllocator *allocator); +/* Opentelemetry__Proto__Profiles__V1development__Function methods */ +void opentelemetry__proto__profiles__v1development__function__init + (Opentelemetry__Proto__Profiles__V1development__Function *message); +size_t opentelemetry__proto__profiles__v1development__function__get_packed_size + (const Opentelemetry__Proto__Profiles__V1development__Function *message); +size_t opentelemetry__proto__profiles__v1development__function__pack + (const Opentelemetry__Proto__Profiles__V1development__Function *message, + uint8_t *out); +size_t opentelemetry__proto__profiles__v1development__function__pack_to_buffer + (const Opentelemetry__Proto__Profiles__V1development__Function *message, + ProtobufCBuffer *buffer); +Opentelemetry__Proto__Profiles__V1development__Function * + opentelemetry__proto__profiles__v1development__function__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void opentelemetry__proto__profiles__v1development__function__free_unpacked + (Opentelemetry__Proto__Profiles__V1development__Function *message, ProtobufCAllocator *allocator); /* --- per-message closures --- */ @@ -270,8 +946,35 @@ typedef void (*Opentelemetry__Proto__Profiles__V1development__ResourceProfiles_C typedef void (*Opentelemetry__Proto__Profiles__V1development__ScopeProfiles_Closure) (const Opentelemetry__Proto__Profiles__V1development__ScopeProfiles *message, void *closure_data); -typedef void (*Opentelemetry__Proto__Profiles__V1development__ProfileContainer_Closure) - (const Opentelemetry__Proto__Profiles__V1development__ProfileContainer *message, +typedef void (*Opentelemetry__Proto__Profiles__V1development__Profile_Closure) + (const Opentelemetry__Proto__Profiles__V1development__Profile *message, + void *closure_data); +typedef void (*Opentelemetry__Proto__Profiles__V1development__AttributeUnit_Closure) + (const Opentelemetry__Proto__Profiles__V1development__AttributeUnit *message, + void *closure_data); +typedef void (*Opentelemetry__Proto__Profiles__V1development__Link_Closure) + (const Opentelemetry__Proto__Profiles__V1development__Link *message, + void *closure_data); +typedef void (*Opentelemetry__Proto__Profiles__V1development__ValueType_Closure) + (const Opentelemetry__Proto__Profiles__V1development__ValueType *message, + void *closure_data); +typedef void (*Opentelemetry__Proto__Profiles__V1development__Sample_Closure) + (const Opentelemetry__Proto__Profiles__V1development__Sample *message, + void *closure_data); +typedef void (*Opentelemetry__Proto__Profiles__V1development__Label_Closure) + (const Opentelemetry__Proto__Profiles__V1development__Label *message, + void *closure_data); +typedef void (*Opentelemetry__Proto__Profiles__V1development__Mapping_Closure) + (const Opentelemetry__Proto__Profiles__V1development__Mapping *message, + void *closure_data); +typedef void (*Opentelemetry__Proto__Profiles__V1development__Location_Closure) + (const Opentelemetry__Proto__Profiles__V1development__Location *message, + void *closure_data); +typedef void (*Opentelemetry__Proto__Profiles__V1development__Line_Closure) + (const Opentelemetry__Proto__Profiles__V1development__Line *message, + void *closure_data); +typedef void (*Opentelemetry__Proto__Profiles__V1development__Function_Closure) + (const Opentelemetry__Proto__Profiles__V1development__Function *message, void *closure_data); /* --- services --- */ @@ -279,10 +982,20 @@ typedef void (*Opentelemetry__Proto__Profiles__V1development__ProfileContainer_C /* --- descriptors --- */ +extern const ProtobufCEnumDescriptor opentelemetry__proto__profiles__v1development__aggregation_temporality__descriptor; extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__profiles_data__descriptor; extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__resource_profiles__descriptor; extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__scope_profiles__descriptor; -extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__profile_container__descriptor; +extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__profile__descriptor; +extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__attribute_unit__descriptor; +extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__link__descriptor; +extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__value_type__descriptor; +extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__sample__descriptor; +extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__label__descriptor; +extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__mapping__descriptor; +extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__location__descriptor; +extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__line__descriptor; +extern const ProtobufCMessageDescriptor opentelemetry__proto__profiles__v1development__function__descriptor; PROTOBUF_C__END_DECLS diff --git a/lib/fluent-otel-proto/src/CMakeLists.txt b/lib/fluent-otel-proto/src/CMakeLists.txt index 2ace3ccda86..14403c9a75b 100644 --- a/lib/fluent-otel-proto/src/CMakeLists.txt +++ b/lib/fluent-otel-proto/src/CMakeLists.txt @@ -36,7 +36,6 @@ endif() if (FLUENT_PROTO_PROFILES) set(src ${src} ${OTEL_C_FILES}/proto/profiles/v1development/profiles.pb-c.c) - set(src ${src} ${OTEL_C_FILES}/proto/profiles/v1development/pprofextended.pb-c.c) endif() add_library(fluent-otel-proto STATIC ${src})