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

OpenTelemetry for distributed tracing with TSOA #1503

Closed
erangac opened this issue Oct 30, 2023 · 4 comments
Closed

OpenTelemetry for distributed tracing with TSOA #1503

erangac opened this issue Oct 30, 2023 · 4 comments
Labels

Comments

@erangac
Copy link

erangac commented Oct 30, 2023

Does TSOA include built-in functionality for context management? For example, is there support for accessing the traceId from incoming HTTP requests, adding new spans, or propagating the current context to a new service?

What is the recommended approach for implementing these context management features in TSOA?

@github-actions
Copy link

Hello there erangac 👋

Thank you for opening your very first issue in this project.

We will try to get back to you as soon as we can.👀

@WoH
Copy link
Collaborator

WoH commented Oct 30, 2023

Sure, depending on the framework you target, you can write your own middleware/plugin that does that, or use the ones provided, for example tsoa for express (the default), you would want to check out:
https://www.npmjs.com/package/@opentelemetry/instrumentation-express

@erangac
Copy link
Author

erangac commented Oct 30, 2023

In this particular scenario, it appears that manual context propagation is necessary. I am referring to a process similar to the following.

https://github.com/musay0/node-samples/blob/v1.0.0/express-otel-boilerplate/src/invoker.ts

It would be beneficial to have a standardized mechanism provided by TSOA for this purpose.

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants