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

align endpoint to java version #580

Merged
merged 1 commit into from
Mar 11, 2024
Merged

Conversation

lu-xiaoshuang
Copy link
Contributor

http server endpoint format: ${method}:${path}
http client endpoint format: ${path}

@@ -47,7 +47,7 @@ public bool OnlyMatch(HttpRequestMessage request)

public void Handle(ITracingContext tracingContext, HttpRequestMessage request)
{
var operationName = request.RequestUri.GetLeftPart(UriPartial.Path);
var operationName = request.RequestUri.GetComponents(UriComponents.Path | UriComponents.KeepDelimiter, UriFormat.UriEscaped);
Copy link
Member

Choose a reason for hiding this comment

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

What does this mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

assuming there is an URI https://en.wikipedia.org/wiki/github, old code returns https://en.wikipedia.org/wiki/github while new code returns /wiki/github.

@wu-sheng wu-sheng added the enhancement New feature or request label Mar 11, 2024
@wu-sheng wu-sheng added this to the 2.2.0 milestone Mar 11, 2024
@wu-sheng wu-sheng merged commit 9dc9cc0 into SkyAPM:main Mar 11, 2024
2 checks passed
@lu-xiaoshuang lu-xiaoshuang deleted the endpoint branch March 11, 2024 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants