Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions opentelemetry/proto/profiles/v1development/profiles.proto
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,7 @@ message ProfilesDictionary {
repeated string string_table = 5;

// A common table for attributes referenced by various messages.
repeated opentelemetry.proto.common.v1.KeyValue attribute_table = 6;

// Represents a mapping between Attribute Keys and Units.
repeated AttributeUnit attribute_units = 7;
Comment thread
jhalliday marked this conversation as resolved.
repeated KeyValueAndUnit attribute_table = 6;
Comment thread
jhalliday marked this conversation as resolved.
Comment thread
tigrannajaryan marked this conversation as resolved.
}

// ProfilesData represents the profiles data that can be stored in persistent storage,
Expand Down Expand Up @@ -502,3 +499,12 @@ message Function {
// Line number in source file. 0 means unset.
int64 start_line = 4;
}

// A custom 'dictionary native' style of encoding attributes which is more specialized
// for our use than opentelemetry.proto.common.v1.KeyValue
Comment thread
jhalliday marked this conversation as resolved.
Outdated
// Specifically, uses the string table for keys and allows optional unit information.
message KeyValueAndUnit {
int32 key_strindex = 1;
opentelemetry.proto.common.v1.AnyValue value = 2;
int32 unit_strindex = 3; // non-zero where the unit cannot be derived from the name by semconv.
Comment thread
jhalliday marked this conversation as resolved.
Outdated
}
Comment thread
jhalliday marked this conversation as resolved.
Outdated