Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed unneccessary renames for gocql #2795

Closed

Conversation

MadVikingGod
Copy link
Contributor

The Release of metrics v0.32.1 means that the prometheus names are automatically renamed. This change removes unnecessary renames.

Blocked by open-telemetry/opentelemetry-go#3228, and release.

@codecov
Copy link

codecov bot commented Sep 22, 2022

Codecov Report

Merging #2795 (8e6c39a) into main (c011266) will increase coverage by 5.4%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #2795     +/-   ##
=======================================
+ Coverage   69.2%   74.6%   +5.4%     
=======================================
  Files        145       7    -138     
  Lines       6729     316   -6413     
=======================================
- Hits        4661     236   -4425     
+ Misses      1952      67   -1885     
+ Partials     116      13    -103     
Impacted Files Coverage Δ
...on/github.com/Shopify/sarama/otelsarama/message.go
...om/aws/aws-sdk-go-v2/otelaws/dynamodbattributes.go
...mentation/github.com/go-kit/kit/otelkit/version.go
instrumentation/host/version.go
samplers/aws/xray/internal/clock.go
.../aws/aws-lambda-go/otellambda/wrapLambdaHandler.go
propagators/ot/version.go
samplers/probability/consistent/parent.go
detectors/aws/ec2/ec2.go
...ion/github.com/Shopify/sarama/otelsarama/option.go
... and 137 more

@@ -203,7 +195,7 @@ func initMetrics() error {
http.Handle("/", promhttp.Handler())
log.Print("Serving metrics at :2222/")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
log.Print("Serving metrics at :2222/")
log.Print("Serving metrics at :2223/")

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The README.md also needs updating if this is changing.

Comment on lines 132 to 134
v, err := view.New(
view.MatchInstrumentName("db.cassandra.queries"),
view.WithRename("db_cassandra_queries"),
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These "blank action" views could be unified into a single view that matches "*"

@MadVikingGod
Copy link
Contributor Author

This will fix the first set of changes in #2796

@MadVikingGod
Copy link
Contributor Author

Closing in favor of #2960.

@MrAlias MrAlias closed this Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants