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

V1.0.0 #350

Merged
merged 7 commits into from
Jan 8, 2024
Merged

V1.0.0 #350

merged 7 commits into from
Jan 8, 2024

Conversation

raphael
Copy link
Member

@raphael raphael commented Jan 8, 2024

This PR introduces Clue v1.0.0!

The main change is the adoption of OpenTelemetry for metrics instrumentation. This unifies all instrumentation (traces and metrics) under a common new package clue which replaces the previous metrics and trace packages. This results in a more standard and flexible API as well as a boost in performance. The README describes the steps necessary to upgrade from v0.x.

v1.0.0 also cleans up some of Clue's dependencies, in particular it decouples the logging and debugging middleware and interceptors from Goa. The weather example has been updated with the latest and illustrates best practice when instrumenting Goa microservices with Clue.

raphael and others added 6 commits January 7, 2024 11:55
This commit replaces the `metrics` and `trace` packages with a new `clue` package that leverages OpenTelemetry for instrumenting metrics and traces.

See the README for instructions on how to upgrade.
This replaces the deprecated use of interceptors.
See open-telemetry/opentelemetry-go-contrib#3002.

Remove use of Goa request ID middleware. This is superseded by logging span IDs.
… System (#331)

* initial commit

* Empty-Commit

* add readme file (still need to fill out)

* tester readme update

* Trying out a workflow to run integration tests against local binaries

* Add proto install to /example/weather/scripts/setup

* fix integration.yaml

* disable mono on ubuntu

* move mono stop

* Try to find out what's running on 8084

* Trying to disable mono?

* trying to stop mono 2

* add a sleep after stop/disable?

* add some echo

* see if stop/disable mono fails

* add back in || true, change front ports to see if this even works at all

* oops forgot to change int test port

* try no send to dev null?

* sleep before testing

* take out netstat

* sleep longer? give time for docker to do work to get grafana?

* remove dev>null again... :\

* sleep 60 :(

* Implement review comment changes

* Fix runTests check for filtering if

* Empty-Commit

* try starting each service individually, check fo rmono

* just KILL mono?

* back to 8084, check all ports

* fix typo

* add flag to turn off grafana for services (for CI testing)

* clean up integration.yaml script

* review fixes

* Get Stack Trace to Err Log on Panic

* small fixes for style

* protoc -> 25.1, better wait in integration.yaml

* Add synchronous testing feature

* Make one of the synchronous as an example

* move func maps to service definition
@codecov-commenter
Copy link

codecov-commenter commented Jan 8, 2024

Codecov Report

Attention: 54 lines in your changes are missing coverage. Please review.

Comparison is base (15fc752) 94.30% compared to head (15006ee) 93.74%.

Files Patch % Lines
log/http.go 10.71% 25 Missing ⚠️
clue/config.go 80.32% 9 Missing and 3 partials ⚠️
log/adapt.go 76.31% 6 Missing and 3 partials ⚠️
log/grpc.go 33.33% 8 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #350      +/-   ##
==========================================
- Coverage   94.30%   93.74%   -0.57%     
==========================================
  Files          40       31       -9     
  Lines        2249     1774     -475     
==========================================
- Hits         2121     1663     -458     
+ Misses         95       92       -3     
+ Partials       33       19      -14     
Flag Coverage Δ
micro 93.74% <69.14%> (-0.57%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@raphael raphael merged commit fcfcc9c into main Jan 8, 2024
4 checks passed
@raphael raphael deleted the v1.0.0 branch January 8, 2024 00:35
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.

3 participants