-
Notifications
You must be signed in to change notification settings - Fork 105
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
[plugin] add falcon plugin #146
Conversation
probeyang
commented
Aug 6, 2021
add tornado5+ and tornado6+ support
add tornado5.1.1 test case and format tornado plugin code
add the plugin of falcon
format code
expected data change, falcon component code change to 7012.
New sw_tornado5.py in this PR is identical to the old sw_tornado.py, so why split it into two different plugins? Also it is based on an older version in master which is missing a peer address fix and the recent exclude by http method functionality. |
@@ -43,6 +43,7 @@ class Component(Enum): | |||
Pyramid = 7009 | |||
Psycopg = 7010 | |||
Celery = 7011 | |||
Falcon = 7012 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@probeyang can you please add a component id in the main repo and a logo in the UI repo? https://github.com/apache/skywalking/blob/bca62f63fa0c57bf3bb5d8ebde9d6969b55b8429/oap-server/server-bootstrap/src/main/resources/component-libraries.yml#L527-L528
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, i add it.
I am good with this (pending last @kezhenxu94 issue main repo updates of course). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look good to me, please add component id and logo to main repo and UI repo
Not quite good yet, need to update for new Tag change. |
skywalking/plugins/sw_falcon.py
Outdated
req = request.Request(env, RequestOptions()) | ||
span.op = str(req.url).split("?")[0] | ||
span.peer = "%s:%s" % (req.remote_addr, req.port) | ||
span.tag(Tag(key=tags.HttpMethod, val=req.method)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should be changed to:
span.tag(TagHttpMethod(req.method))
span.tag(TagHttpURL(str(req.url)))
if req.params:
span.tag(TagHttpParams(params_tostring(req.params)[0:]))
And the import at the top to:
from skywalking.trace.tags import TagHttpMethod, TagHttpURL, TagHttpParams
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, status tag not being set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, status tag not being set?
@probeyang can you add the status tag?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks a lot, i found my code is older than apache/skywalking-python, i upgrade it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, i will set status argument
Span Tag Use TagHttpMethod, TagHttpURL, TagHttpParams
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document and changelog are not updated.
ok , i will update it. |
update changelog and plugins.md.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should not update the submodule protocol
?
delete unused tags
Add New Argument: TagHttpStatusCode Span Tag
You need to revert the submodule update |
ok |
revert protocol
revert protocol
Update expected.data.yml
Add falcon plugin (apache#146)