You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-8Lines changed: 13 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ httpMethod <br>
50
50
dbUser <br>
51
51
messageBusDestination <br>
52
52
53
-
##Quick Start
53
+
# Quick Start
54
54
55
55
### Start Jaeger
56
56
@@ -79,7 +79,7 @@ go get github.com/codeandcode0x/traceandtrace-go
79
79
### HTTP tracing
80
80
81
81
Create a trace on the http request method side.
82
-

82
+
<imgsrc="wiki/imgs/http_client_2.jpg"width="90%"alt="http to grpc client"><br>
83
83
tags are map[string]string type, you can pass logs k-v, tag and field.
84
84
85
85
@@ -134,20 +134,20 @@ newRpcServiceReq(tracer)
134
134
```
135
135
136
136
### Http to gRPC tracing
137
-

137
+
<imgsrc="wiki/imgs/httptogrpc_client.jpg"width="90%"alt="http to grpc client"><br>
138
138
**ptx** is parent context, it can create sub-context trace span <br>
139
139
To call gRPC on the http server side, you need to add the parent context to the gRPC client. For details, you can see the [example](example/http/httpServer.go) .
140
140
141
-
##Concurrent Processing
142
-
###goroutine context control
141
+
# Concurrent Processing
142
+
## goroutine context control
143
143
144
144
- By context.Background() create sub-coroutine context, form a session tree (coroutine tree), which is thread-safe (there is no data race problem) ;
145
145
- By context WithCancel() create sub-coroutine sessions and manage coroutine tasks ;
146
146
- every context will carry related data of parent trace and child span ;
0 commit comments