Skip to content

Metrics are not flushed when used in jobs #907

@pataar

Description

@pataar

How do you use Sentry?

Self-hosted / on-premises

SDK version

4.5.1

Steps to reproduce

  1. Use metrics in async jobs
  2. See that they're not being pushed to Sentry

Expected result

I was expecting results when using metrics in an Event listener that's fired in a job. Job is done async using the database driver.

Actual result

The metric doesn't get posted to Sentry. Might be because of a missing flush. Metrics done using normal requests are handled correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions