You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We found there are two methods that create too much garbage for the GC. Both are inside MetricTags.
Both public string AsMetricName(string metricName) in conjuction with public static MetricTags Concat() create a huge amount of strings and string[]. Especially in the cases where we have a couple of global tags we generate gigbytes of strings which are needed for a single operation - the GetOrAdd inside the DefaultMetricContextRegistry.
In our case we have finite set of Context/Tags combination, so if needed we can provide a unique key when pushing the metrics which can be used inside DefaultMetricContextRegistry.
Can you advise?
The text was updated successfully, but these errors were encountered:
We found there are two methods that create too much garbage for the GC. Both are inside MetricTags.
Both public string AsMetricName(string metricName) in conjuction with public static MetricTags Concat() create a huge amount of strings and string[]. Especially in the cases where we have a couple of global tags we generate gigbytes of strings which are needed for a single operation - the GetOrAdd inside the DefaultMetricContextRegistry.
In our case we have finite set of Context/Tags combination, so if needed we can provide a unique key when pushing the metrics which can be used inside DefaultMetricContextRegistry.
Can you advise?
The text was updated successfully, but these errors were encountered: