getsentry / getsentry/sentry-python

New Memcached caching module

未关闭
#2,966 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
cache/Memcached Feature New Integration Python Spans
主要语言
Python
星标
2.2k
派生
669
平均合并
1 天 1 小时
30 天内合并 PR
213

描述

Create a new integration `MemcachedIntegration`.

First check the Go OTEL memcache instrumentation (https://pkg.go.dev/go.opentelemetry.io/contrib/instrumentation/github.com/bradfitz/gomemcache/memcache/otelmemcache) to see what data Otel is collecting.

Part of https://github.com/getsentry/sentry-python/issues/2949

It should be similar as the `RedisIntegration` but as the first iteration only create cache spans as described here: https://github.com/getsentry/sentry-python/issues/2965

The integration should be auto enabling and patch [pymemcache](https://pypi.org/project/pymemcache/ ).

(There is another lib that is still famous, but it is in maintenance mode and basically going to die: [python-memcached](https://pypi.org/project/python-memcached/) We will not support this lib.)

Bonus:
- [ ] Load test the cache spans generation and publish results somewhere to be confident that this will not add to much overhead.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。