package
0.0.0-20230816073800-5da36973e672
Repository: https://github.com/lc-1010/oneblogservice.git
Documentation: pkg.go.dev

# README

tarcing

+--------+                                                +--------+
|        |                  Start Span                    |        |
| Client | <---------------------------------------------- | Server |
|        |               (with client context)             |        |
+--------+                                                +--------+
    |                                                           |
    |             Send request with Span context                |
    | --------------------------------------------------------> |
    |                                                           |
    |             Receive request with Span context             |
    | <-------------------------------------------------------- |
    |                                                           |
    |                  Start Span on Server                     |
    |               (with request Span context)                 |
    |                                                           |
    |                                                           |
    |                                                           |
    | ---------------------- RPC processing -------------------- |
    |                                                           |
    |                                                           |
    |                                                           |
    |                                                           |
    |                  Add attributes to Span                    |
    |                     (e.g. response code)                   |
    |                                                           |
    |                                                           |
    |                                                           |
    |                  End Span on Server                         |
    |                                                           |
    |                                                           |
    |             Update client Span with response               |
    | <-------------------------------------------------------- |
    |                                                           |
    |                                                           |
    |                                                           |
    |                      Close connection                       |
    | --------------------------------------------------------> |
    |                                                           |
+--------+                                                +--------+
|        |                                                |        |
| Client |                                                | Server |
|        |                                                |        |
+--------+                                                +--------+

# Functions

No description provided by the author
No description provided by the author
ErrorLog logs any errors that occur during the execution of the grpc server handler function.
No description provided by the author
ServerTracing applies tracing to a gRPC server handler.
No description provided by the author
No description provided by the author
No description provided by the author