You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're currently using the Instrumentation CRD from the Kubernetes Operator to inject the OpenTelemetry bootstrap code. The code for that looks like this:
This successfully picks up our Redis-4 and Google Datastore (and more) SDKs and generates traces without any problems for these. Except for a bug with Redis-4 I've outlined in another issue in the contrib repo this works fine all the way from generating the traces to shipping them to the collector.
We also generate our own traces using the @opentelemetry/api package, and have been doing for a couple of months, but a couple of weeks ago they stopped working (dates are provided in additional details). The code we use to generate these spans look like this:
We know the code is being run as the result from this is being used elsewhere (and frankly it's the core of our application;).
I've tried enabling the debug logs for the instrumentation, but I still see zero trace (no pun intended) of the traces.
Frankly I've been trying to debug this for a while now, but I'm absolutely clueless as to what could have caused this.
Expected Result
Just like the auto-instrumented traces, the manually instrumented ones should work fine.
Actual Result
None of the manually generated traces are generated.
Additional Details
We first observed the problem in our staging environment the 15th of September. This environment is generally speaking updated every day so if the problem was introduced through an upgrade it would likely have been published around this date.
The only change to our code which could affect this was that we upgraded from @opentelemetry/api1.4.1 to 1.6.0 this day, but reverting this change does not seem to fix it.
We deployed to production a couple of days later, and that seemed to introduce the problem there as well. Could this be because a new deployment would trigger the auto-instrumentation to fetch the latest version?
What happened?
Steps to Reproduce
We're currently using the
Instrumentation
CRD from the Kubernetes Operator to inject the OpenTelemetry bootstrap code. The code for that looks like this:Nothing special to see here.
For the kubernetes deployment (or Argo Rollouts in our case), we have the following annotations:
This successfully picks up our Redis-4 and Google Datastore (and more) SDKs and generates traces without any problems for these. Except for a bug with Redis-4 I've outlined in another issue in the contrib repo this works fine all the way from generating the traces to shipping them to the collector.
We also generate our own traces using the
@opentelemetry/api
package, and have been doing for a couple of months, but a couple of weeks ago they stopped working (dates are provided in additional details). The code we use to generate these spans look like this:We know the code is being run as the result from this is being used elsewhere (and frankly it's the core of our application;).
I've tried enabling the
debug
logs for the instrumentation, but I still see zero trace (no pun intended) of the traces.Frankly I've been trying to debug this for a while now, but I'm absolutely clueless as to what could have caused this.
Expected Result
Just like the auto-instrumented traces, the manually instrumented ones should work fine.
Actual Result
None of the manually generated traces are generated.
Additional Details
We first observed the problem in our staging environment the 15th of September. This environment is generally speaking updated every day so if the problem was introduced through an upgrade it would likely have been published around this date.
The only change to our code which could affect this was that we upgraded from
@opentelemetry/api
1.4.1
to1.6.0
this day, but reverting this change does not seem to fix it.We deployed to production a couple of days later, and that seemed to introduce the problem there as well. Could this be because a new deployment would trigger the auto-instrumentation to fetch the latest version?
OpenTelemetry Setup Code
package.json
Relevant log output
No response
The text was updated successfully, but these errors were encountered: