Skip to content
This repository was archived by the owner on Nov 7, 2022. It is now read-only.

Commit a4b0d68

Browse files
Bogdan Drutuflands
authored andcommitted
Fix misspell errors. (#440)
1 parent eb3edc6 commit a4b0d68

7 files changed

Lines changed: 8 additions & 8 deletions

File tree

internal/collector/sampling/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
// Package sampling containts the interfaces and data types used to implement
15+
// Package sampling contains the interfaces and data types used to implement
1616
// the various sampling policies.
1717
package sampling

internal/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ func ExportersFromViperConfig(logger *zap.Logger, v *viper.Viper) ([]processor.T
499499
for _, me := range mes {
500500
if me != nil {
501501
metricsExporters = append(metricsExporters, me)
502-
logger.Info("Metrices Exporter enabled", zap.String("exporter", cfg.name))
502+
logger.Info("Metrics Exporter enabled", zap.String("exporter", cfg.name))
503503
}
504504
}
505505

internal/config/viperutils/viper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
// Package sampling containts the interfaces and data types used to implement
15+
// Package sampling contains the interfaces and data types used to implement
1616
// the various sampling policies.
1717

1818
package viperutils

receiver/opencensusreceiver/ocmetrics/opencensus_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func TestExportProtocolViolations_nodelessFirstMessage(t *testing.T) {
216216
}
217217

218218
// The connection should be invalid at this point and
219-
// no attempt to send corrections should succeeed.
219+
// no attempt to send corrections should succeed.
220220
n1 := &commonpb.Node{
221221
Identifier: &commonpb.ProcessIdentifier{Pid: 9489, HostName: "nodejs-host"},
222222
LibraryInfo: &commonpb.LibraryInfo{Language: commonpb.LibraryInfo_NODE_JS},

receiver/opencensusreceiver/octrace/opencensus_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ func TestExportProtocolViolations_nodelessFirstMessage(t *testing.T) {
354354
}
355355

356356
// The connection should be invalid at this point and
357-
// no attempt to send corrections should succeeed.
357+
// no attempt to send corrections should succeed.
358358
n1 := &commonpb.Node{
359359
Identifier: &commonpb.ProcessIdentifier{Pid: 9489, HostName: "nodejs-host"},
360360
LibraryInfo: &commonpb.LibraryInfo{Language: commonpb.LibraryInfo_NODE_JS},

translator/trace/big_endian_converter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func Int64TraceIDToByteTraceID(high, low int64) []byte {
3030
return traceID
3131
}
3232

33-
// Int64SpanIDToByteSpanID takes a long represenation of a span id and
33+
// Int64SpanIDToByteSpanID takes a long representation of a span id and
3434
// converts it to a []byte representation.
3535
func Int64SpanIDToByteSpanID(id int64) []byte {
3636
if id == 0 {

translator/trace/zipkin/zipkinv1_to_protospan.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ import (
3030
)
3131

3232
var (
33-
// ZipkinV1 friendly convertion errors
33+
// ZipkinV1 friendly conversion errors
3434
msgZipkinV1JSONUnmarshalError = "zipkinv1"
3535
msgZipkinV1TraceIDError = "zipkinV1 span traceId"
3636
msgZipkinV1SpanIDError = "zipkinV1 span id"
3737
msgZipkinV1ParentIDError = "zipkinV1 span parentId"
38-
// Generic hex to ID convertion errors
38+
// Generic hex to ID conversion errors
3939
errHexTraceIDWrongLen = errors.New("hex traceId span has wrong length (expected 16 or 32)")
4040
errHexTraceIDParsing = errors.New("failed to parse hex traceId")
4141
errHexTraceIDZero = errors.New("traceId is zero")

0 commit comments

Comments
 (0)