Skip to content

Commit a7b935a

Browse files
authored
Merge pull request #65 from launchdarkly-labs/add_metrics
added new metrics
2 parents 016e91e + f84b088 commit a7b935a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: Terraform/metrics.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ resource "launchdarkly_metric" "stock-api-latency" {
6666

6767
resource "launchdarkly_metric" "stocks-api-error-rates" {
6868
project_key = var.project_key
69-
key = "Stock API Error Rates"
69+
key = "stocks-api-error-rates"
7070
name = "Stock API Error Rates"
7171
description = "Error Rates for the Stocks API"
7272
kind = "custom"
7373
is_numeric = false
74-
event_key = "Stock API Error Rates"
74+
event_key = "stocks-api-error-rates"
7575
success_criteria = "LowerThanBaseline"
7676
randomization_units = ["user"]
7777
tags = ["release", "stocks", "api", "error", "rates"]

Diff for: components/ui/bankcomponents/stocksCard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export const StocksComponent: React.FC = () => {
156156
} else {
157157
//25% chance of hitting errors
158158
if (Math.random() < 0.25) {
159-
client.track("Stock API Error Rates");
159+
client.track("stocks-api-error-rates");
160160
}
161161
dynamicValue = Math.floor(Math.random() * (60 - 50 + 1)) + 50;
162162
client.track("stock-api-latency", undefined, dynamicValue);

0 commit comments

Comments
 (0)