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

Feature request: named sub-requests #22

Open
shaunpersad opened this issue Apr 7, 2022 · 1 comment
Open

Feature request: named sub-requests #22

shaunpersad opened this issue Apr 7, 2022 · 1 comment

Comments

@shaunpersad
Copy link
Contributor

Currently, all sub-requests show up in the Honeycomb dash as fetch. It would be great to add an hc Honeycomb param to the fetch options, similar to the cf Cloudflare param. In it, we could specify the service name and perhaps any other initial span data for the sub-request.

e.g.:

await request.tracer.fetch('https://storage.googleapis.com', {
  method: 'POST',
  body: 'foo',
  hc: {
    serviceName: 'gcp-storage',
  },
})
@evanderkoogh
Copy link
Contributor

This is a great suggestion! I am going to try and see what I can throw together over the weekend :)

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

No branches or pull requests

2 participants