Skip to content

Commit

Permalink
Fix: Update tracing attributes to metrics
Browse files Browse the repository at this point in the history
This commit updates the tracing attributes used in the UpdateChecker to use metrics instead of attributes.

- Changes the `sourceSize` and `updateCheckSize` attributes to metrics using `putMetric` instead of `putAttribute`.
- Updates the data type of the metrics to `Long`.
  • Loading branch information
jacobrein committed Dec 19, 2024
1 parent ecaafbb commit 2a787a6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class UpdateFlowWorker(
val sourceSize = sourceRepository.apiServiceList.size

//TODO: Add some tracing metrics
putAttribute("sourceSize", sourceSize.toString())
putMetric("sourceSize", sourceSize.toLong())

// Getting all recent updates
val newList = list.intersect(
Expand Down Expand Up @@ -177,7 +177,7 @@ class UpdateFlowWorker(
) { o, n -> o.url == n.url }
.distinctBy { it.url }

putAttribute("updateCheckSize", newList.size.toString())
putMetric("updateCheckSize", newList.size.toLong())

// Checking if any have updates
println("Checking for updates")
Expand Down

0 comments on commit 2a787a6

Please sign in to comment.