Skip to content

Support sending a serialized envelope via Transport #381

Closed
@kornelski

Description

I need to report errors from a process that runs in an off-line sandbox, without its own access to a network. The process can serialize and pass on messages to be sent from another process (like Chrome Renderer helper and Chrome root process). Related to #281

Sentry supports pluggable Transport which can be used to capture an Envelope, and Envelope supports serialization via to_writer, so I can move it between processes easily. However, the Transport trait can't send a serialized &[u8] representation of the envelope, so I can't reuse Sentry's implementation of networked transports. I need to reinvent the whole transport logic myself, including retry-after and rate limiting logic, which I'd rather not duplicate.

  • Could you extend the Transport trait to support sending of an already-serialized envelope from &[u8] or Vec<u8> representation?

  • Or, could you make it possible to parse Envelope object back from its serialized representation, so that I can feed it back to a Transport?

  • Alternatively, could you make TransportThread public, so I would only need to copy-paste only the easy parts of an http client implementation?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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