Skip to content

Feature request: named sub-requests #22

@shaunpersad

Description

@shaunpersad

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',
  },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions