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

feat: support update the peer before requesting outgoing #95

Merged
merged 17 commits into from
Feb 25, 2022

Conversation

dmsolr
Copy link
Member

@dmsolr dmsolr commented Feb 18, 2022

No description provided.

@dmsolr dmsolr added the enhancement New feature or request label Feb 18, 2022
@dmsolr dmsolr added this to the 0.7.0 milestone Feb 18, 2022
lib/skywalking/tracer.lua Outdated Show resolved Hide resolved
@dmsolr dmsolr marked this pull request as draft February 20, 2022 16:19
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@dmsolr dmsolr marked this pull request as ready for review February 24, 2022 07:55
@wu-sheng
Copy link
Member

Once you pass this, please remove these component IDs, instance topology is available since this.

https://github.com/apache/skywalking/blob/351f39d509c76ea507e55c76aeee0fb5a694062a/oap-server/server-starter/src/main/resources/application.yml#L275

lib/skywalking/span.lua Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
dmsolr and others added 4 commits February 24, 2022 16:50
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
README.md Outdated Show resolved Hide resolved
@wu-sheng
Copy link
Member

Please add peer as an explicit parameter for inject method, I don't think to access span.peer is a good idea. Also, please fix the CI.

@@ -131,7 +131,8 @@ The following APIs are for developers or using this lib out of the Nginx case.
## Nginx APIs
- **startTimer**, `require("skywalking.client"):startBackendTimer("http://127.0.0.1:8080")`. Start the backend timer. This timer register the metadata and report traces to the backend.
- **destroyBackendTimer**, `require("skywalking.client"):destroyBackendTimer()`. Stop the timer created by `startBackendTimer`, and clean unreported data.
- **start**, `require("skywalking.tracer"):start("upstream service", correlation)`. Begin the tracing before the upstream begin. The custom data (table type) can be injected as the second parameter, and then they will be propagated to the downstream service.
- **start**, `require("skywalking.tracer"):start("upstream service", correlation)`. Begin the tracing before the upstream beginning. The custom data (table type) can be injected as the second parameter, and then they will be propagated to the downstream service. If `upstream service` could be determined precisely later, keep it as `nil` and call `inject` method when peer(upstream address) is resolved by load balancer and DNS resolver.
Copy link
Member

Choose a reason for hiding this comment

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

@dmsolr I added the last sentence for the document, please recheck.

Copy link
Member Author

Choose a reason for hiding this comment

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

Look good to me.

@wu-sheng wu-sheng merged commit 8470d06 into apache:master Feb 25, 2022
@dmsolr dmsolr deleted the peer branch February 25, 2022 03:34
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