We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff85daf commit 3faa913Copy full SHA for 3faa913
spec/datadog/opentelemetry/metrics_spec.rb
@@ -52,18 +52,12 @@ def clear_testagent_metrics
52
def get_testagent_metrics
53
uri = URI("http://#{agent_host}:#{default_otlp_http_port}/test/session/metrics")
54
55
- try_wait_until(seconds: 10) do
+ try_wait_until(seconds: 2) do
56
response = Net::HTTP.get_response(uri)
57
next unless response.code == '200'
58
59
parsed = JSON.parse(response.body, symbolize_names: false)
60
next parsed if parsed.is_a?(Array) && !parsed.empty?
61
-
62
- if parsed.is_a?(Hash)
63
- metrics_array = parsed['metrics']
64
- next metrics_array if metrics_array.is_a?(Array) && !metrics_array.empty?
65
- next [parsed]
66
- end
67
end
68
69
0 commit comments