Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPIKE] Investigate Distributed Tracing #582

Closed
Tracked by #229
kadel opened this issue Oct 3, 2023 · 4 comments
Closed
Tracked by #229

[SPIKE] Investigate Distributed Tracing #582

kadel opened this issue Oct 3, 2023 · 4 comments
Assignees

Comments

@kadel
Copy link
Member

kadel commented Oct 3, 2023

User story:
As a Backstage user, I want to be able to optionally enable distributed tracing in my instance and connect it to my distributed tracing stack so that I can debug and trace issues in a production environment.

Goal: Investigate what are our options and what is effort required to enable distributed tracing for Backstage and integrate it into the OpenShift Distributed tracing stack.

@jesuino
Copy link
Contributor

jesuino commented Oct 11, 2023

For tracing OpenTelemetry is likely the technology and standard to be used. The tracing must be done in the application using OpenTelemetry APIs and later exported to some tool, such as Jaegar or Openshift Distributed Tracing.

I found that there are some OpenTelemetry in place in Backstage. It was added by these PRs:

OpenTelemetry was introduced a while ago in Backstage, but only for metrics:
backstage/backstage#15145

Later some actual tracing was added (1.17.0 release):
backstage/backstage#17534

However, it seems that tracing is not exported, so it is not exposed for comsuption. Here are some refs:

Backstage general Observability is discussed on the following EPIC:
backstage/backstage#1519

The epic 14518 is specific for tracing collector and tracing in general:
backstage/backstage#14518

Notice that epic 14518 is stale, so no timeline to when this will be implemented.

--

Conclusion: tracing export seems to be not available today in backstage. A possible solution could adding the tracing collector on midstream to confirm that the exported tracing information can be consumed by Openshift Distributed Tracing or Jaegar.

@rtaniwa
Copy link

rtaniwa commented Oct 18, 2023

@jasperchui @kadel if this is done, can I close this spike? Are there follow-on issues we should be opening that might track future work for in this space?

@kadel
Copy link
Member Author

kadel commented Oct 19, 2023

I'm going to close this and create a new epic to track future tracing related work.

@kadel
Copy link
Member Author

kadel commented Oct 19, 2023

I'm going to close this and create a new epic to track future tracing related work.

#632

@kadel kadel closed this as completed Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants