Search code examples
reactjssentry

How to configure sentry scope in react?


I am trying to configure scope and set a transaction name. how can I do it? I am exporting my component with profiler.


Solution

  • Sentry.configureScope((scope) =>
        scope.setTransactionName("your transcation name")
      );
    

    try using this