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

Bump observability stack #6

Merged
merged 2 commits into from
May 9, 2022
Merged

Bump observability stack #6

merged 2 commits into from
May 9, 2022

Conversation

nicoche
Copy link
Contributor

@nicoche nicoche commented May 2, 2022

  • Bump go (1.16 -> 1.18)
  • Bump otel (0.16.0 -> 1.7.0 / 0.30.0)

A lot of stuff we used have been moved around. Traces are now stable in
otel so we can expect this to stay still; metrics are still in alpha
though so compat may break again in the future.
Notables changes:

* Bump go (1.16 -> 1.18)
* Bump otel (0.16.0 -> 1.7.0 / 0.30.0)

A lot of stuff we used have been moved around. Traces are now stable in
otel so we can expect this to stay still; metrics are still in alpha
though so compat may break again in the future.
Notables changes:
* metric.Must has been removed; some constructors now have their
  signature changed. We can introduce a custom Must so we don't
  change those signatures
* metric.Bind has been removed from the metrics package. That introduces
  a little more complexity to the code.  I understood that
  (open-telemetry/opentelemetry-go#2351) it
  might be reintroduced in the future
@nicoche nicoche marked this pull request as draft May 2, 2022 10:08
count := m.NewInt64Counter("kreconciler_stream_resync_item_count",
metric.WithUnit(unit.Dimensionless),
metric.WithDescription("Increased by the number of items returned by the listFn"),
func ResyncLoopEventStream(obs Observability, duration time.Duration, listFn func(ctx context.Context) ([]string, error)) (EventStream, error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: we could panic on err so we don't change that prototype

@nicoche nicoche marked this pull request as ready for review May 2, 2022 10:12
@nicoche nicoche requested a review from bchatelard May 2, 2022 10:12
@nicoche nicoche merged commit 9510eb8 into main May 9, 2022
@nicoche nicoche deleted the bump-observability-stack branch May 9, 2022 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants