Skip to content

Instantly share code, notes, and snippets.

@Nitrino
Created September 17, 2020 12:39
Show Gist options
  • Save Nitrino/3d7375d7c75f1be1352280f63fcd64aa to your computer and use it in GitHub Desktop.
Save Nitrino/3d7375d7c75f1be1352280f63fcd64aa to your computer and use it in GitHub Desktop.
*SPANS FOR DEBUG*
{span,248300990230423796953297546214252496318,13729233962259387090,undefined,
4833020836194765878,<<"qb_calls.repo.query:records">>,
'SPAN_KIND_UNSPECIFIED',-576460638189076000,-576460638184572000,
[{<<"decode_time_microseconds">>,31},
{<<"query_time_microseconds">>,4290},
{<<"queue_time_microseconds">>,90},
{<<"db.type">>,<<"sql">>},
{<<"db.statement">>,
<<"SELECT r0.`id`, r0.`call_id`, r0.`call_started_at`, r0.`chat_dialog_id`, r0.`file`, r0.`size`, r0.`start_time_offset`, r0.`type`, r0.`inserted_at`, r0.`updated_at` FROM `records` AS r0 WHERE (r0.`call_started_at` > ?) ORDER BY r0.`call_started_at` DESC LIMIT 1000">>},
{<<"source">>,<<"records">>},
{<<"db.instance">>,<<"qb_calls_dev">>},
{<<"db.url">>,<<"ecto://localhost">>},
{<<"total_time_microseconds">>,4411}],
[],[],undefined,undefined,1,true,
{instrumentation_library,<<"opentelemetry_ecto">>,<<"0.1.0">>}}
{span,248300990230423796953297546214252496318,4833020836194765878,undefined,
12674311599936087279,<<"/api/server/records">>,'SERVER',
-576460638189423000,-576460638184333000,
[{<<"http.client_ip">>,<<"127.0.0.1">>},
{<<"http.host">>,<<"localhost">>},
{<<"http.method">>,<<"GET">>},
{<<"http.scheme">>,<<"https">>},
{<<"http.target">>,<<"/api/server/records">>},
{<<"http.user_agent">>,<<"PostmanRuntime/7.26.5">>},
{<<"net.host.ip">>,<<"127.0.0.1">>},
{<<"net.host.port">>,5001},
{<<"net.peer.ip">>,<<"127.0.0.1">>},
{<<"net.peer.port">>,63581},
{<<"net.transport">>,<<"IP.TCP">>},
{<<"phoenix.plug">>,<<"Elixir.QbCallsWeb.RecordController">>},
{<<"phoenix.action">>,<<"index">>},
{<<"http.status">>,200}],
[],[],
{status,'Ok',<<"Ok">>},
undefined,1,true,
{instrumentation_library,<<"opentelemetry_phoenix">>,<<"0.1.0">>}}
{span,248300990230423796953297546214252496318,12674311599936087279,undefined,
undefined,<<"HTTP GET">>,'SPAN_KIND_UNSPECIFIED',-576460638197243000,
-576460638184290000,
[{<<"http.target">>,<<"/api/server/records">>},
{<<"http.host">>,<<"localhost">>},
{<<"http.scheme">>,https},
{<<"http.user_agent">>,<<>>},
{<<"http.method">>,<<"GET">>},
{<<"net.peer.ip">>,<<"127.0.0.1">>},
{<<"net.peer.port">>,63581},
{<<"net.peer.name">>,<<>>},
{<<"net.transport">>,<<"IP.TCP">>},
{<<"net.host.ip">>,<<"127.0.0.1">>},
{<<"net.host.port">>,5001},
{<<"http.status">>,200}],
[],[],undefined,undefined,1,true,
{instrumentation_library,<<"opentelemetry_plug">>,<<"0.1.0">>}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment