1
0
This commit is contained in:
Erik Johnston
2023-07-12 15:24:29 +01:00
parent cbbdf14be3
commit daa5321055
2 changed files with 3 additions and 2 deletions

View File

@@ -683,7 +683,7 @@ def get_prometheus_exemplar(
trace_id = getattr(span, "trace_id", None)
return {"trace_id": trace_id}
return {"trace_id": f"{trace_id:x}"}
@ensure_active_span("set a tag")

View File

@@ -13,7 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from prometheus_client import REGISTRY, CollectorRegistry, generate_latest
from prometheus_client import REGISTRY, CollectorRegistry
from prometheus_client.openmetrics.exposition import generate_latest
from twisted.web.resource import Resource
from twisted.web.server import Request