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

Support echo instrument #74

Closed
wants to merge 4 commits into from
Closed

Conversation

ethan256
Copy link
Contributor

support echo instrumentation

Copy link
Contributor

@mrproliu mrproliu left a comment

Choose a reason for hiding this comment

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

Please fix the comments and update the plugin documentation and CHANGES.md.

@@ -6,16 +6,17 @@ use (
// define the plugins
./plugins/core
./plugins/dubbo
./plugins/echov4
Copy link
Contributor

Choose a reason for hiding this comment

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

Please keep the original style.

go 1.20

require (
github.com/apache/skywalking-go/plugins/core v0.0.0-20230712143836-5d2a80f0e1f5
Copy link
Contributor

Choose a reason for hiding this comment

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

We already using the go workspace, so this module no needs to be required.

Comment on lines 38 to 40
if len(result) != 1 {
return fmt.Errorf("echo.New :skywalking return result length not equal 1")
}
Copy link
Contributor

Choose a reason for hiding this comment

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

You have already defined this method as one result, so this judgment is not necessary.

tracing.WithLayer(tracing.SpanLayerHTTP),
tracing.WithTag(tracing.TagHTTPMethod, request.Method),
tracing.WithTag(tracing.TagURL, request.Host+request.URL.Path),
tracing.WithComponent(5006))
Copy link
Contributor

Choose a reason for hiding this comment

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

The component ID should be updated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I'll register a unique component ID with the master library in another PR

Copy link
Contributor

Choose a reason for hiding this comment

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

The PR has been merged. Please keep fixing other issues.

go.work Outdated
@@ -6,16 +6,17 @@ use (
// define the plugins
./plugins/core
./plugins/dubbo
./plugins/echo
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you change to the echo otherwise echov4?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm trying to keep it consistent with the original library. I will change this to echov4.

@wu-sheng
Copy link
Member

Could you provide a correct link to echo framework? Is it a rpc or something?

@ethan256
Copy link
Contributor Author

Could you provide a correct link to echo framework? Is it a rpc or something?

It is a web framework, see https://github.com/labstack/echo

@wu-sheng
Copy link
Member

It is like a MIT licensed lib, do you need an icon for it on the topo? If so, please send a PR for that as well, otherwise, by default, it would be an earth icon only for server side.

@wu-sheng
Copy link
Member

wu-sheng commented Aug 4, 2023

@ethan256 Any update?

@wu-sheng wu-sheng removed this from the 0.2.0 milestone Aug 4, 2023
@wu-sheng wu-sheng added the stale No update for days label Aug 4, 2023
@ethan256
Copy link
Contributor Author

ethan256 commented Aug 4, 2023

@ethan256 Any update?

Sorry, I'm not familiar with certificates here and didn't understand what I needed to do.

@wu-sheng
Copy link
Member

wu-sheng commented Aug 4, 2023

You are instrumenting a server lib, so generally, you should add the project logo to our website.

@mrproliu
Copy link
Contributor

mrproliu commented Aug 4, 2023

Also, please resolve the conflict and conversations.

@wu-sheng
Copy link
Member

wu-sheng commented Aug 5, 2023

Close for now, it seems contributor has no interest to follow reviewers comments.

@wu-sheng wu-sheng closed this Aug 5, 2023
@wu-sheng wu-sheng added this to the 0.3.0 milestone Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin stale No update for days
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants