Unlisted
HTTP (deprecated)
  • saolsen avatar
    qstash
    @saolsen
    Upstash qstash client for vals. Lets you publish and receive qstash messages in vals. To use, set up qstash on Upstash and set the environment variables. QSTASH_TOKEN QSTASH_CURRENT_SIGNING_KEY QSTASH_NEXT_SIGNING_KEY Calls are also traced via https://www.val.town/v/saolsen/tracing so if you use that library you will see linked spans between the publish call and the receive call. For an example of how to use it see https://www.val.town/v/saolsen/try_qstash_publish and https://www.val.town/v/saolsen/try_qstash_receive.
    Script
  • saolsen avatar
    tracing
    @saolsen
    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.
    Script
1
Next
saolsen-try_qstash_publish.web.val.run
January 5, 2024