gpt4 book ai didi

django - 弹性apm,django集成,用户ID

转载 作者:行者123 更新时间:2023-12-03 01:23:02 24 4
gpt4 key购买 nike

https://www.elastic.co/guide/en/apm/agent/python/current/django-support.html

有没有一种方法可以为apm消息添加用户ID?

我们想知道有多少唯一用户遇到此错误。

最佳答案

当然!您可以使用 elasticapm.set_custom_context() elasticapm.label() 将此类上下文添加到事件中。

请记住,标签已建立索引,这对性能有影响,而上下文未建立索引,但在Elasticsearch中存在且可见。更多信息here

关于django - 弹性apm,django集成,用户ID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59450404/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com