diff --git a/consumer/pdata/generated_common.go b/consumer/pdata/generated_common.go index 8795e47fdcd..cf54bb0f930 100644 --- a/consumer/pdata/generated_common.go +++ b/consumer/pdata/generated_common.go @@ -23,7 +23,7 @@ import ( // InstrumentationLibrary is a message representing the instrumentation library information. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewInstrumentationLibrary function to create new instances. diff --git a/consumer/pdata/generated_metrics.go b/consumer/pdata/generated_metrics.go index 33cda33d094..f1049bf70d3 100644 --- a/consumer/pdata/generated_metrics.go +++ b/consumer/pdata/generated_metrics.go @@ -23,7 +23,7 @@ import ( // ResourceMetricsSlice logically represents a slice of ResourceMetrics. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewResourceMetricsSlice function to create new instances. @@ -113,7 +113,7 @@ func (es ResourceMetricsSlice) Resize(newLen int) { // InstrumentationLibraryMetrics is a collection of metrics from a LibraryInstrumentation. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewResourceMetrics function to create new instances. @@ -168,7 +168,7 @@ func (ms ResourceMetrics) InstrumentationLibraryMetrics() InstrumentationLibrary // InstrumentationLibraryMetricsSlice logically represents a slice of InstrumentationLibraryMetrics. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewInstrumentationLibraryMetricsSlice function to create new instances. @@ -258,7 +258,7 @@ func (es InstrumentationLibraryMetricsSlice) Resize(newLen int) { // InstrumentationLibraryMetrics is a collection of metrics from a LibraryInstrumentation. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewInstrumentationLibraryMetrics function to create new instances. @@ -313,7 +313,7 @@ func (ms InstrumentationLibraryMetrics) Metrics() MetricSlice { // MetricSlice logically represents a slice of Metric. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewMetricSlice function to create new instances. @@ -404,7 +404,7 @@ func (es MetricSlice) Resize(newLen int) { // Metric represents one metric as a collection of datapoints. // See Metric definition in OTLP: https://github.com/open-telemetry/opentelemetry-proto/blob/master/opentelemetry/proto/metrics/v1/metrics.proto#L96 // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewMetric function to create new instances. @@ -480,7 +480,7 @@ func (ms Metric) SummaryDataPoints() SummaryDataPointSlice { // MetricDescriptor is the descriptor of a metric. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewMetricDescriptor function to create new instances. @@ -581,7 +581,7 @@ func (ms MetricDescriptor) LabelsMap() StringMap { // Int64DataPointSlice logically represents a slice of Int64DataPoint. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewInt64DataPointSlice function to create new instances. @@ -671,7 +671,7 @@ func (es Int64DataPointSlice) Resize(newLen int) { // Int64DataPoint is a single data point in a timeseries that describes the time-varying values of a int64 metric. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewInt64DataPoint function to create new instances. @@ -758,7 +758,7 @@ func (ms Int64DataPoint) SetValue(v int64) { // DoubleDataPointSlice logically represents a slice of DoubleDataPoint. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewDoubleDataPointSlice function to create new instances. @@ -848,7 +848,7 @@ func (es DoubleDataPointSlice) Resize(newLen int) { // DoubleDataPoint is a single data point in a timeseries that describes the time-varying value of a double metric. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewDoubleDataPoint function to create new instances. @@ -935,7 +935,7 @@ func (ms DoubleDataPoint) SetValue(v float64) { // HistogramDataPointSlice logically represents a slice of HistogramDataPoint. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewHistogramDataPointSlice function to create new instances. @@ -1025,7 +1025,7 @@ func (es HistogramDataPointSlice) Resize(newLen int) { // HistogramDataPoint is a single data point in a timeseries that describes the time-varying values of a Histogram. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewHistogramDataPoint function to create new instances. @@ -1147,7 +1147,7 @@ func (ms HistogramDataPoint) SetExplicitBounds(v []float64) { // HistogramBucketSlice logically represents a slice of HistogramBucket. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewHistogramBucketSlice function to create new instances. @@ -1237,7 +1237,7 @@ func (es HistogramBucketSlice) Resize(newLen int) { // HistogramBucket contains values for a histogram bucket. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewHistogramBucket function to create new instances. @@ -1300,7 +1300,7 @@ func (ms HistogramBucket) Exemplar() HistogramBucketExemplar { // HistogramBucketExemplar are example points that may be used to annotate aggregated Histogram values. // They are metadata that gives information about a particular value added to a Histogram bucket. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewHistogramBucketExemplar function to create new instances. @@ -1373,7 +1373,7 @@ func (ms HistogramBucketExemplar) Attachments() StringMap { // SummaryDataPointSlice logically represents a slice of SummaryDataPoint. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewSummaryDataPointSlice function to create new instances. @@ -1463,7 +1463,7 @@ func (es SummaryDataPointSlice) Resize(newLen int) { // SummaryDataPoint is a single data point in a timeseries that describes the time-varying values of a Summary metric. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewSummaryDataPoint function to create new instances. @@ -1571,7 +1571,7 @@ func (ms SummaryDataPoint) ValueAtPercentiles() SummaryValueAtPercentileSlice { // SummaryValueAtPercentileSlice logically represents a slice of SummaryValueAtPercentile. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewSummaryValueAtPercentileSlice function to create new instances. @@ -1661,7 +1661,7 @@ func (es SummaryValueAtPercentileSlice) Resize(newLen int) { // SummaryValueAtPercentile represents the value at a given percentile of a distribution. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewSummaryValueAtPercentile function to create new instances. diff --git a/consumer/pdata/generated_resource.go b/consumer/pdata/generated_resource.go index 79b4ce3b2e9..4356fc88a20 100644 --- a/consumer/pdata/generated_resource.go +++ b/consumer/pdata/generated_resource.go @@ -23,7 +23,7 @@ import ( // Resource information. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewResource function to create new instances. diff --git a/consumer/pdata/generated_trace.go b/consumer/pdata/generated_trace.go index a68c024e0b4..2e197433670 100644 --- a/consumer/pdata/generated_trace.go +++ b/consumer/pdata/generated_trace.go @@ -23,7 +23,7 @@ import ( // ResourceSpansSlice logically represents a slice of ResourceSpans. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewResourceSpansSlice function to create new instances. @@ -113,7 +113,7 @@ func (es ResourceSpansSlice) Resize(newLen int) { // InstrumentationLibrarySpans is a collection of spans from a LibraryInstrumentation. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewResourceSpans function to create new instances. @@ -168,7 +168,7 @@ func (ms ResourceSpans) InstrumentationLibrarySpans() InstrumentationLibrarySpan // InstrumentationLibrarySpansSlice logically represents a slice of InstrumentationLibrarySpans. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewInstrumentationLibrarySpansSlice function to create new instances. @@ -258,7 +258,7 @@ func (es InstrumentationLibrarySpansSlice) Resize(newLen int) { // InstrumentationLibrarySpans is a collection of spans from a LibraryInstrumentation. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewInstrumentationLibrarySpans function to create new instances. @@ -313,7 +313,7 @@ func (ms InstrumentationLibrarySpans) Spans() SpanSlice { // SpanSlice logically represents a slice of Span. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewSpanSlice function to create new instances. @@ -404,7 +404,7 @@ func (es SpanSlice) Resize(newLen int) { // Span represents a single operation within a trace. // See Span definition in OTLP: https://github.com/open-telemetry/opentelemetry-proto/blob/master/opentelemetry/proto/trace/v1/trace.proto#L37 // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewSpan function to create new instances. @@ -627,7 +627,7 @@ func (ms Span) Status() SpanStatus { // SpanEventSlice logically represents a slice of SpanEvent. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewSpanEventSlice function to create new instances. @@ -718,7 +718,7 @@ func (es SpanEventSlice) Resize(newLen int) { // SpanEvent is a time-stamped annotation of the span, consisting of user-supplied // text description and key-value pairs. See OTLP for event definition. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewSpanEvent function to create new instances. @@ -805,7 +805,7 @@ func (ms SpanEvent) SetDroppedAttributesCount(v uint32) { // SpanLinkSlice logically represents a slice of SpanLink. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewSpanLinkSlice function to create new instances. @@ -896,7 +896,7 @@ func (es SpanLinkSlice) Resize(newLen int) { // SpanLink is a pointer from the current span to another span in the same trace or in a // different trace. See OTLP for link definition. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewSpanLink function to create new instances. @@ -998,7 +998,7 @@ func (ms SpanLink) SetDroppedAttributesCount(v uint32) { // SpanStatus is an optional final status for this span. Semantically when Status wasn't set // it is means span ended without errors and assume Status.Ok (code = 0). // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use NewSpanStatus function to create new instances. diff --git a/internal/data_generator/internal/base_structs.go b/internal/data_generator/internal/base_structs.go index aec3bc3936f..ca850ca8e4c 100644 --- a/internal/data_generator/internal/base_structs.go +++ b/internal/data_generator/internal/base_structs.go @@ -21,7 +21,7 @@ import ( const sliceTemplate = `// ${structName} logically represents a slice of ${elementName}. // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use New${structName} function to create new instances. @@ -210,7 +210,7 @@ func fillTest${structName}(tv ${structName}) { const messageTemplate = `${description} // -// This is a reference type, if passsed by value and callee modifies it the +// This is a reference type, if passed by value and callee modifies it the // caller will see the modification. // // Must use New${structName} function to create new instances. diff --git a/internal/data_generator/internal/files.go b/internal/data_generator/internal/files.go index 1329f00fe8f..50a58d48001 100644 --- a/internal/data_generator/internal/files.go +++ b/internal/data_generator/internal/files.go @@ -33,7 +33,7 @@ const header = `// Copyright 2020 OpenTelemetry Authors // Code generated by "internal/data_generator/main.go". DO NOT EDIT. // To regenerate this file run "go run internal/data_generator/main.go". -package data` +package pdata` // AllFiles is a list of all files that needs to be generated. var AllFiles = []*File{