Skip to content

Instantly share code, notes, and snippets.

@salrashid123
Created October 25, 2022 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salrashid123/67be14de3998c75e78bd08fd693f7568 to your computer and use it in GitHub Desktop.
Save salrashid123/67be14de3998c75e78bd08fd693f7568 to your computer and use it in GitHub Desktop.
Google Traffic Director DNS verbose logs https://github.com/salrashid123/grpc_xds_traffic_director.git
$ go run client/grpc_client.go --host dns:///grpc-ig-3kb7:50051

2022/10/25 02:42:52 INFO: [core] [Channel #1] Channel created
2022/10/25 02:42:52 INFO: [core] [Channel #1] original dial target is: "dns:///grpc-ig-3kb7:50051"
2022/10/25 02:42:52 INFO: [core] [Channel #1] parsed dial target is: {Scheme:dns Authority: Endpoint:grpc-ig-3kb7:50051 URL:{Scheme:dns Opaque: User: Host: Path:/grpc-ig-3kb7:50051 RawPath: OmitHost:false ForceQuery:false RawQuery: Fragment: RawFragment:}}
2022/10/25 02:42:52 INFO: [core] [Channel #1] Channel authority set to "grpc.domain.com"
2022/10/25 02:42:52 INFO: [core] [Channel #1] Resolver state updated: {
  "Addresses": [
    {
      "Addr": "10.128.0.13:50051",
      "ServerName": "",
      "Attributes": null,
      "BalancerAttributes": null,
      "Type": 0,
      "Metadata": null
    }
  ],
  "ServiceConfig": null,
  "Attributes": null
} (resolver returned new addresses)
2022/10/25 02:42:52 INFO: [core] [Channel #1] Channel switches to new LB policy "pick_first"
2022/10/25 02:42:52 INFO: [core] [Channel #1 SubChannel #2] Subchannel created
2022/10/25 02:42:52 INFO: [core] blockingPicker: the picked transport is not ready, loop back to repick
2022/10/25 02:42:52 INFO: [core] [Channel #1 SubChannel #2] Subchannel Connectivity change to CONNECTING
2022/10/25 02:42:52 INFO: [core] [Channel #1 SubChannel #2] Subchannel picks a new address "10.128.0.13:50051" to connect
2022/10/25 02:42:52 INFO: [core] pickfirstBalancer: UpdateSubConnState: 0xc0002db010, {CONNECTING <nil>}
2022/10/25 02:42:52 INFO: [core] [Channel #1] Channel Connectivity change to CONNECTING
2022/10/25 02:42:52 http2: Framer 0xc000270540: wrote SETTINGS len=0
2022/10/25 02:42:52 http2: Framer 0xc000270540: read SETTINGS len=12, settings: MAX_FRAME_SIZE=16384, MAX_CONCURRENT_STREAMS=10
2022/10/25 02:42:52 http2: Framer 0xc000270540: wrote SETTINGS flags=ACK len=0
2022/10/25 02:42:52 INFO: [core] [Channel #1 SubChannel #2] Subchannel Connectivity change to READY
2022/10/25 02:42:52 INFO: [core] pickfirstBalancer: UpdateSubConnState: 0xc0002db010, {READY <nil>}
2022/10/25 02:42:52 INFO: [core] [Channel #1] Channel Connectivity change to READY
2022/10/25 02:42:52 http2: Framer 0xc000270540: wrote HEADERS flags=END_HEADERS stream=1 len=76
2022/10/25 02:42:52 http2: Framer 0xc000270540: wrote DATA flags=END_STREAM stream=1 len=10 data="\x00\x00\x00\x00\x05\n\x03foo"
2022/10/25 02:42:52 http2: Framer 0xc000270540: read SETTINGS flags=ACK len=0
2022/10/25 02:42:52 http2: Framer 0xc000270540: read WINDOW_UPDATE len=4 (conn) incr=10
2022/10/25 02:42:52 http2: Framer 0xc000270540: read PING len=8 ping="\x02\x04\x10\x10\t\x0e\a\a"
2022/10/25 02:42:52 http2: Framer 0xc000270540: read HEADERS flags=END_HEADERS stream=1 len=14
2022/10/25 02:42:52 http2: decoded hpack field header field ":status" = "200"
2022/10/25 02:42:52 http2: decoded hpack field header field "content-type" = "application/grpc"
2022/10/25 02:42:52 http2: Framer 0xc000270540: read DATA stream=1 len=66 data="\x00\x00\x00\x00=\n;SayHelloUnary Response b8c5c800-540e-11ed-9ed0-42010a80000d"
2022/10/25 02:42:52 http2: Framer 0xc000270540: read HEADERS flags=END_STREAM|END_HEADERS stream=1 len=24
2022/10/25 02:42:52 http2: decoded hpack field header field "grpc-status" = "0"
2022/10/25 02:42:52 http2: decoded hpack field header field "grpc-message" = ""

2022/10/25 02:42:52 Unary Request Response:  SayHelloUnary Response b8c5c800-540e-11ed-9ed0-42010a80000d

2022/10/25 02:42:52 INFO: [core] [Channel #1] Channel Connectivity change to SHUTDOWN
2022/10/25 02:42:52 INFO: [core] [Channel #1 SubChannel #2] Subchannel Connectivity change to SHUTDOWN
2022/10/25 02:42:52 INFO: [core] [Channel #1 SubChannel #2] Subchannel deleted
2022/10/25 02:42:52 INFO: [core] [Channel #1] Channel deleted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment