Skip to content

Use a separate daemonized process to send data to AppSignal #6

@unflxw

Description

@unflxw

As currently implemented, appsignal-wrap sends data to AppSignal on the background, while concurrently passing through the process' standard output and error. However, when the process it wraps exits, it must still continue to run for a while, in order to send the last log lines and/or the last cron check-ins to AppSignal.

Ideally, appsignal-wrap would exit as soon as the process it wraps exits (allowing, for example, for its usage in shell scripts to not slow down the overall shell script run) while the data related to its execution is sent to AppSignal by a separate daemonized process.

In the integrations, we implement this sort of behaviour through the extension, the agent and an UNIX socket. But in this case, we might be able to have the appsignal-wrap process spawn a fork of itself that is daemonized, and to communicate with that fork by writing to its standard input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAn improvement to an existing feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions