You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2026-06-03 18:35:08 +02:00
Fix typos in docs and comments (#4940)
Ignoring words that would have renamed - nam. -> name - ans -> and
This commit is contained in:
@@ -63,7 +63,7 @@ func reservoirFunc[N int64 | float64](agg Aggregation) func() exemplar.Reservoir
|
||||
// This Exemplar reservoir MAY take a configuration parameter for
|
||||
// the size of the reservoir. If no size configuration is
|
||||
// provided, the default size MAY be the number of possible
|
||||
// concurrent threads (e.g. numer of CPUs) to help reduce
|
||||
// concurrent threads (e.g. number of CPUs) to help reduce
|
||||
// contention. Otherwise, a default size of 1 SHOULD be used.
|
||||
n = runtime.NumCPU()
|
||||
if n < 1 {
|
||||
|
||||
@@ -125,7 +125,7 @@ func ReservoirTest[N int64 | float64](f factory[N]) func(*testing.T) {
|
||||
r.Collect(&dest)
|
||||
assert.Len(t, dest, n, "multiple offers did not fill reservoir")
|
||||
|
||||
// Ensure the collect reset also resets any couting state.
|
||||
// Ensure the collect reset also resets any counting state.
|
||||
for i := 0; i < n+1; i++ {
|
||||
v := N(i)
|
||||
r.Offer(ctx, staticTime, v, nil)
|
||||
|
||||
@@ -170,7 +170,7 @@ func TestCallbackUnregisterConcurrency(t *testing.T) {
|
||||
|
||||
// Instruments should produce correct ResourceMetrics.
|
||||
func TestMeterCreatesInstruments(t *testing.T) {
|
||||
// The synchronous measurement methods must ignore the context cancelation.
|
||||
// The synchronous measurement methods must ignore the context cancellation.
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
cancel()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user