Skip to content

How to use Metrics with Sentry in shared environment? #12503

Answered by hdkshingala
hdkshingala asked this question in Q&A
Discussion options

You must be logged in to vote

The error was due to mismatch of the SDK version which is fixed now. I am getting some metrics by running it as below:

Sentry.metrics.increment(metricName, 1, { tags: tags, client: myScope.getClient() });

Is this the correct way of using the Metrics in the shared environments?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@AbhiPrasad
Comment options

@hdkshingala
Comment options

Answer selected by hdkshingala
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants