Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 419e5f8e
authored
Jun 15, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sentry
1 parent
6111f450
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
project-order/src/main/java/com/alibaba/cloud/integration/order/OrderServiceApplication.java
project-order/src/main/resources/application.yaml
project-order/src/main/java/com/alibaba/cloud/integration/order/OrderServiceApplication.java
View file @
419e5f8
...
...
@@ -16,7 +16,6 @@
package
com
.
alibaba
.
cloud
.
integration
.
order
;
import
io.sentry.Sentry
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
...
...
@@ -31,14 +30,5 @@ public class OrderServiceApplication {
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
OrderServiceApplication
.
class
,
args
);
// todo 配置化
Sentry
.
init
(
options
->
{
options
.
setDsn
(
"http://85293a9310fc4a8187422a7a257fc1ba@sentry.zjhuixinyun.com/8"
);
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
// We recommend adjusting this value in production.
options
.
setTracesSampleRate
(
1.0
);
// When first trying Sentry it's good to see what the SDK is doing:
options
.
setDebug
(
true
);
});
}
}
project-order/src/main/resources/application.yaml
View file @
419e5f8
...
...
@@ -40,3 +40,11 @@ seata:
project-order-group
:
default
grouplist
:
default
:
seata-server:8091
sentry
:
dsn
:
http://85293a9310fc4a8187422a7a257fc1ba@sentry.zjhuixinyun.com/8
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for performance monitoring.
# We recommend adjusting this value in production.
tracesSampleRate
:
1.0
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment