Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to add spans to @service classes in Java spring boot? #2197

sajjanbalar started this conversation in General
Discussion options

I want to enable sentry tracing via spans for my backend server which is written in Java Spring.
There is a class called ESService with an @service annotation. The @SentrySpan annotation has been added to this class but I am not seeing the perf times of the methods in this class in Sentry.

What do I need to do?

You must be logged in to vote

Replies: 1 comment

Comment options

Spans are added to Transactions. Do you have a transaction happening? If that service is the entry point (like it's invoked by the framework or something) you could annotate with @SentryTransaction instead. Otherwise maybe you haven't setup performance yet? https://docs.sentry.io/platforms/java/guides/spring-boot/performance/

For incoming Web requests, the SDK automatically starts a transaction. So any @SentrySpan that happens in a request should automatically get appended to the it

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /