-
Notifications
You must be signed in to change notification settings - Fork 101
add new github.com/labstack/echo-contrib/otelecho/v5 sub-module
#141
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
base: master
Are you sure you want to change the base?
Conversation
This version performs the same instrumentation as previously available `otelecho` in `opentelemetry-go-contrib` repo, but with echo v5 support v5 sub-directory is used specifically in case of new v6, v7, etc versions of echo come out in the future
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #141 +/- ##
==========================================
+ Coverage 63.77% 67.69% +3.91%
==========================================
Files 9 9
Lines 969 585 -384
==========================================
- Hits 618 396 -222
+ Misses 308 157 -151
+ Partials 43 32 -11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Just a quick heads-up that I will be reviewing this over the weekend. |
|
Thanks, this PR is heavily needed and is our only blocker to upgrade to |
|
Update: I did review this PR on Saturday+Sunday and decided that I need to research more on that semconv package part and probably do some refactoring. I do not feel comfortable maintaining it in current form. Let's see what progress I have on Wednesday. Currently this issue is on top of my Echo list. |
|
thanks @aldas, anything I can do to help? |
|
@vadimi , At the moment nothing. I made good progress yesterday, but have not finished it yet. Today was spent on fixing vulnerility reported in static middleware (fixed in 5.0.3). I will work on it over the weekend. |
|
Hi @vadimi, I forked your PR to a branch in my repo.
This is how it looks like: working example is here: https://github.com/aldas/echo-contrib/blob/echootel/echootel/example/main.go |
|
Thanks for making the progress @aldas! One difference I've noticed in your branch comparing to the OTel echo is the requestDuration metric: OTel echo v4 divides it by In terms of semver/semnverutil Otel package there was a conversation some time ago: open-telemetry/opentelemetry-go-contrib#4580, doesn't look like there is a consensus. |
This version performs the same instrumentation as previously available
otelechoinopentelemetry-go-contribrepo, but with echo v5 supportv5 sub-directory is used specifically in case of new v6, v7, etc versions of echo come out in the future