-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[Lua]SkyWalking-nginx-lua0.3.0 traceid repeat all the time #5805
Comments
/accept |
Seem @membphis 's local test doesn't show the same issue. |
we need to set the random seed in --- a/README.md
+++ b/README.md
@@ -32,6 +32,7 @@ http {
-- Instance means the number of Nginx deployment, does not mean the worker instances
metadata_buffer:set('serviceInstanceName', 'User Service Instance Name')
+ require("skywalking.util").set_randomseed()
require("skywalking.client"):startBackendTimer("http://127.0.0.1:8080")
} I will submit a new PR about this. |
I think it's better to use ngx.var.request_id rather than generate uuid by itself. |
I like @Miss-you 's idea. |
The distributed unique id generation algorithm is a classic problem, so we'll just use |
I have removed |
try to fix issue: apache/skywalking#5805 .
@gudandezhu please confirm if you enabled the directive I can get the same output when using
|
* doc: set random seed in `init_worker` phase. try to fix issue: apache/skywalking#5805 . * e2e: set random seed.
yes , remove lua_code_cache is right |
Please answer these questions before submitting your issue.
Bug
skywalking-nginx-lua0.3.0 , macOS , JRE8.0
when I used skywalking-nginx-lua0.3.0 , I got the same traceid(all api) ,I just changed the Nginx.conf
![image](https://user-images.githubusercontent.com/43182553/98346318-bde05400-2050-11eb-9d3a-3d955cf4fee9.png)
next is my nginx.conf :
this is log:
![image](https://user-images.githubusercontent.com/43182553/98346511-05ff7680-2051-11eb-8cda-160f9b42081d.png)
The text was updated successfully, but these errors were encountered: