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

Merge shopify changes onto v0.53.0 #1709

Conversation

ahayworth
Copy link

This PR is the set of changes necessary to update us to otel-contrib-col v0.53.0, and is the logical pre-requisite for merging our corresponding collector PR: https://github.com/Shopify/opentelemetry-collector-shopify/pull/823

This might not look like the thousands of commits you'd expect, and you'd be right! This time we're taking a different approach, and the PR is based on the upstream v0.53.0 tag (represented by the branch ahayworth/otel-contrib-col-v0.53.0 in this repo). It is the minimal diff to reapply our changes on top of upstream v0.53.0.

To merge this, we should first force-push main to v0.53.0, and then reset the base branch of this PR to main via the handy little widget in the GitHub UI.

The changes here are more or less directly cherry-picked from main, with only the minimal edits needed to address the usual slate of deprecations introduced by the upstream collector project. Each commit should be able to be reviewed independently as desired.

Technically, the latest contrib release is v0.54.0, but that just showed up a few hours ago. We'll let others discover what horrendous bugs it may or may not contain. As far as we're concerned, here's some of the major changes from v0.47.0 that might be relevant to us:

  • prometheusexporter: Add job and instance labels to metrics so they can be scraped with honor_labels: true
  • googlecloudpubsubreceiver Activate the Google Cloud Pubsub receiver.
  • googlecloudpubsubexporter Activate the Google Cloud Pubsub exporter.

tanner-bruce and others added 9 commits June 23, 2022 08:16
Because of the weird^H^H^H^H^Hinteresting structure of the contrib repo,
we have an overwhelming amount of dependabot noise for this. Especially
since we're behind upstream.

We could turn this off entirely, I suppose. Or - we can modify the
Makefile and just make this noise monthly rather than weekly.

This commit is the result of modifying the `Makefile` to do monthly
updates instead of weekly, as well as the result of running `make gendependabot`.
* wip cache metric from spanmetrics

* testing

* testing

* WIP: collecting metrics

* metric name updated

* Update exporter/prometheusexporter/prometheus.go

Co-authored-by: tanner-bruce <b.r.uce.tanner@gmail.com>

* Update processor/spanmetricsprocessor/processor.go

Co-authored-by: tanner-bruce <b.r.uce.tanner@gmail.com>

* wip error metrics

* span metrics monitoring : refactored internal metrics counters

* span metrics monitoring : added metricKey error

* Update processor/spanmetricsprocessor/processor.go

Co-authored-by: tanner-bruce <b.r.uce.tanner@gmail.com>

* Update processor/spanmetricsprocessor/processor.go

Co-authored-by: tanner-bruce <b.r.uce.tanner@gmail.com>

* moved metric one loop up

* unique metrics count

* removed actice timeseries counter

* Update processor/spanmetricsprocessor/processor.go

Co-authored-by: tanner-bruce <b.r.uce.tanner@gmail.com>

Co-authored-by: tanner-bruce <b.r.uce.tanner@gmail.com>
- Adds go.mod replace directives for the specific revision of
  prometheus/client_golang that we need (until they release a version
  with our exemplar changes).
- Fixes a few missed deprecations re: pdata, etc.
- Fixes some linting complaints
@ahayworth ahayworth force-pushed the ahayworth/merge-shopify-changes-v0.53.0 branch from 985b99f to f0611ea Compare June 23, 2022 19:50
@tanner-bruce tanner-bruce merged commit 8946486 into ahayworth/otel-contrib-col-v0.53.0 Jun 27, 2022
@tanner-bruce tanner-bruce deleted the ahayworth/merge-shopify-changes-v0.53.0 branch June 27, 2022 16:30
This was referenced Sep 30, 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.

3 participants