0

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

Is there a way to include user-id for apm messages?

We'd like to know if how many unique users are experiencing the error.

eugene
  • 39,839
  • 68
  • 255
  • 489

1 Answers1

1

Sure! You can use elasticapm.set_custom_context() or elasticapm.label() to add this kind of context to your events.

Keep in mind that labels are indexed, which has performance implications, while context is not indexed but is present and viewable in Elasticsearch. More info here.

Colton Myers
  • 1,321
  • 9
  • 12