Skip to content

Commit

Permalink
logproto: Add deprecated annotation to LegacySample and LegacyLabelPa…
Browse files Browse the repository at this point in the history
…ir (#5454)

* Add deprecated annotation to LegacySample and LegacyLabelPair

Signed-off-by: Paschalis Tsilias <[email protected]>

* Replace annotation with more generic docstring

Signed-off-by: Paschalis Tsilias <[email protected]>
  • Loading branch information
tpaschalis authored Feb 24, 2022
1 parent 9f301cf commit cbd3b00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/logproto/logproto.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkg/logproto/logproto.proto
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ message Sample {
uint64 hash = 3 [(gogoproto.jsontag) = "hash"];
}

// LegacySample exists for backwards compatibility reasons and is deprecated. Do not use.
message LegacySample {
double value = 1;
int64 timestamp_ms = 2;
Expand Down Expand Up @@ -154,6 +155,7 @@ message LabelPair {
string value = 2;
}

// LegacyLabelPair exists for backwards compatibility reasons and is deprecated. Do not use.
message LegacyLabelPair {
bytes name = 1;
bytes value = 2;
Expand Down

0 comments on commit cbd3b00

Please sign in to comment.