Check if distributed tracing is enabled programmatically

Is there a way to check via REST API or GraphQL whether distributed tracing is enabled for a particular app?

1 Like

You can use GraphQL via https://api.newrelic.com/graphiql

{
  actor {
    entity(guid: "ENTITY_GUID_HERE") {
      name
      nrdbQuery(nrql: "SELECT count(*) FROM Span SINCE 5 MINUTES AGO") {
        results
        nrql
      }
    }
  }
}