Commit 419e5f8e by 丁伟峰

sentry

1 parent 6111f450
......@@ -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);
});
}
}
......@@ -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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!