Open jurre opened 4 years ago
👍 for adding OpenTelemetry support (opentracing was deprecated in favor of opentelemtry).
@JamieMagee , I believe you already added the framework for OTel so this might be light lift?
Yes, the combination of migrating to sentry-ruby
, which supports OpenTelemetry, and adding OpenTelemetry configuration should make this easy to do.
I would think there are 2 steps:
It would be great to have a way to instrument dependabot-core, to figure out performance bottlenecks etc.
There are a few options we could consider:
Notifications
Introduce some sort of Notification pattern, so in or around a given method, we can do something like:
We could introduce some convenience methods so we can tag a given method as needing instrumentation.
Then, in the environment where we run this code, we could do something like:
We could implement such an notification system ourselves, or include ActiveSupport
Allow setting a statsd/opentracing client
Alternatively we could inject a statsd or opentracing client into Dependabot, and ship with a noop implementation by default.