From 19294aab4cd8b52afc34b77403e7447109c9b858 Mon Sep 17 00:00:00 2001 From: Pablo Baeyens Date: Fri, 29 Oct 2021 18:34:37 +0200 Subject: [PATCH] Add vanity imports to internal packages (#2280) * `porto -w --include-internal .` * Bump `porto` to 0.4.0 and include internal files Co-authored-by: Tyler Yahn --- Makefile | 2 +- bridge/opencensus/internal/handler.go | 2 +- bridge/opencensus/internal/oc2otel/attributes.go | 2 +- bridge/opencensus/internal/oc2otel/span_context.go | 2 +- bridge/opencensus/internal/oc2otel/tracer_start_options.go | 2 +- bridge/opencensus/internal/otel2oc/span_context.go | 2 +- bridge/opencensus/internal/span.go | 2 +- bridge/opencensus/internal/tracer.go | 2 +- bridge/opentracing/internal/mock.go | 2 +- exporters/otlp/otlpmetric/internal/connection/connection.go | 2 +- .../otlp/otlpmetric/internal/metrictransform/attribute.go | 2 +- exporters/otlp/otlpmetric/internal/metrictransform/metric.go | 2 +- .../otlp/otlpmetric/internal/metrictransform/resource.go | 2 +- exporters/otlp/otlpmetric/internal/otlpconfig/envconfig.go | 2 +- exporters/otlp/otlpmetric/internal/otlpconfig/options.go | 2 +- exporters/otlp/otlpmetric/internal/otlpconfig/tls.go | 2 +- exporters/otlp/otlpmetric/internal/otlpmetrictest/client.go | 2 +- .../otlp/otlpmetric/internal/otlpmetrictest/collector.go | 2 +- exporters/otlp/otlpmetric/internal/otlpmetrictest/data.go | 2 +- exporters/otlp/otlpmetric/internal/otlpmetrictest/otlptest.go | 2 +- exporters/otlp/otlptrace/internal/connection/connection.go | 2 +- exporters/otlp/otlptrace/internal/otlpconfig/envconfig.go | 2 +- exporters/otlp/otlptrace/internal/otlpconfig/tls.go | 2 +- exporters/otlp/otlptrace/internal/otlptracetest/client.go | 2 +- exporters/otlp/otlptrace/internal/otlptracetest/collector.go | 2 +- exporters/otlp/otlptrace/internal/otlptracetest/data.go | 2 +- exporters/otlp/otlptrace/internal/otlptracetest/otlptest.go | 2 +- exporters/otlp/otlptrace/internal/retry/retry.go | 2 +- exporters/otlp/otlptrace/internal/tracetransform/attribute.go | 2 +- .../otlp/otlptrace/internal/tracetransform/instrumentation.go | 2 +- exporters/otlp/otlptrace/internal/tracetransform/resource.go | 2 +- exporters/otlp/otlptrace/internal/tracetransform/span.go | 2 +- internal/baggage/baggage.go | 2 +- internal/baggage/context.go | 2 +- internal/global/propagator.go | 2 +- internal/global/state.go | 2 +- internal/global/trace.go | 2 +- internal/internaltest/alignment.go | 2 +- internal/internaltest/env.go | 2 +- internal/internaltest/errors.go | 2 +- internal/internaltest/text_map_carrier.go | 2 +- internal/internaltest/text_map_propagator.go | 2 +- internal/matchers/expectation.go | 2 +- internal/matchers/expecter.go | 2 +- internal/matchers/temporal_matcher.go | 2 +- internal/metric/async.go | 2 +- internal/metric/global/meter.go | 2 +- internal/metric/global/metric.go | 2 +- internal/rawhelpers.go | 2 +- internal/tools/common.go | 2 +- internal/tools/go.mod | 2 +- internal/tools/go.sum | 4 ++-- internal/tools/tools.go | 2 +- internal/trace/noop/noop.go | 2 +- sdk/internal/sanitize.go | 2 +- 55 files changed, 56 insertions(+), 56 deletions(-) diff --git a/Makefile b/Makefile index 8e3a27179..97955c0e5 100644 --- a/Makefile +++ b/Makefile @@ -145,7 +145,7 @@ lint: misspell lint-modules | $(GOLANGCI_LINT) .PHONY: vanity-import-check vanity-import-check: | $(PORTO) - $(PORTO) -l . + $(PORTO) --include-internal -l . .PHONY: misspell misspell: | $(MISSPELL) diff --git a/bridge/opencensus/internal/handler.go b/bridge/opencensus/internal/handler.go index 2d6a51600..6bf549616 100644 --- a/bridge/opencensus/internal/handler.go +++ b/bridge/opencensus/internal/handler.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package internal +package internal // import "go.opentelemetry.io/otel/bridge/opencensus/internal" import "go.opentelemetry.io/otel" diff --git a/bridge/opencensus/internal/oc2otel/attributes.go b/bridge/opencensus/internal/oc2otel/attributes.go index aea7f4269..3e1cebdb8 100644 --- a/bridge/opencensus/internal/oc2otel/attributes.go +++ b/bridge/opencensus/internal/oc2otel/attributes.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package oc2otel +package oc2otel // import "go.opentelemetry.io/otel/bridge/opencensus/internal/oc2otel" import ( octrace "go.opencensus.io/trace" diff --git a/bridge/opencensus/internal/oc2otel/span_context.go b/bridge/opencensus/internal/oc2otel/span_context.go index 32c120c7b..006226f30 100644 --- a/bridge/opencensus/internal/oc2otel/span_context.go +++ b/bridge/opencensus/internal/oc2otel/span_context.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package oc2otel +package oc2otel // import "go.opentelemetry.io/otel/bridge/opencensus/internal/oc2otel" import ( octrace "go.opencensus.io/trace" diff --git a/bridge/opencensus/internal/oc2otel/tracer_start_options.go b/bridge/opencensus/internal/oc2otel/tracer_start_options.go index b86732910..030df047f 100644 --- a/bridge/opencensus/internal/oc2otel/tracer_start_options.go +++ b/bridge/opencensus/internal/oc2otel/tracer_start_options.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package oc2otel +package oc2otel // import "go.opentelemetry.io/otel/bridge/opencensus/internal/oc2otel" import ( "fmt" diff --git a/bridge/opencensus/internal/otel2oc/span_context.go b/bridge/opencensus/internal/otel2oc/span_context.go index a9bbf2c68..6355eb555 100644 --- a/bridge/opencensus/internal/otel2oc/span_context.go +++ b/bridge/opencensus/internal/otel2oc/span_context.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package otel2oc +package otel2oc // import "go.opentelemetry.io/otel/bridge/opencensus/internal/otel2oc" import ( octrace "go.opencensus.io/trace" diff --git a/bridge/opencensus/internal/span.go b/bridge/opencensus/internal/span.go index 0f8533d9f..21449aa3d 100644 --- a/bridge/opencensus/internal/span.go +++ b/bridge/opencensus/internal/span.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package internal +package internal // import "go.opentelemetry.io/otel/bridge/opencensus/internal" import ( "fmt" diff --git a/bridge/opencensus/internal/tracer.go b/bridge/opencensus/internal/tracer.go index 8590933a2..4ed70a30a 100644 --- a/bridge/opencensus/internal/tracer.go +++ b/bridge/opencensus/internal/tracer.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package internal +package internal // import "go.opentelemetry.io/otel/bridge/opencensus/internal" import ( "context" diff --git a/bridge/opentracing/internal/mock.go b/bridge/opentracing/internal/mock.go index 7a027c9df..8409c167a 100644 --- a/bridge/opentracing/internal/mock.go +++ b/bridge/opentracing/internal/mock.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package internal +package internal // import "go.opentelemetry.io/otel/bridge/opentracing/internal" import ( "context" diff --git a/exporters/otlp/otlpmetric/internal/connection/connection.go b/exporters/otlp/otlpmetric/internal/connection/connection.go index 4ace51f22..3e6a938f8 100644 --- a/exporters/otlp/otlpmetric/internal/connection/connection.go +++ b/exporters/otlp/otlpmetric/internal/connection/connection.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package connection +package connection // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/connection" import ( "context" diff --git a/exporters/otlp/otlpmetric/internal/metrictransform/attribute.go b/exporters/otlp/otlpmetric/internal/metrictransform/attribute.go index 69be6f931..0414bf526 100644 --- a/exporters/otlp/otlpmetric/internal/metrictransform/attribute.go +++ b/exporters/otlp/otlpmetric/internal/metrictransform/attribute.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package metrictransform +package metrictransform // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/metrictransform" import ( "go.opentelemetry.io/otel/attribute" diff --git a/exporters/otlp/otlpmetric/internal/metrictransform/metric.go b/exporters/otlp/otlpmetric/internal/metrictransform/metric.go index 03f55fad8..5358e9ab7 100644 --- a/exporters/otlp/otlpmetric/internal/metrictransform/metric.go +++ b/exporters/otlp/otlpmetric/internal/metrictransform/metric.go @@ -14,7 +14,7 @@ // Package transform provides translations for opentelemetry-go concepts and // structures to otlp structures. -package metrictransform +package metrictransform // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/metrictransform" import ( "context" diff --git a/exporters/otlp/otlpmetric/internal/metrictransform/resource.go b/exporters/otlp/otlpmetric/internal/metrictransform/resource.go index c4a38be12..e8622d794 100644 --- a/exporters/otlp/otlpmetric/internal/metrictransform/resource.go +++ b/exporters/otlp/otlpmetric/internal/metrictransform/resource.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package metrictransform +package metrictransform // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/metrictransform" import ( resourcepb "go.opentelemetry.io/proto/otlp/resource/v1" diff --git a/exporters/otlp/otlpmetric/internal/otlpconfig/envconfig.go b/exporters/otlp/otlpmetric/internal/otlpconfig/envconfig.go index 5942905a1..17d0e71bc 100644 --- a/exporters/otlp/otlpmetric/internal/otlpconfig/envconfig.go +++ b/exporters/otlp/otlpmetric/internal/otlpconfig/envconfig.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package otlpconfig +package otlpconfig // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/otlpconfig" import ( "crypto/tls" diff --git a/exporters/otlp/otlpmetric/internal/otlpconfig/options.go b/exporters/otlp/otlpmetric/internal/otlpconfig/options.go index b5fb9ce2e..4a9c326f4 100644 --- a/exporters/otlp/otlpmetric/internal/otlpconfig/options.go +++ b/exporters/otlp/otlpmetric/internal/otlpconfig/options.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package otlpconfig // import "go.opentelemetry.io/otel/exporters/otlp/internal/otlpconfig" +package otlpconfig // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/otlpconfig" import ( "crypto/tls" diff --git a/exporters/otlp/otlpmetric/internal/otlpconfig/tls.go b/exporters/otlp/otlpmetric/internal/otlpconfig/tls.go index c7cc31457..ae2b03c44 100644 --- a/exporters/otlp/otlpmetric/internal/otlpconfig/tls.go +++ b/exporters/otlp/otlpmetric/internal/otlpconfig/tls.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package otlpconfig +package otlpconfig // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/otlpconfig" import ( "crypto/tls" diff --git a/exporters/otlp/otlpmetric/internal/otlpmetrictest/client.go b/exporters/otlp/otlpmetric/internal/otlpmetrictest/client.go index f05c28efd..fb29e3ede 100644 --- a/exporters/otlp/otlpmetric/internal/otlpmetrictest/client.go +++ b/exporters/otlp/otlpmetric/internal/otlpmetrictest/client.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package otlpmetrictest +package otlpmetrictest // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/otlpmetrictest" import ( "context" diff --git a/exporters/otlp/otlpmetric/internal/otlpmetrictest/collector.go b/exporters/otlp/otlpmetric/internal/otlpmetrictest/collector.go index 26de679ea..73b54b9bf 100644 --- a/exporters/otlp/otlpmetric/internal/otlpmetrictest/collector.go +++ b/exporters/otlp/otlpmetric/internal/otlpmetrictest/collector.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package otlpmetrictest +package otlpmetrictest // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/otlpmetrictest" import ( collectormetricpb "go.opentelemetry.io/proto/otlp/collector/metrics/v1" diff --git a/exporters/otlp/otlpmetric/internal/otlpmetrictest/data.go b/exporters/otlp/otlpmetric/internal/otlpmetrictest/data.go index 523211b0c..65f79594e 100644 --- a/exporters/otlp/otlpmetric/internal/otlpmetrictest/data.go +++ b/exporters/otlp/otlpmetric/internal/otlpmetrictest/data.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package otlpmetrictest +package otlpmetrictest // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/otlpmetrictest" import ( "context" diff --git a/exporters/otlp/otlpmetric/internal/otlpmetrictest/otlptest.go b/exporters/otlp/otlpmetric/internal/otlpmetrictest/otlptest.go index fc9adac15..3a65ef099 100644 --- a/exporters/otlp/otlpmetric/internal/otlpmetrictest/otlptest.go +++ b/exporters/otlp/otlpmetric/internal/otlpmetrictest/otlptest.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package otlpmetrictest +package otlpmetrictest // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/otlpmetrictest" import ( "context" diff --git a/exporters/otlp/otlptrace/internal/connection/connection.go b/exporters/otlp/otlptrace/internal/connection/connection.go index 67e06888c..674780394 100644 --- a/exporters/otlp/otlptrace/internal/connection/connection.go +++ b/exporters/otlp/otlptrace/internal/connection/connection.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package connection +package connection // import "go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/connection" import ( "context" diff --git a/exporters/otlp/otlptrace/internal/otlpconfig/envconfig.go b/exporters/otlp/otlptrace/internal/otlpconfig/envconfig.go index 942d57596..352a88206 100644 --- a/exporters/otlp/otlptrace/internal/otlpconfig/envconfig.go +++ b/exporters/otlp/otlptrace/internal/otlpconfig/envconfig.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package otlpconfig +package otlpconfig // import "go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/otlpconfig" import ( "crypto/tls" diff --git a/exporters/otlp/otlptrace/internal/otlpconfig/tls.go b/exporters/otlp/otlptrace/internal/otlpconfig/tls.go index 19fdb2f6b..7287cf6cf 100644 --- a/exporters/otlp/otlptrace/internal/otlpconfig/tls.go +++ b/exporters/otlp/otlptrace/internal/otlpconfig/tls.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package otlpconfig +package otlpconfig // import "go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/otlpconfig" import ( "crypto/tls" diff --git a/exporters/otlp/otlptrace/internal/otlptracetest/client.go b/exporters/otlp/otlptrace/internal/otlptracetest/client.go index 70edfa0d9..c4ae388ac 100644 --- a/exporters/otlp/otlptrace/internal/otlptracetest/client.go +++ b/exporters/otlp/otlptrace/internal/otlptracetest/client.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package otlptracetest +package otlptracetest // import "go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/otlptracetest" import ( "context" diff --git a/exporters/otlp/otlptrace/internal/otlptracetest/collector.go b/exporters/otlp/otlptrace/internal/otlptracetest/collector.go index 0a9c405c5..992f9de2e 100644 --- a/exporters/otlp/otlptrace/internal/otlptracetest/collector.go +++ b/exporters/otlp/otlptrace/internal/otlptracetest/collector.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package otlptracetest +package otlptracetest // import "go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/otlptracetest" import ( "sort" diff --git a/exporters/otlp/otlptrace/internal/otlptracetest/data.go b/exporters/otlp/otlptrace/internal/otlptracetest/data.go index cf6142e01..d039105cb 100644 --- a/exporters/otlp/otlptrace/internal/otlptracetest/data.go +++ b/exporters/otlp/otlptrace/internal/otlptracetest/data.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package otlptracetest +package otlptracetest // import "go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/otlptracetest" import ( "time" diff --git a/exporters/otlp/otlptrace/internal/otlptracetest/otlptest.go b/exporters/otlp/otlptrace/internal/otlptracetest/otlptest.go index 28b10db69..e524219e9 100644 --- a/exporters/otlp/otlptrace/internal/otlptracetest/otlptest.go +++ b/exporters/otlp/otlptrace/internal/otlptracetest/otlptest.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package otlptracetest +package otlptracetest // import "go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/otlptracetest" import ( "context" diff --git a/exporters/otlp/otlptrace/internal/retry/retry.go b/exporters/otlp/otlptrace/internal/retry/retry.go index 4f2d63a41..37b9dabe5 100644 --- a/exporters/otlp/otlptrace/internal/retry/retry.go +++ b/exporters/otlp/otlptrace/internal/retry/retry.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package retry +package retry // import "go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/retry" import ( "context" diff --git a/exporters/otlp/otlptrace/internal/tracetransform/attribute.go b/exporters/otlp/otlptrace/internal/tracetransform/attribute.go index 01579fac7..517411b24 100644 --- a/exporters/otlp/otlptrace/internal/tracetransform/attribute.go +++ b/exporters/otlp/otlptrace/internal/tracetransform/attribute.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package tracetransform +package tracetransform // import "go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/tracetransform" import ( "go.opentelemetry.io/otel/attribute" diff --git a/exporters/otlp/otlptrace/internal/tracetransform/instrumentation.go b/exporters/otlp/otlptrace/internal/tracetransform/instrumentation.go index 81875a575..25d3c1ba4 100644 --- a/exporters/otlp/otlptrace/internal/tracetransform/instrumentation.go +++ b/exporters/otlp/otlptrace/internal/tracetransform/instrumentation.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package tracetransform +package tracetransform // import "go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/tracetransform" import ( commonpb "go.opentelemetry.io/proto/otlp/common/v1" diff --git a/exporters/otlp/otlptrace/internal/tracetransform/resource.go b/exporters/otlp/otlptrace/internal/tracetransform/resource.go index 018d0fb25..c2b17a6b2 100644 --- a/exporters/otlp/otlptrace/internal/tracetransform/resource.go +++ b/exporters/otlp/otlptrace/internal/tracetransform/resource.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package tracetransform +package tracetransform // import "go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/tracetransform" import ( resourcepb "go.opentelemetry.io/proto/otlp/resource/v1" diff --git a/exporters/otlp/otlptrace/internal/tracetransform/span.go b/exporters/otlp/otlptrace/internal/tracetransform/span.go index adbba7755..09dd70818 100644 --- a/exporters/otlp/otlptrace/internal/tracetransform/span.go +++ b/exporters/otlp/otlptrace/internal/tracetransform/span.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package tracetransform +package tracetransform // import "go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/tracetransform" import ( "go.opentelemetry.io/otel/attribute" diff --git a/internal/baggage/baggage.go b/internal/baggage/baggage.go index 87d0af405..b96e5408e 100644 --- a/internal/baggage/baggage.go +++ b/internal/baggage/baggage.go @@ -21,7 +21,7 @@ this need this package would not need to exist and the `go.opentelemetry.io/otel/baggage` package would be the singular place where W3C baggage is handled. */ -package baggage +package baggage // import "go.opentelemetry.io/otel/internal/baggage" // List is the collection of baggage members. The W3C allows for duplicates, // but OpenTelemetry does not, therefore, this is represented as a map. diff --git a/internal/baggage/context.go b/internal/baggage/context.go index 7d8694e8c..3c2784eea 100644 --- a/internal/baggage/context.go +++ b/internal/baggage/context.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package baggage +package baggage // import "go.opentelemetry.io/otel/internal/baggage" import "context" diff --git a/internal/global/propagator.go b/internal/global/propagator.go index 1c8b8589b..06bac35c2 100644 --- a/internal/global/propagator.go +++ b/internal/global/propagator.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package global +package global // import "go.opentelemetry.io/otel/internal/global" import ( "context" diff --git a/internal/global/state.go b/internal/global/state.go index c55345576..d6b3e900c 100644 --- a/internal/global/state.go +++ b/internal/global/state.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package global +package global // import "go.opentelemetry.io/otel/internal/global" import ( "sync" diff --git a/internal/global/trace.go b/internal/global/trace.go index 11c7c5568..5f008d098 100644 --- a/internal/global/trace.go +++ b/internal/global/trace.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package global +package global // import "go.opentelemetry.io/otel/internal/global" /* This file contains the forwarding implementation of the TracerProvider used as diff --git a/internal/internaltest/alignment.go b/internal/internaltest/alignment.go index a814ef685..f14208eff 100644 --- a/internal/internaltest/alignment.go +++ b/internal/internaltest/alignment.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package internaltest +package internaltest // import "go.opentelemetry.io/otel/internal/internaltest" /* This file contains common utilities and objects to validate memory alignment diff --git a/internal/internaltest/env.go b/internal/internaltest/env.go index 92af567e8..6304d06df 100644 --- a/internal/internaltest/env.go +++ b/internal/internaltest/env.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package internaltest +package internaltest // import "go.opentelemetry.io/otel/internal/internaltest" import ( "os" diff --git a/internal/internaltest/errors.go b/internal/internaltest/errors.go index 8d1e7d138..462d0f99d 100644 --- a/internal/internaltest/errors.go +++ b/internal/internaltest/errors.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package internaltest +package internaltest // import "go.opentelemetry.io/otel/internal/internaltest" type TestError string diff --git a/internal/internaltest/text_map_carrier.go b/internal/internaltest/text_map_carrier.go index 198a00230..6aa47d9bb 100644 --- a/internal/internaltest/text_map_carrier.go +++ b/internal/internaltest/text_map_carrier.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package internaltest +package internaltest // import "go.opentelemetry.io/otel/internal/internaltest" import ( "sync" diff --git a/internal/internaltest/text_map_propagator.go b/internal/internaltest/text_map_propagator.go index 76ba80b3a..4873e330d 100644 --- a/internal/internaltest/text_map_propagator.go +++ b/internal/internaltest/text_map_propagator.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package internaltest +package internaltest // import "go.opentelemetry.io/otel/internal/internaltest" import ( "context" diff --git a/internal/matchers/expectation.go b/internal/matchers/expectation.go index 12ba787f4..49200aafe 100644 --- a/internal/matchers/expectation.go +++ b/internal/matchers/expectation.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package matchers +package matchers // import "go.opentelemetry.io/otel/internal/matchers" import ( "fmt" diff --git a/internal/matchers/expecter.go b/internal/matchers/expecter.go index 7c3b829f2..60221d5ec 100644 --- a/internal/matchers/expecter.go +++ b/internal/matchers/expecter.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package matchers +package matchers // import "go.opentelemetry.io/otel/internal/matchers" import ( "testing" diff --git a/internal/matchers/temporal_matcher.go b/internal/matchers/temporal_matcher.go index 2fcca0881..75ed7dc03 100644 --- a/internal/matchers/temporal_matcher.go +++ b/internal/matchers/temporal_matcher.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package matchers +package matchers // import "go.opentelemetry.io/otel/internal/matchers" type TemporalMatcher byte diff --git a/internal/metric/async.go b/internal/metric/async.go index 12ff1feb7..94801b7ff 100644 --- a/internal/metric/async.go +++ b/internal/metric/async.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package metric +package metric // import "go.opentelemetry.io/otel/internal/metric" import ( "context" diff --git a/internal/metric/global/meter.go b/internal/metric/global/meter.go index c421b1461..b88fbb13a 100644 --- a/internal/metric/global/meter.go +++ b/internal/metric/global/meter.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package global +package global // import "go.opentelemetry.io/otel/internal/metric/global" import ( "context" diff --git a/internal/metric/global/metric.go b/internal/metric/global/metric.go index be95ff614..896c6dd1c 100644 --- a/internal/metric/global/metric.go +++ b/internal/metric/global/metric.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package global +package global // import "go.opentelemetry.io/otel/internal/metric/global" import ( "sync" diff --git a/internal/rawhelpers.go b/internal/rawhelpers.go index 0d806b1c8..ce7afaa18 100644 --- a/internal/rawhelpers.go +++ b/internal/rawhelpers.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package internal +package internal // import "go.opentelemetry.io/otel/internal" import ( "math" diff --git a/internal/tools/common.go b/internal/tools/common.go index 7ed489a0b..525e5adcf 100644 --- a/internal/tools/common.go +++ b/internal/tools/common.go @@ -15,7 +15,7 @@ // Package tools provides helper functions used in scripts within the // internal/tools module, as well as imports needed for a build with the // "tools" build tag. -package tools +package tools // import "go.opentelemetry.io/otel/internal/tools" import ( "errors" diff --git a/internal/tools/go.mod b/internal/tools/go.mod index 4f4af92d8..c5f61a493 100644 --- a/internal/tools/go.mod +++ b/internal/tools/go.mod @@ -7,7 +7,7 @@ require ( github.com/gogo/protobuf v1.3.2 github.com/golangci/golangci-lint v1.42.1 github.com/itchyny/gojq v0.12.5 - github.com/jcchavezs/porto v0.3.0 + github.com/jcchavezs/porto v0.4.0 github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad go.opentelemetry.io/build-tools/multimod v0.0.0-20210920164323-2ceabab23375 go.opentelemetry.io/build-tools/semconvgen v0.0.0-20210920164323-2ceabab23375 diff --git a/internal/tools/go.sum b/internal/tools/go.sum index e7d6cc0cb..cc67e50d7 100644 --- a/internal/tools/go.sum +++ b/internal/tools/go.sum @@ -409,8 +409,8 @@ github.com/itchyny/timefmt-go v0.1.3 h1:7M3LGVDsqcd0VZH2U+x393obrzZisp7C0uEe921i github.com/itchyny/timefmt-go v0.1.3/go.mod h1:0osSSCQSASBJMsIZnhAaF1C2fCBTJZXrnj37mG8/c+A= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= -github.com/jcchavezs/porto v0.3.0 h1:JSKeMsqexngzHUpiv4NPPADSNBF9bDyavGRDWedzNeM= -github.com/jcchavezs/porto v0.3.0/go.mod h1:fESH0gzDHiutHRdX2hv27ojnOVFco37hg1W6E9EZF4A= +github.com/jcchavezs/porto v0.4.0 h1:Zj7RligrxmDdKGo6fBO2xYAHxEgrVBfs1YAja20WbV4= +github.com/jcchavezs/porto v0.4.0/go.mod h1:fESH0gzDHiutHRdX2hv27ojnOVFco37hg1W6E9EZF4A= github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4= github.com/jgautheron/goconst v1.5.1 h1:HxVbL1MhydKs8R8n/HE5NPvzfaYmQJA3o879lE4+WcM= github.com/jgautheron/goconst v1.5.1/go.mod h1:aAosetZ5zaeC/2EfMeRswtxUFBpe2Hr7HzkgX4fanO4= diff --git a/internal/tools/tools.go b/internal/tools/tools.go index bcb381a78..2966e7bfd 100644 --- a/internal/tools/tools.go +++ b/internal/tools/tools.go @@ -15,7 +15,7 @@ //go:build tools // +build tools -package tools +package tools // import "go.opentelemetry.io/otel/internal/tools" import ( _ "github.com/client9/misspell/cmd/misspell" diff --git a/internal/trace/noop/noop.go b/internal/trace/noop/noop.go index 765c21a28..f8f3c49f0 100644 --- a/internal/trace/noop/noop.go +++ b/internal/trace/noop/noop.go @@ -13,7 +13,7 @@ // limitations under the License. // Package noop provides noop tracing implementations for tracer and span. -package noop +package noop // import "go.opentelemetry.io/otel/internal/trace/noop" import ( "context" diff --git a/sdk/internal/sanitize.go b/sdk/internal/sanitize.go index e6d8b7d59..ff3518556 100644 --- a/sdk/internal/sanitize.go +++ b/sdk/internal/sanitize.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package internal +package internal // import "go.opentelemetry.io/otel/sdk/internal" import ( "strings"