Preparing report...

Report for go.opentelemetry.io

A+    Excellent!    Found 101 issues across 671 files

Tweet

gofmt99%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


golint88%

Golint is a linter for Go source code.

    • /go.opentelemetry.io/otel/bridge/opentracing/internal/mock.go
    • Line 42: warning: exported type MockContextKeyValue should have comment or be unexported (golint)
    • Line 47: warning: exported type MockTracer should have comment or be unexported (golint)
    • Line 60: warning: exported function NewMockTracer should have comment or be unexported (golint)
    • Line 71: warning: exported method MockTracer.Start should have comment or be unexported (golint)
    • Line 174: warning: exported method MockTracer.DeferredContextSetupHook should have comment or be unexported (golint)
    • Line 178: warning: exported type MockEvent should have comment or be unexported (golint)
    • Line 184: warning: exported type MockSpan should have comment or be unexported (golint)
    • Line 201: warning: exported method MockSpan.SpanContext should have comment or be unexported (golint)
    • Line 205: warning: exported method MockSpan.IsRecording should have comment or be unexported (golint)
    • Line 209: warning: exported method MockSpan.SetStatus should have comment or be unexported (golint)
    • Line 213: warning: exported method MockSpan.SetName should have comment or be unexported (golint)
    • Line 217: warning: exported method MockSpan.SetError should have comment or be unexported (golint)
    • Line 221: warning: exported method MockSpan.SetAttributes should have comment or be unexported (golint)
    • Line 247: warning: exported method MockSpan.End should have comment or be unexported (golint)
    • Line 260: warning: exported method MockSpan.RecordError should have comment or be unexported (golint)
    • Line 277: warning: exported method MockSpan.Tracer should have comment or be unexported (golint)
    • Line 281: warning: exported method MockSpan.AddEvent should have comment or be unexported (golint)
    • Line 290: warning: exported method MockSpan.OverrideTracer should have comment or be unexported (golint)
    • Line 294: warning: exported method MockSpan.TracerProvider should have comment or be unexported (golint)
    • /go.opentelemetry.io/otel/metric/metrictest/meter.go
    • Line 30: warning: exported type Handle should have comment or be unexported (golint)
    • Line 43: warning: exported type Batch should have comment or be unexported (golint)
    • Line 66: warning: exported type Measurement should have comment or be unexported (golint)
    • Line 72: warning: exported type Instrument should have comment or be unexported (golint)
    • Line 77: warning: exported type Async should have comment or be unexported (golint)
    • Line 83: warning: exported type Sync should have comment or be unexported (golint)
    • Line 102: warning: exported method Instrument.Descriptor should have comment or be unexported (golint)
    • Line 106: warning: exported method Async.Implementation should have comment or be unexported (golint)
    • Line 110: warning: exported method Sync.Implementation should have comment or be unexported (golint)
    • Line 114: warning: exported method Sync.Bind should have comment or be unexported (golint)
    • Line 121: warning: exported method Sync.RecordOne should have comment or be unexported (golint)
    • Line 125: warning: exported method Handle.RecordOne should have comment or be unexported (golint)
    • Line 129: warning: exported method Handle.Unbind should have comment or be unexported (golint)
    • /go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/otlpconfig/envconfig.go
    • Line 33: warning: exported function ApplyGRPCEnvConfigs should have comment or be unexported (golint)
    • Line 42: warning: exported function ApplyHTTPEnvConfigs should have comment or be unexported (golint)
    • Line 51: warning: exported type EnvOptionsReader should have comment or be unexported (golint)
    • Line 56: warning: exported method EnvOptionsReader.ApplyHTTPEnvConfigs should have comment or be unexported (golint)
    • Line 63: warning: exported method EnvOptionsReader.ApplyGRPCEnvConfigs should have comment or be unexported (golint)
    • Line 70: warning: exported method EnvOptionsReader.GetOptionsFromEnv should have comment or be unexported (golint)
    • /go.opentelemetry.io/otel/internal/matchers/expectation.go
    • Line 31: warning: exported type Expectation should have comment or be unexported (golint)
    • Line 36: warning: exported method Expectation.ToEqual should have comment or be unexported (golint)
    • Line 44: warning: exported method Expectation.NotToEqual should have comment or be unexported (golint)
    • Line 52: warning: exported method Expectation.ToBeNil should have comment or be unexported (golint)
    • Line 58: warning: exported method Expectation.NotToBeNil should have comment or be unexported (golint)
    • Line 64: warning: exported method Expectation.ToBeTrue should have comment or be unexported (golint)
    • Line 75: warning: exported method Expectation.ToBeFalse should have comment or be unexported (golint)
    • Line 86: warning: exported method Expectation.NotToPanic should have comment or be unexported (golint)
    • Line 103: warning: exported method Expectation.ToSucceed should have comment or be unexported (golint)
    • Line 114: warning: exported method Expectation.ToMatchError should have comment or be unexported (golint)
    • Line 136: warning: exported method Expectation.ToContain should have comment or be unexported (golint)
    • Line 174: warning: exported method Expectation.NotToContain should have comment or be unexported (golint)
    • Line 206: warning: exported method Expectation.ToMatchInAnyOrder should have comment or be unexported (golint)
    • Line 254: warning: exported method Expectation.ToBeTemporally should have comment or be unexported (golint)
    • /go.opentelemetry.io/otel/sdk/metric/aggregator/aggregatortest/test.go
    • Line 38: warning: exported const Magnitude should have comment or be unexported (golint)
    • Line 40: warning: exported type Profile should have comment or be unexported (golint)
    • Line 45: warning: exported type NoopAggregator should have comment or be unexported (golint)
    • Line 46: warning: exported type NoopAggregation should have comment or be unexported (golint)
    • Line 69: warning: exported function NewAggregatorTest should have comment or be unexported (golint)
    • Line 74: warning: exported function RunProfiles should have comment or be unexported (golint)
    • Line 97: warning: exported type Numbers should have comment or be unexported (golint)
    • Line 103: warning: exported function NewNumbers should have comment or be unexported (golint)
    • Line 109: warning: exported method Numbers.Append should have comment or be unexported (golint)
    • Line 113: warning: exported method Numbers.Sort should have comment or be unexported (golint)
    • Line 129: warning: exported method Numbers.Sum should have comment or be unexported (golint)
    • Line 137: warning: exported method Numbers.Count should have comment or be unexported (golint)
    • Line 141: warning: exported method Numbers.Min should have comment or be unexported (golint)
    • Line 145: warning: exported method Numbers.Max should have comment or be unexported (golint)
    • Line 149: warning: exported method Numbers.Points should have comment or be unexported (golint)
    • Line 170: warning: exported function CheckedMerge should have comment or be unexported (golint)
    • Line 176: warning: exported method NoopAggregation.Kind should have comment or be unexported (golint)
    • Line 180: warning: exported method NoopAggregator.Aggregation should have comment or be unexported (golint)
    • Line 184: warning: exported method NoopAggregator.Update should have comment or be unexported (golint)
    • Line 188: warning: exported method NoopAggregator.SynchronizedMove should have comment or be unexported (golint)
    • Line 192: warning: exported method NoopAggregator.Merge should have comment or be unexported (golint)
    • Line 196: warning: exported function SynchronizedMoveResetTest should have comment or be unexported (golint)
    • /go.opentelemetry.io/otel/sdk/metric/processor/processortest/test.go
    • Line 101: warning: exported function NewCheckpointerFactory should have comment or be unexported (golint)
    • Line 108: warning: exported function NewCheckpointer should have comment or be unexported (golint)
    • Line 256: warning: exported method Output.AddInstrumentationLibraryRecord should have comment or be unexported (golint)
    • Line 260: warning: exported method Output.AddRecordWithResource should have comment or be unexported (golint)
    • Line 354: warning: exported method Exporter.Export should have comment or be unexported (golint)
    • Line 397: warning: exported function OneInstrumentationLibraryReader should have comment or be unexported (golint)
    • Line 410: warning: exported function MultiInstrumentationLibraryReader should have comment or be unexported (golint)
    • /go.opentelemetry.io/contrib/zpages/spanprocessor.go
    • Line 52: warning: exported method SpanProcessor.OnStart should have comment or be unexported (golint)
    • Line 59: warning: exported method SpanProcessor.OnEnd should have comment or be unexported (golint)
    • Line 73: warning: exported method SpanProcessor.Shutdown should have comment or be unexported (golint)
    • Line 78: warning: exported method SpanProcessor.ForceFlush should have comment or be unexported (golint)
    • /go.opentelemetry.io/otel/sdk/metric/controller/time/time.go
    • Line 25: warning: exported type Clock should have comment or be unexported (golint)
    • Line 30: warning: exported type Ticker should have comment or be unexported (golint)
    • Line 35: warning: exported type RealClock should have comment or be unexported (golint)
    • Line 38: warning: exported type RealTicker should have comment or be unexported (golint)
    • Line 45: warning: exported method RealClock.Now should have comment or be unexported (golint)
    • Line 49: warning: exported method RealClock.Ticker should have comment or be unexported (golint)
    • Line 53: warning: exported method RealTicker.Stop should have comment or be unexported (golint)
    • Line 57: warning: exported method RealTicker.C should have comment or be unexported (golint)
    • /go.opentelemetry.io/otel/sdk/trace/batch_span_processor.go
    • Line 35: warning: exported type BatchSpanProcessorOption should have comment or be unexported (golint)
    • Line 37: warning: exported type BatchSpanProcessorOptions should have comment or be unexported (golint)
    • Line 175: warning: exported function WithMaxQueueSize should have comment or be unexported (golint)
    • Line 181: warning: exported function WithMaxExportBatchSize should have comment or be unexported (golint)
    • Line 187: warning: exported function WithBatchTimeout should have comment or be unexported (golint)
    • Line 193: warning: exported function WithExportTimeout should have comment or be unexported (golint)
    • Line 199: warning: exported function WithBlocking should have comment or be unexported (golint)
    • /go.opentelemetry.io/otel/metric/noop.go
    • Line 35: warning: exported type NoopSync should have comment or be unexported (golint)
    • Line 36: warning: exported type NoopAsync should have comment or be unexported (golint)
    • Line 61: warning: exported method NoopSync.Bind should have comment or be unexported (golint)
    • Line 65: warning: exported method NoopSync.RecordOne should have comment or be unexported (golint)
    • /go.opentelemetry.io/otel/sdk/metric/controller/controllertest/test.go
    • Line 27: warning: exported type MockClock should have comment or be unexported (golint)
    • Line 31: warning: exported type MockTicker should have comment or be unexported (golint)
    • Line 38: warning: exported function NewMockClock should have comment or be unexported (golint)
    • Line 42: warning: exported method MockClock.Now should have comment or be unexported (golint)
    • Line 46: warning: exported method MockClock.Ticker should have comment or be unexported (golint)
    • Line 50: warning: exported method MockClock.Add should have comment or be unexported (golint)
    • Line 54: warning: exported method MockTicker.Stop should have comment or be unexported (golint)
    • Line 58: warning: exported method MockTicker.C should have comment or be unexported (golint)
    • /go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/otlpconfig/options.go
    • Line 53: warning: exported type SignalConfig should have comment or be unexported (golint)
    • Line 66: warning: exported type Config should have comment or be unexported (golint)
    • Line 82: warning: exported function NewDefaultConfig should have comment or be unexported (golint)
    • Line 181: warning: exported function NewHTTPOption should have comment or be unexported (golint)
    • Line 196: warning: exported function NewGRPCOption should have comment or be unexported (golint)
    • Line 202: warning: exported function WithEndpoint should have comment or be unexported (golint)
    • Line 208: warning: exported function WithCompression should have comment or be unexported (golint)
    • Line 214: warning: exported function WithURLPath should have comment or be unexported (golint)
    • Line 220: warning: exported function WithRetry should have comment or be unexported (golint)
    • Line 226: warning: exported function WithTLSClientConfig should have comment or be unexported (golint)
    • Line 234: warning: exported function WithInsecure should have comment or be unexported (golint)
    • Line 240: warning: exported function WithSecure should have comment or be unexported (golint)
    • Line 246: warning: exported function WithHeaders should have comment or be unexported (golint)
    • Line 252: warning: exported function WithTimeout should have comment or be unexported (golint)
    • Line 258: warning: exported function WithMaxAttempts should have comment or be unexported (golint)
    • Line 264: warning: exported function WithBackoff should have comment or be unexported (golint)
    • /go.opentelemetry.io/otel/internal/rawhelpers.go
    • Line 22: warning: exported function BoolToRaw should have comment or be unexported (golint)
    • Line 29: warning: exported function RawToBool should have comment or be unexported (golint)
    • Line 33: warning: exported function Int64ToRaw should have comment or be unexported (golint)
    • Line 37: warning: exported function RawToInt64 should have comment or be unexported (golint)
    • Line 41: warning: exported function Float64ToRaw should have comment or be unexported (golint)
    • Line 45: warning: exported function RawToFloat64 should have comment or be unexported (golint)
    • Line 49: warning: exported function RawPtrToFloat64Ptr should have comment or be unexported (golint)
    • Line 53: warning: exported function RawPtrToInt64Ptr should have comment or be unexported (golint)
    • /go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/otlpconfig/options.go
    • Line 38: warning: exported type SignalConfig should have comment or be unexported (golint)
    • Line 51: warning: exported type Config should have comment or be unexported (golint)
    • Line 64: warning: exported function NewDefaultConfig should have comment or be unexported (golint)
    • Line 163: warning: exported function NewHTTPOption should have comment or be unexported (golint)
    • Line 178: warning: exported function NewGRPCOption should have comment or be unexported (golint)
    • Line 184: warning: exported function WithEndpoint should have comment or be unexported (golint)
    • Line 190: warning: exported function WithCompression should have comment or be unexported (golint)
    • Line 196: warning: exported function WithURLPath should have comment or be unexported (golint)
    • Line 202: warning: exported function WithRetry should have comment or be unexported (golint)
    • Line 208: warning: exported function WithTLSClientConfig should have comment or be unexported (golint)
    • Line 216: warning: exported function WithInsecure should have comment or be unexported (golint)
    • Line 222: warning: exported function WithSecure should have comment or be unexported (golint)
    • Line 228: warning: exported function WithHeaders should have comment or be unexported (golint)
    • Line 234: warning: exported function WithTimeout should have comment or be unexported (golint)
    • /go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/connection/connection.go
    • Line 39: warning: exported type Connection should have comment or be unexported (golint)
    • Line 65: warning: exported function NewConnection should have comment or be unexported (golint)
    • Line 79: warning: exported method Connection.StartConnection should have comment or be unexported (golint)
    • Line 96: warning: exported method Connection.LastConnectError should have comment or be unexported (golint)
    • Line 112: warning: exported method Connection.SetStateDisconnected should have comment or be unexported (golint)
    • Line 125: warning: exported method Connection.Connected should have comment or be unexported (golint)
    • Line 245: warning: exported method Connection.ContextWithMetadata should have comment or be unexported (golint)
    • Line 252: warning: exported method Connection.Shutdown should have comment or be unexported (golint)
    • Line 273: warning: exported method Connection.ContextWithStop should have comment or be unexported (golint)
    • Line 289: warning: exported method Connection.DoRequest should have comment or be unexported (golint)
    • /go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/otlpconfig/envconfig.go
    • Line 33: warning: exported function ApplyGRPCEnvConfigs should have comment or be unexported (golint)
    • Line 42: warning: exported function ApplyHTTPEnvConfigs should have comment or be unexported (golint)
    • Line 51: warning: exported type EnvOptionsReader should have comment or be unexported (golint)
    • Line 56: warning: exported method EnvOptionsReader.ApplyHTTPEnvConfigs should have comment or be unexported (golint)
    • Line 63: warning: exported method EnvOptionsReader.ApplyGRPCEnvConfigs should have comment or be unexported (golint)
    • Line 70: warning: exported method EnvOptionsReader.GetOptionsFromEnv should have comment or be unexported (golint)
    • /go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/connection/connection.go
    • Line 38: warning: exported type Connection should have comment or be unexported (golint)
    • Line 65: warning: exported function NewConnection should have comment or be unexported (golint)
    • Line 80: warning: exported method Connection.StartConnection should have comment or be unexported (golint)
    • Line 97: warning: exported method Connection.LastConnectError should have comment or be unexported (golint)
    • Line 113: warning: exported method Connection.SetStateDisconnected should have comment or be unexported (golint)
    • Line 126: warning: exported method Connection.Connected should have comment or be unexported (golint)
    • Line 246: warning: exported method Connection.ContextWithMetadata should have comment or be unexported (golint)
    • Line 253: warning: exported method Connection.Shutdown should have comment or be unexported (golint)
    • Line 274: warning: exported method Connection.ContextWithStop should have comment or be unexported (golint)
    • Line 290: warning: exported method Connection.DoRequest should have comment or be unexported (golint)
    • /go.opentelemetry.io/otel/bridge/opentracing/mix_test.go
    • Line 152: warning: context.Context should be the first parameter of a function (golint)
    • Line 156: warning: context.Context should be the first parameter of a function (golint)
    • Line 160: warning: context.Context should be the first parameter of a function (golint)
    • Line 210: warning: context.Context should be the first parameter of a function (golint)
    • Line 214: warning: context.Context should be the first parameter of a function (golint)
    • Line 218: warning: context.Context should be the first parameter of a function (golint)
    • Line 293: warning: context.Context should be the first parameter of a function (golint)
    • Line 297: warning: context.Context should be the first parameter of a function (golint)
    • Line 301: warning: context.Context should be the first parameter of a function (golint)
    • Line 378: warning: context.Context should be the first parameter of a function (golint)
    • Line 382: warning: context.Context should be the first parameter of a function (golint)
    • Line 386: warning: context.Context should be the first parameter of a function (golint)
    • Line 493: warning: context.Context should be the first parameter of a function (golint)
    • Line 497: warning: context.Context should be the first parameter of a function (golint)
    • Line 501: warning: context.Context should be the first parameter of a function (golint)
    • Line 622: warning: context.Context should be the first parameter of a function (golint)
    • Line 639: warning: context.Context should be the first parameter of a function (golint)

gocyclo97%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.


license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!