FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
saolsen
saolsentracing
Public
Like
3
tracing
Home
Code
2
README.md
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
README.md

Opentelemetry Tracing for Vals!

Enables Opentelemetry tracing for vals. Exports two functions, init and traced_handler. init will set up opentelemetry.

For how to use it see this example val.

By default, traces log to the console but if you set HONEYCOMB_API_KEY it'll also push the traces to honeycomb. In the future we can add more export targets for other services. I'm also thinking about making a val to display them.

traced_handler is a wrapper for your handler you can use on an HTTP val. Just pass it your HTTP function and export it as the default and it'll trace every request.

Here's a screenshot of what the honeycomb view of a trace from my connect playing val looks like.

CleanShot 2023-12-22 at 11.51.13@2x.png

Migrated from folder: lib/tracing

Code
README.mdmain.tsx
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.