open-telemetry / opentelemetry-go-contrib

Collection of extensions for OpenTelemetry-Go.
https://opentelemetry.io/
Apache License 2.0
1.22k stars 566 forks source link

[chore]: enable perfsprint linter #6316

Closed mmorel-35 closed 1 week ago

mmorel-35 commented 1 week ago

Description perfsprint is a linter for performance, aiming at usages of fmt.Sprintf which have faster alternatives.

codecov[bot] commented 1 week ago

Codecov Report

Attention: Patch coverage is 30.30303% with 23 lines in your changes missing coverage. Please review.

Project coverage is 66.8%. Comparing base (7de67cf) to head (2e1b40c). Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
config/config_json.go 0.0% 18 Missing :warning:
instrumentation/host/host.go 0.0% 2 Missing :warning:
detectors/aws/eks/detector.go 0.0% 1 Missing :warning:
....mongodb.org/mongo-driver/mongo/otelmongo/mongo.go 0.0% 1 Missing :warning:
instrumentation/runtime/producer.go 0.0% 1 Missing :warning:
Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/open-telemetry/opentelemetry-go-contrib/pull/6316/graphs/tree.svg?width=650&height=150&src=pr&token=P6F3W9WA7Q&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry)](https://app.codecov.io/gh/open-telemetry/opentelemetry-go-contrib/pull/6316?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry) ```diff @@ Coverage Diff @@ ## main #6316 +/- ## ===================================== Coverage 66.8% 66.8% ===================================== Files 193 193 Lines 15580 15580 ===================================== Hits 10408 10408 Misses 4881 4881 Partials 291 291 ``` | [Files with missing lines](https://app.codecov.io/gh/open-telemetry/opentelemetry-go-contrib/pull/6316?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry) | Coverage Δ | | |---|---|---| | [config/log.go](https://app.codecov.io/gh/open-telemetry/opentelemetry-go-contrib/pull/6316?src=pr&el=tree&filepath=config%2Flog.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry#diff-Y29uZmlnL2xvZy5nbw==) | `94.3% <100.0%> (ø)` | | | [config/metric.go](https://app.codecov.io/gh/open-telemetry/opentelemetry-go-contrib/pull/6316?src=pr&el=tree&filepath=config%2Fmetric.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry#diff-Y29uZmlnL21ldHJpYy5nbw==) | `85.3% <100.0%> (ø)` | | | [config/resource.go](https://app.codecov.io/gh/open-telemetry/opentelemetry-go-contrib/pull/6316?src=pr&el=tree&filepath=config%2Fresource.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry#diff-Y29uZmlnL3Jlc291cmNlLmdv) | `100.0% <100.0%> (ø)` | | | [config/trace.go](https://app.codecov.io/gh/open-telemetry/opentelemetry-go-contrib/pull/6316?src=pr&el=tree&filepath=config%2Ftrace.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry#diff-Y29uZmlnL3RyYWNlLmdv) | `97.1% <100.0%> (ø)` | | | [.../aws/aws-lambda-go/otellambda/wrapLambdaHandler.go](https://app.codecov.io/gh/open-telemetry/opentelemetry-go-contrib/pull/6316?src=pr&el=tree&filepath=instrumentation%2Fgithub.com%2Faws%2Faws-lambda-go%2Fotellambda%2FwrapLambdaHandler.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry#diff-aW5zdHJ1bWVudGF0aW9uL2dpdGh1Yi5jb20vYXdzL2F3cy1sYW1iZGEtZ28vb3RlbGxhbWJkYS93cmFwTGFtYmRhSGFuZGxlci5nbw==) | `91.9% <100.0%> (ø)` | | | [samplers/probability/consistent/tracestate.go](https://app.codecov.io/gh/open-telemetry/opentelemetry-go-contrib/pull/6316?src=pr&el=tree&filepath=samplers%2Fprobability%2Fconsistent%2Ftracestate.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry#diff-c2FtcGxlcnMvcHJvYmFiaWxpdHkvY29uc2lzdGVudC90cmFjZXN0YXRlLmdv) | `100.0% <ø> (ø)` | | | [detectors/aws/eks/detector.go](https://app.codecov.io/gh/open-telemetry/opentelemetry-go-contrib/pull/6316?src=pr&el=tree&filepath=detectors%2Faws%2Feks%2Fdetector.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry#diff-ZGV0ZWN0b3JzL2F3cy9la3MvZGV0ZWN0b3IuZ28=) | `35.6% <0.0%> (ø)` | | | [....mongodb.org/mongo-driver/mongo/otelmongo/mongo.go](https://app.codecov.io/gh/open-telemetry/opentelemetry-go-contrib/pull/6316?src=pr&el=tree&filepath=instrumentation%2Fgo.mongodb.org%2Fmongo-driver%2Fmongo%2Fotelmongo%2Fmongo.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry#diff-aW5zdHJ1bWVudGF0aW9uL2dvLm1vbmdvZGIub3JnL21vbmdvLWRyaXZlci9tb25nby9vdGVsbW9uZ28vbW9uZ28uZ28=) | `85.7% <0.0%> (ø)` | | | [instrumentation/runtime/producer.go](https://app.codecov.io/gh/open-telemetry/opentelemetry-go-contrib/pull/6316?src=pr&el=tree&filepath=instrumentation%2Fruntime%2Fproducer.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry#diff-aW5zdHJ1bWVudGF0aW9uL3J1bnRpbWUvcHJvZHVjZXIuZ28=) | `80.0% <0.0%> (ø)` | | | [instrumentation/host/host.go](https://app.codecov.io/gh/open-telemetry/opentelemetry-go-contrib/pull/6316?src=pr&el=tree&filepath=instrumentation%2Fhost%2Fhost.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry#diff-aW5zdHJ1bWVudGF0aW9uL2hvc3QvaG9zdC5nbw==) | `0.0% <0.0%> (ø)` | | | ... and [1 more](https://app.codecov.io/gh/open-telemetry/opentelemetry-go-contrib/pull/6316?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry) | |