Affected by GO-2024-3241
and 2 other vulnerabilities
GO-2024-3241 : Hashicorp Consul Improper Neutralization of HTTP Headers for Scripting Syntax vulnerability in github.com/hashicorp/consul
GO-2024-3242 : Hashicorp Consul Cross-site Scripting vulnerability in github.com/hashicorp/consul
GO-2024-3243 : Hashicorp Consul Path Traversal vulnerability in github.com/hashicorp/consul
Discover Packages
github.com/hashicorp/consul
agent
metrics
package
Version:
v1.15.3
Opens a new window with list of versions in this module.
Published: Jun 1, 2023
License: MPL-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Asserts that a counter metric has the given value
Asserts that a gauge metric has the current value
func TestSetupMetrics(t *testing .T , serviceName string ) *metrics.InmemSink
Returns an in memory metrics sink for tests to assert metrics are emitted.
Do not enable t.Parallel() since this relies on the global metrics instance.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.