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

Make Tracer Sendable #7581

Open
mcm001 opened this issue Dec 23, 2024 · 3 comments
Open

Make Tracer Sendable #7581

mcm001 opened this issue Dec 23, 2024 · 3 comments
Labels
type: feature Brand new functionality, features, pages, workflows, endpoints, etc.

Comments

@mcm001
Copy link
Contributor

mcm001 commented Dec 23, 2024

Is your feature request related to a problem? Please describe.

I'd like to see Tracer telemetry in real-time on common logging tools like Ascope. Right now the Tracer class has no easy way to send its trace report out over NetworkTables for logging or other post-processing.

Tracer is weird because the total number of traced frames is unbounded and variable, but NT doesn't support VLAs cleanly. And trace frame names are Strings, which also don't serialize cleanly. Open to suggestions.

Potentially related to #609

@mcm001 mcm001 added the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Dec 23, 2024
@mcm001
Copy link
Contributor Author

mcm001 commented Dec 23, 2024

Current MVP looks like this:
Image

@mcm001
Copy link
Contributor Author

mcm001 commented Dec 23, 2024

Another option is to use a struct array, with every string up to 64 bytes long?

@mcm001
Copy link
Contributor Author

mcm001 commented Dec 23, 2024

An impl attempt started over at PhotonVision/photonvision#1655

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature Brand new functionality, features, pages, workflows, endpoints, etc.
Projects
None yet
Development

No branches or pull requests

1 participant