Skip to content

Commit ae87ce7

Browse files
florianlLiudmila Molkova
andauthored
profile: drop duplicate field in message Profile (#606)
* profile: drop duplicate field in message Profile The message Profile contains two fields of type `opentelemetry.proto.common.v1.KeyValue`, `attribute_table` and `attributes`. Both fields are intended for the same use. Therefore drop the later one. * fixup: add attribute_indices to message Profile Signed-off-by: Florian Lehner <[email protected]> * fixup: move comment Signed-off-by: Florian Lehner <[email protected]> --------- Signed-off-by: Florian Lehner <[email protected]> Co-authored-by: Liudmila Molkova <[email protected]>
1 parent fcebfd2 commit ae87ce7

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

opentelemetry/proto/profiles/v1development/profiles.proto

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -242,20 +242,6 @@ message Profile {
242242
// This field is required.
243243
bytes profile_id = 17;
244244

245-
// attributes is a collection of key/value pairs. Note, global attributes
246-
// like server name can be set using the resource API. Examples of attributes:
247-
//
248-
// "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
249-
// "/http/server_latency": 300
250-
// "abc.com/myattribute": true
251-
// "abc.com/score": 10.239
252-
//
253-
// The OpenTelemetry API specification further restricts the allowed value types:
254-
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
255-
// Attribute keys MUST be unique (it is not allowed to have more than one
256-
// attribute with the same key).
257-
repeated opentelemetry.proto.common.v1.KeyValue attributes = 18;
258-
259245
// dropped_attributes_count is the number of attributes that were discarded. Attributes
260246
// can be discarded because their keys are too long or because there are too many
261247
// attributes. If this value is 0, then no attributes were dropped.
@@ -271,6 +257,21 @@ message Profile {
271257
// The field is optional, however if it is present then equivalent converted data should be populated in other fields
272258
// of this message as far as is practicable.
273259
bytes original_payload = 21;
260+
261+
// References to attributes in attribute_table. [optional]
262+
// It is a collection of key/value pairs. Note, global attributes
263+
// like server name can be set using the resource API. Examples of attributes:
264+
//
265+
// "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
266+
// "/http/server_latency": 300
267+
// "abc.com/myattribute": true
268+
// "abc.com/score": 10.239
269+
//
270+
// The OpenTelemetry API specification further restricts the allowed value types:
271+
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
272+
// Attribute keys MUST be unique (it is not allowed to have more than one
273+
// attribute with the same key).
274+
repeated int32 attribute_indices = 22;
274275
}
275276

276277
// Represents a mapping between Attribute Keys and Units.

0 commit comments

Comments
 (0)