Skip to content

captureMessage does not send context's additional data #284

Closed
CrowdStrike/raven-js
#1
@ironsidevsquincy

Description

@ironsidevsquincy

Couldn't find an issue relating to this, so...

When using context to wrap a function call, with additional data, e.g.

Raven.context(
    { tags: { foo: 'bar' } },
    myFunc
);

if Raven.captureMessage is called from within myFunc, the tag foo is not sent up to sentry

Looks like it only sends the global options - https://github.com/getsentry/raven-js/blob/master/src/raven.js#L659

Is this expected behaviour?

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