--trace
superflagâs ratio
option when running Dgraph
Alpha nodes. By default, --trace ratio
is set to 0.01 to trace 1% of queries.
/z/tracez
.
trace
superflagâs jaeger
option. For example, if the Jaeger collector is
running on http://localhost:14268
, then pass this option to the Dgraph Zero
and Dgraph Alpha instances as --trace jaeger=http://localhost:14268
.
See
Jaegerâs Getting Started docs
to get up and running with Jaeger.
--collector.tags
on a Jaeger collector to set custom trace tags. For
example, run one collector with --collector.tags env=qa
and then another
collector with --collector.tags env=dev
. In Dgraph, set the --trace jaeger
option in the Dgraph QA cluster to the first collector and set this option in
the Dgraph development cluster to the second collector. You can run multiple
Jaeger collector components for the same single Jaeger backend. This is still a
single Jaeger installation but with different collectors customizing the tags
per environment.
Once you have this configured, you can filter by tags in the Jaeger UI. Filter
traces by tags matching env=dev
:
env=qa
: