Skip to content

Commit

Permalink
Use a reliability enum instead of boolean (#65)
Browse files Browse the repository at this point in the history
* Use a reliability enum instead of boolean

* swap reliabilities
  • Loading branch information
davidtsuk authored Nov 18, 2024
1 parent 88228f5 commit 4f931bd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 3 additions & 2 deletions proto/sentry_protos/snuba/v1/endpoint_time_series.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ message DataPoint {
// optional, if not set, assume true. Accounts for sparse time series
bool data_present = 2;
float avg_sampling_rate = 3;
bool is_reliable = 4;
// determines whether the aggregation is reliable using math based on confidence intervals and sample size
bool is_reliable = 4 [deprecated = true];
// determines the reliability of the aggregation using math based on confidence intervals and sample size
Reliability reliability = 5;
}

message TimeSeries {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ message Column {
message TraceItemColumnValues {
string attribute_name = 1;
repeated AttributeValue results = 2;
repeated Reliability reliabilities = 3;
}

message TraceItemTableResponse {
Expand Down
6 changes: 6 additions & 0 deletions proto/sentry_protos/snuba/v1/trace_item_attribute.proto
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,9 @@ message AttributeAggregation {
string label = 3;
ExtrapolationMode extrapolation_mode = 4;
}

enum Reliability {
RELIABILITY_UNSPECIFIED = 0;
RELIABILITY_LOW = 1;
RELIABILITY_HIGH = 2;
}

0 comments on commit 4f931bd

Please sign in to comment.