Skip to content

Commit

Permalink
chore: comment spelling fix in otelhttp semconv (#6407)
Browse files Browse the repository at this point in the history
  • Loading branch information
vordimous authored Dec 5, 2024
1 parent 4f053f2 commit c8f0a6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions instrumentation/net/http/otelhttp/internal/semconv/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ type MetricData struct {

func (s HTTPServer) RecordMetrics(ctx context.Context, md ServerMetricData) {
if s.requestBytesCounter == nil || s.responseBytesCounter == nil || s.serverLatencyMeasure == nil {
// This will happen if an HTTPServer{} is used insted of NewHTTPServer.
// This will happen if an HTTPServer{} is used instead of NewHTTPServer.
return
}

Expand Down Expand Up @@ -206,7 +206,7 @@ func (c HTTPClient) MetricOptions(ma MetricAttributes) MetricOpts {

func (s HTTPClient) RecordMetrics(ctx context.Context, md MetricData, opts MetricOpts) {
if s.requestBytesCounter == nil || s.latencyMeasure == nil {
// This will happen if an HTTPClient{} is used insted of NewHTTPClient().
// This will happen if an HTTPClient{} is used instead of NewHTTPClient().
return
}

Expand All @@ -218,7 +218,7 @@ func (s HTTPClient) RecordMetrics(ctx context.Context, md MetricData, opts Metri

func (s HTTPClient) RecordResponseSize(ctx context.Context, responseData int64, opts metric.AddOption) {
if s.responseBytesCounter == nil {
// This will happen if an HTTPClient{} is used insted of NewHTTPClient().
// This will happen if an HTTPClient{} is used instead of NewHTTPClient().
return
}

Expand Down

0 comments on commit c8f0a6c

Please sign in to comment.