Skip to content

Commit 506a9ba

Browse files
authored
Fix typos (#5763)
1 parent b37e8a9 commit 506a9ba

File tree

53 files changed

+100
-102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+100
-102
lines changed

.github/ISSUE_TEMPLATE/version_release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ assignees: ''
99

1010
<!-- markdownlint-disable MD034 -->
1111
<!--- The current milestones can be found at https://github.com/open-telemetry/opentelemetry-go/milestones -->
12-
- [ ] Complete [Milestone](https://github.com/open-telemetry/opentelemetry-go/milestone/<Release Milesone>)
12+
- [ ] Complete [Milestone](https://github.com/open-telemetry/opentelemetry-go/milestone/<Release Milestone>)
1313
<!-- markdownlint-enable MD034 -->
1414
- [ ] [Update contrib codebase to support changes about to be released (use a git sha version)](https://github.com/open-telemetry/opentelemetry-go/blob/main/RELEASING.md#verify-changes-for-contrib-repository)
1515
- [ ] [Pre-release](https://github.com/open-telemetry/opentelemetry-go/blob/main/RELEASING.md#pre-release)

.golangci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ issues:
6464
- path: _test\.go
6565
linters:
6666
- gosec
67-
# Igonoring gosec G404: Use of weak random number generator (math/rand instead of crypto/rand)
67+
# Ignoring gosec G404: Use of weak random number generator (math/rand instead of crypto/rand)
6868
# as we commonly use it in tests and examples.
6969
- text: "G404:"
7070
linters:
7171
- gosec
72-
# Igonoring gosec G402: TLS MinVersion too low
72+
# Ignoring gosec G402: TLS MinVersion too low
7373
# as the https://pkg.go.dev/crypto/tls#Config handles MinVersion default well.
7474
- text: "G402: TLS MinVersion too low."
7575
linters:

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,7 +1911,7 @@ with major version 0.
19111911
- Setting error status while recording error with Span from oteltest package. (#1729)
19121912
- The concept of a remote and local Span stored in a context is unified to just the current Span.
19131913
Because of this `"go.opentelemetry.io/otel/trace".RemoteSpanContextFromContext` is removed as it is no longer needed.
1914-
Instead, `"go.opentelemetry.io/otel/trace".SpanContextFromContex` can be used to return the current Span.
1914+
Instead, `"go.opentelemetry.io/otel/trace".SpanContextFromContext` can be used to return the current Span.
19151915
If needed, that Span's `SpanContext.IsRemote()` can then be used to determine if it is remote or not. (#1731)
19161916
- The `HasRemoteParent` field of the `"go.opentelemetry.io/otel/sdk/trace".SamplingParameters` is removed.
19171917
This field is redundant to the information returned from the `Remote` method of the `SpanContext` held in the `ParentContext` field. (#1749)
@@ -2485,7 +2485,7 @@ This release migrates the default OpenTelemetry SDK into its own Go module, deco
24852485
- Prometheus exporter will not apply stale updates or forget inactive metrics. (#903)
24862486
- Add test for api.standard `HTTPClientAttributesFromHTTPRequest`. (#905)
24872487
- Bump github.com/golangci/golangci-lint from 1.27.0 to 1.28.1 in /tools. (#901, #913)
2488-
- Update otel-colector example to use the v0.5.0 collector. (#915)
2488+
- Update otel-collector example to use the v0.5.0 collector. (#915)
24892489
- The `grpctrace` instrumentation uses a span name conforming to the OpenTelemetry semantic conventions (does not contain a leading slash (`/`)). (#922)
24902490
- The `grpctrace` instrumentation includes an `rpc.method` attribute now set to the gRPC method name. (#900, #922)
24912491
- The `grpctrace` instrumentation `rpc.service` attribute now contains the package name if one exists.

bridge/opencensus/internal/tracer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (o *Tracer) StartSpan(ctx context.Context, name string, s ...octrace.StartO
3737
// StartSpanWithRemoteParent starts a new child span of the span from the
3838
// given parent.
3939
func (o *Tracer) StartSpanWithRemoteParent(ctx context.Context, name string, parent octrace.SpanContext, s ...octrace.StartOption) (context.Context, *octrace.Span) {
40-
// make sure span context is zero'd out so we use the remote parent
40+
// make sure span context is zeroed out so we use the remote parent
4141
ctx = trace.ContextWithSpan(ctx, nil)
4242
ctx = trace.ContextWithRemoteSpanContext(ctx, oc2otel.SpanContext(parent))
4343
return o.StartSpan(ctx, name, s...)

bridge/opencensus/internal/tracer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func TestTracerFromContext(t *testing.T) {
108108
ctx, _ = tracer.Start(ctx, "test")
109109

110110
got := internal.NewTracer(tracer).FromContext(ctx).SpanContext()
111-
// Do not test the convedsion, only that the propagtion.
111+
// Do not test the conversion, only the propagation.
112112
want := otel2oc.SpanContext(sc)
113113
if got != want {
114114
t.Errorf("tracer.FromContext returned wrong context: %#v", got)

bridge/opentracing/bridge_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ func TestBridgeTracer_StartSpan(t *testing.T) {
396396
expectWarnings: []string(nil),
397397
},
398398
{
399-
name: "with a non-defered wrapper tracer",
399+
name: "with a non-deferred wrapper tracer",
400400
before: func(t *testing.T, bridge *BridgeTracer) {
401401
wTracer := &nonDeferWrapperTracer{
402402
NewWrapperTracer(bridge, otel.Tracer("test")),

example/passthrough/handler/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type Handler struct {
2727
// to next.
2828
func New(next func(r *http.Request)) *Handler {
2929
// Like most instrumentation packages, this handler defaults to using the
30-
// global progatators and tracer providers.
30+
// global propagators and tracer providers.
3131
return &Handler{
3232
propagators: otel.GetTextMapPropagator(),
3333
tracer: otel.Tracer("go.opentelemetry.io/otel/example/passthrough/handler"),

exporters/otlp/otlplog/otlploggrpc/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ func convDuration(s string) (time.Duration, error) {
472472
return time.Duration(d) * time.Millisecond, nil
473473
}
474474

475-
// loadEnvTLS returns a resolver that loads a *tls.Config from files defeind by
475+
// loadEnvTLS returns a resolver that loads a *tls.Config from files defined by
476476
// the OTLP TLS environment variables. This will load both the rootCAs and
477477
// certificates used for mTLS.
478478
//

exporters/otlp/otlplog/otlploggrpc/config_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func TestNewConfig(t *testing.T) {
191191
},
192192
},
193193
{
194-
name: "LogEnpointEnvironmentVariablesDefaultPath",
194+
name: "LogEndpointEnvironmentVariablesDefaultPath",
195195
envars: map[string]string{
196196
"OTEL_EXPORTER_OTLP_LOGS_ENDPOINT": "http://env.endpoint",
197197
},
@@ -224,7 +224,7 @@ func TestNewConfig(t *testing.T) {
224224
},
225225
},
226226
{
227-
name: "OTLPEnpointEnvironmentVariablesDefaultPath",
227+
name: "OTLPEndpointEnvironmentVariablesDefaultPath",
228228
envars: map[string]string{
229229
"OTEL_EXPORTER_OTLP_ENDPOINT": "http://env.endpoint",
230230
},

exporters/otlp/otlplog/otlploggrpc/internal/transform/log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func resourceLogsMap(dst *map[attribute.Distinct]*lpb.ResourceLogs, records []lo
6666
}
6767
}
6868

69-
// ScopeLogs returns a slice of OTLP ScopeLogs generated from recoreds.
69+
// ScopeLogs returns a slice of OTLP ScopeLogs generated from records.
7070
func ScopeLogs(records []log.Record) []*lpb.ScopeLogs {
7171
scopeMap := scopeLogsMapPool.Get().(map[instrumentation.Scope]*lpb.ScopeLogs)
7272
defer func() {

exporters/otlp/otlplog/otlploghttp/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ type httpCollector struct {
224224
// default OTLP log endpoint path ("/v1/logs"). If the endpoint contains a
225225
// prefix of "https" the server will generate weak self-signed TLS certificates
226226
// and use them to server data. If the endpoint contains a path, that path will
227-
// be used instead of the default OTLP metri endpoint path.
227+
// be used instead of the default OTLP metric endpoint path.
228228
//
229229
// If errCh is not nil, the collector will respond to HTTP requests with errors
230230
// sent on that channel. This means that if errCh is not nil Export calls will

exporters/otlp/otlplog/otlploghttp/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ func (s setting[T]) Resolve(fn ...resolver[T]) setting[T] {
377377
return s
378378
}
379379

380-
// loadEnvTLS returns a resolver that loads a *tls.Config from files defeind by
380+
// loadEnvTLS returns a resolver that loads a *tls.Config from files defined by
381381
// the OTLP TLS environment variables. This will load both the rootCAs and
382382
// certificates used for mTLS.
383383
//

exporters/otlp/otlplog/otlploghttp/config_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ func TestNewConfig(t *testing.T) {
190190
},
191191
},
192192
{
193-
name: "LogEnpointEnvironmentVariablesDefaultPath",
193+
name: "LogEndpointEnvironmentVariablesDefaultPath",
194194
envars: map[string]string{
195195
"OTEL_EXPORTER_OTLP_LOGS_ENDPOINT": "http://env.endpoint",
196196
},
@@ -225,7 +225,7 @@ func TestNewConfig(t *testing.T) {
225225
},
226226
},
227227
{
228-
name: "OTLPEnpointEnvironmentVariablesDefaultPath",
228+
name: "OTLPEndpointEnvironmentVariablesDefaultPath",
229229
envars: map[string]string{
230230
"OTEL_EXPORTER_OTLP_ENDPOINT": "http://env.endpoint",
231231
},

exporters/otlp/otlplog/otlploghttp/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ target URL to which the exporter sends telemetry.
2222
The value must contain a scheme ("http" or "https") and host.
2323
The value may additionally contain a port and a path.
2424
The value should not contain a query string or fragment.
25-
The configuration can be overridden by [WithEndpoint], [WithEndpointURL], [WitnInsecure], and [WithURLPath] options.
25+
The configuration can be overridden by [WithEndpoint], [WithEndpointURL], [WithInsecure], and [WithURLPath] options.
2626
2727
OTEL_EXPORTER_OTLP_HEADERS, OTEL_EXPORTER_OTLP_LOGS_HEADERS (default: none) -
2828
key-value pairs used as headers associated with HTTP requests.

exporters/otlp/otlplog/otlploghttp/internal/transform/log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func resourceLogsMap(dst *map[attribute.Distinct]*lpb.ResourceLogs, records []lo
6666
}
6767
}
6868

69-
// ScopeLogs returns a slice of OTLP ScopeLogs generated from recoreds.
69+
// ScopeLogs returns a slice of OTLP ScopeLogs generated from records.
7070
func ScopeLogs(records []log.Record) []*lpb.ScopeLogs {
7171
scopeMap := scopeLogsMapPool.Get().(map[instrumentation.Scope]*lpb.ScopeLogs)
7272
defer func() {

exporters/otlp/otlpmetric/otlpmetricgrpc/internal/oconf/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func NewGRPCConfig(opts ...GRPCOption) Config {
139139
if cfg.ServiceConfig != "" {
140140
cfg.DialOptions = append(cfg.DialOptions, grpc.WithDefaultServiceConfig(cfg.ServiceConfig))
141141
}
142-
// Priroritize GRPCCredentials over Insecure (passing both is an error).
142+
// Prioritize GRPCCredentials over Insecure (passing both is an error).
143143
if cfg.Metrics.GRPCCredentials != nil {
144144
cfg.DialOptions = append(cfg.DialOptions, grpc.WithTransportCredentials(cfg.Metrics.GRPCCredentials))
145145
} else if cfg.Metrics.Insecure {

exporters/otlp/otlpmetric/otlpmetricgrpc/internal/oconf/tls.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
)
1515

1616
// ReadTLSConfigFromFile reads a PEM certificate file and creates
17-
// a tls.Config that will use this certifate to verify a server certificate.
17+
// a tls.Config that will use this certificate to verify a server certificate.
1818
func ReadTLSConfigFromFile(path string) (*tls.Config, error) {
1919
b, err := os.ReadFile(path)
2020
if err != nil {

exporters/otlp/otlpmetric/otlpmetrichttp/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ target URL to which the exporter sends telemetry.
2222
The value must contain a scheme ("http" or "https") and host.
2323
The value may additionally contain a port and a path.
2424
The value should not contain a query string or fragment.
25-
The configuration can be overridden by [WithEndpoint], [WithEndpointURL], [WitnInsecure], and [WithURLPath] options.
25+
The configuration can be overridden by [WithEndpoint], [WithEndpointURL], [WithInsecure], and [WithURLPath] options.
2626
2727
OTEL_EXPORTER_OTLP_HEADERS, OTEL_EXPORTER_OTLP_METRICS_HEADERS (default: none) -
2828
key-value pairs used as headers associated with HTTP requests.

exporters/otlp/otlpmetric/otlpmetrichttp/internal/oconf/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func NewGRPCConfig(opts ...GRPCOption) Config {
139139
if cfg.ServiceConfig != "" {
140140
cfg.DialOptions = append(cfg.DialOptions, grpc.WithDefaultServiceConfig(cfg.ServiceConfig))
141141
}
142-
// Priroritize GRPCCredentials over Insecure (passing both is an error).
142+
// Prioritize GRPCCredentials over Insecure (passing both is an error).
143143
if cfg.Metrics.GRPCCredentials != nil {
144144
cfg.DialOptions = append(cfg.DialOptions, grpc.WithTransportCredentials(cfg.Metrics.GRPCCredentials))
145145
} else if cfg.Metrics.Insecure {

exporters/otlp/otlpmetric/otlpmetrichttp/internal/oconf/tls.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
)
1515

1616
// ReadTLSConfigFromFile reads a PEM certificate file and creates
17-
// a tls.Config that will use this certifate to verify a server certificate.
17+
// a tls.Config that will use this certificate to verify a server certificate.
1818
func ReadTLSConfigFromFile(path string) (*tls.Config, error) {
1919
b, err := os.ReadFile(path)
2020
if err != nil {

exporters/otlp/otlptrace/otlptracegrpc/internal/otlpconfig/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func NewGRPCConfig(opts ...GRPCOption) Config {
125125
if cfg.ServiceConfig != "" {
126126
cfg.DialOptions = append(cfg.DialOptions, grpc.WithDefaultServiceConfig(cfg.ServiceConfig))
127127
}
128-
// Priroritize GRPCCredentials over Insecure (passing both is an error).
128+
// Prioritize GRPCCredentials over Insecure (passing both is an error).
129129
if cfg.Traces.GRPCCredentials != nil {
130130
cfg.DialOptions = append(cfg.DialOptions, grpc.WithTransportCredentials(cfg.Traces.GRPCCredentials))
131131
} else if cfg.Traces.Insecure {

exporters/otlp/otlptrace/otlptracehttp/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var (
3535
}
3636

3737
customUserAgentHeader = map[string]string{
38-
"user-agent": "custome-user-agent",
38+
"user-agent": "custom-user-agent",
3939
}
4040

4141
customProxyHeader = map[string]string{

exporters/otlp/otlptrace/otlptracehttp/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ target URL to which the exporter sends telemetry.
2222
The value must contain a scheme ("http" or "https") and host.
2323
The value may additionally contain a port and a path.
2424
The value should not contain a query string or fragment.
25-
The configuration can be overridden by [WithEndpoint], [WithEndpointURL], [WitnInsecure], and [WithURLPath] options.
25+
The configuration can be overridden by [WithEndpoint], [WithEndpointURL], [WithInsecure], and [WithURLPath] options.
2626
2727
OTEL_EXPORTER_OTLP_HEADERS, OTEL_EXPORTER_OTLP_TRACES_HEADERS (default: none) -
2828
key-value pairs used as headers associated with HTTP requests.

exporters/otlp/otlptrace/otlptracehttp/internal/otlpconfig/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func NewGRPCConfig(opts ...GRPCOption) Config {
125125
if cfg.ServiceConfig != "" {
126126
cfg.DialOptions = append(cfg.DialOptions, grpc.WithDefaultServiceConfig(cfg.ServiceConfig))
127127
}
128-
// Priroritize GRPCCredentials over Insecure (passing both is an error).
128+
// Prioritize GRPCCredentials over Insecure (passing both is an error).
129129
if cfg.Traces.GRPCCredentials != nil {
130130
cfg.DialOptions = append(cfg.DialOptions, grpc.WithTransportCredentials(cfg.Traces.GRPCCredentials))
131131
} else if cfg.Traces.Insecure {

exporters/prometheus/exporter_test.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ import (
2828

2929
func TestPrometheusExporter(t *testing.T) {
3030
testCases := []struct {
31-
name string
32-
emptyResource bool
33-
customResouceAttrs []attribute.KeyValue
34-
recordMetrics func(ctx context.Context, meter otelmetric.Meter)
35-
options []Option
36-
expectedFile string
31+
name string
32+
emptyResource bool
33+
customResourceAttrs []attribute.KeyValue
34+
recordMetrics func(ctx context.Context, meter otelmetric.Meter)
35+
options []Option
36+
expectedFile string
3737
}{
3838
{
3939
name: "counter",
@@ -264,7 +264,7 @@ func TestPrometheusExporter(t *testing.T) {
264264
},
265265
{
266266
name: "custom resource",
267-
customResouceAttrs: []attribute.KeyValue{
267+
customResourceAttrs: []attribute.KeyValue{
268268
attribute.Key("A").String("B"),
269269
attribute.Key("C").String("D"),
270270
},
@@ -417,7 +417,7 @@ func TestPrometheusExporter(t *testing.T) {
417417
resource.WithAttributes(semconv.ServiceName("prometheus_test")),
418418
// Overwrite the semconv.TelemetrySDKVersionKey value so we don't need to update every version
419419
resource.WithAttributes(semconv.TelemetrySDKVersion("latest")),
420-
resource.WithAttributes(tc.customResouceAttrs...),
420+
resource.WithAttributes(tc.customResourceAttrs...),
421421
)
422422
require.NoError(t, err)
423423

@@ -536,7 +536,7 @@ func TestDuplicateMetrics(t *testing.T) {
536536
withTypeFoo := otelmetric.WithAttributeSet(typeFoo)
537537
testCases := []struct {
538538
name string
539-
customResouceAttrs []attribute.KeyValue
539+
customResourceAttrs []attribute.KeyValue
540540
recordMetrics func(ctx context.Context, meterA, meterB otelmetric.Meter)
541541
options []Option
542542
possibleExpectedFiles []string

internal/global/meter_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ func TestMeterProviderDelegatesCalls(t *testing.T) {
234234
assert.Equal(t, 1, tMeter.siHist)
235235
assert.Equal(t, 1, len(tMeter.callbacks))
236236

237-
// Because the Meter was provided by testmeterProvider it should also return our test instrument
237+
// Because the Meter was provided by testMeterProvider it should also return our test instrument
238238
require.IsType(t, &testCountingFloatInstrument{}, ctr, "the meter did not delegate calls to the meter")
239239
assert.Equal(t, 1, ctr.(*testCountingFloatInstrument).count)
240240

@@ -283,11 +283,11 @@ func TestMeterDelegatesCalls(t *testing.T) {
283283
assert.Equal(t, 1, tMeter.siUDCount)
284284
assert.Equal(t, 1, tMeter.siHist)
285285

286-
// Because the Meter was provided by testmeterProvider it should also return our test instrument
286+
// Because the Meter was provided by testMeterProvider it should also return our test instrument
287287
require.IsType(t, &testCountingFloatInstrument{}, ctr, "the meter did not delegate calls to the meter")
288288
assert.Equal(t, 1, ctr.(*testCountingFloatInstrument).count)
289289

290-
// Because the Meter was provided by testmeterProvider it should also return our test instrument
290+
// Because the Meter was provided by testMeterProvider it should also return our test instrument
291291
require.IsType(t, &testCountingFloatInstrument{}, actr, "the meter did not delegate calls to the meter")
292292
assert.Equal(t, 1, actr.(*testCountingFloatInstrument).count)
293293

internal/shared/otlp/otlplog/transform/log.go.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func resourceLogsMap(dst *map[attribute.Distinct]*lpb.ResourceLogs, records []lo
6666
}
6767
}
6868

69-
// ScopeLogs returns a slice of OTLP ScopeLogs generated from recoreds.
69+
// ScopeLogs returns a slice of OTLP ScopeLogs generated from records.
7070
func ScopeLogs(records []log.Record) []*lpb.ScopeLogs {
7171
scopeMap := scopeLogsMapPool.Get().(map[instrumentation.Scope]*lpb.ScopeLogs)
7272
defer func() {

internal/shared/otlp/otlpmetric/oconf/options.go.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func NewGRPCConfig(opts ...GRPCOption) Config {
139139
if cfg.ServiceConfig != "" {
140140
cfg.DialOptions = append(cfg.DialOptions, grpc.WithDefaultServiceConfig(cfg.ServiceConfig))
141141
}
142-
// Priroritize GRPCCredentials over Insecure (passing both is an error).
142+
// Prioritize GRPCCredentials over Insecure (passing both is an error).
143143
if cfg.Metrics.GRPCCredentials != nil {
144144
cfg.DialOptions = append(cfg.DialOptions, grpc.WithTransportCredentials(cfg.Metrics.GRPCCredentials))
145145
} else if cfg.Metrics.Insecure {

internal/shared/otlp/otlpmetric/oconf/tls.go.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
)
1515

1616
// ReadTLSConfigFromFile reads a PEM certificate file and creates
17-
// a tls.Config that will use this certifate to verify a server certificate.
17+
// a tls.Config that will use this certificate to verify a server certificate.
1818
func ReadTLSConfigFromFile(path string) (*tls.Config, error) {
1919
b, err := os.ReadFile(path)
2020
if err != nil {

internal/shared/otlp/otlptrace/otlpconfig/options.go.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func NewGRPCConfig(opts ...GRPCOption) Config {
125125
if cfg.ServiceConfig != "" {
126126
cfg.DialOptions = append(cfg.DialOptions, grpc.WithDefaultServiceConfig(cfg.ServiceConfig))
127127
}
128-
// Priroritize GRPCCredentials over Insecure (passing both is an error).
128+
// Prioritize GRPCCredentials over Insecure (passing both is an error).
129129
if cfg.Traces.GRPCCredentials != nil {
130130
cfg.DialOptions = append(cfg.DialOptions, grpc.WithTransportCredentials(cfg.Traces.GRPCCredentials))
131131
} else if cfg.Traces.Insecure {

log/DESIGN.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,16 @@ is defined as `Record` struct in [record.go](record.go).
105105
is accessed using following methods:
106106

107107
```go
108-
func (r *Record) Timestamp() time.Time
109-
func (r *Record) SetTimestamp(t time.Time)
108+
func (r *Record) Timestamp() time.Time
109+
func (r *Record) SetTimestamp(t time.Time)
110110
```
111111

112112
[`ObservedTimestamp`](https://opentelemetry.io/docs/specs/otel/logs/data-model/#field-observedtimestamp)
113113
is accessed using following methods:
114114

115115
```go
116-
func (r *Record) ObservedTimestamp() time.Time
117-
func (r *Record) SetObservedTimestamp(t time.Time)
116+
func (r *Record) ObservedTimestamp() time.Time
117+
func (r *Record) SetObservedTimestamp(t time.Time)
118118
```
119119

120120
[`SeverityNumber`](https://opentelemetry.io/docs/specs/otel/logs/data-model/#field-severitynumber)
@@ -307,7 +307,7 @@ The API needs to evolve orthogonally to `slog`.
307307
`slog` is not compliant with the [Logs Bridge API](https://opentelemetry.io/docs/specs/otel/logs/bridge-api/).
308308
and we cannot expect the Go team to make `slog` compliant with it.
309309

310-
The interoperabilty can be achieved using [a log bridge](https://opentelemetry.io/docs/specs/otel/glossary/#log-appender--bridge).
310+
The interoperability can be achieved using [a log bridge](https://opentelemetry.io/docs/specs/otel/glossary/#log-appender--bridge).
311311

312312
You can read more about OpenTelemetry Logs design on [opentelemetry.io](https://opentelemetry.io/docs/concepts/signals/logs/).
313313

metric/asyncfloat64.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ type Float64Observer interface {
213213
}
214214

215215
// Float64Callback is a function registered with a Meter that makes
216-
// observations for a Float64Observerable instrument it is registered with.
216+
// observations for a Float64Observable instrument it is registered with.
217217
// Calls to the Float64Observer record measurement values for the
218218
// Float64Observable.
219219
//

0 commit comments

Comments
 (0)