Reads trace context from x-cloud-trace-context
header and adds metadata to Logger
so trace context will appear in Google Cloud Logging.
If available in Hex, the package can be installed
by adding google_cloud_trace_plug
to your list of dependencies in mix.exs
:
def deps do
[
{:google_cloud_trace_plug, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/google_cloud_trace_plug.