1
0
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:
Charlie Le
2024-02-17 04:36:41 -08:00
committed by GitHub
parent 87396747ad
commit 693eb7dbbb
8 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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()