Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ pom.xml 中定义了工程需要的依赖包(以下以基于 Spring Cloud Gree
<parent>
<groupId>com.tencent.tsf</groupId>
<artifactId>spring-cloud-tsf-dependencies</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>

<groupId>com.tencent.tsf</groupId>
<artifactId>tsf-demo</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
<packaging>pom</packaging>

<modules>
Expand Down
2 changes: 1 addition & 1 deletion consumer-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.tencent.tsf</groupId>
<artifactId>tsf-demo</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>
<artifactId>consumer-demo</artifactId>
<packaging>jar</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class ScheduledProviderDemo {
@Autowired
private ProviderDemoService providerDemoService;

@Scheduled(fixedDelayString = "${consumer.auto.test.interval:1000}")
@Scheduled(fixedDelayString = "${consumer.auto.test.interval:500}")
public void doWork() throws InterruptedException {
TsfContext.putTag("test", "123");
TsfContext.putCustomMetadata(new CustomMetadata("test", "123"));
Expand Down
2 changes: 2 additions & 0 deletions consumer-demo/src/main/resources/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ tsf_namespace_id: default_namespace

#方便本地自测调试
tsf:
sleuth:
samplerRate: 0.1
circuit-breaker:
rules:
- targetServiceName: provider-demo
Expand Down
2 changes: 1 addition & 1 deletion kafka-demo/kafka-consumer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>kafka-demo</artifactId>
<groupId>com.tencent.tsf</groupId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion kafka-demo/kafka-producer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>kafka-demo</artifactId>
<groupId>com.tencent.tsf</groupId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion kafka-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>tsf-demo</artifactId>
<groupId>com.tencent.tsf</groupId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion mongodb-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.tencent.tsf</groupId>
<artifactId>tsf-demo</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>

<artifactId>mongodb-demo</artifactId>
Expand Down
19 changes: 17 additions & 2 deletions msgw-demo/msgw-scg/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>msgw-demo</artifactId>
<groupId>com.tencent.tsf</groupId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -17,5 +17,20 @@
<groupId>com.tencent.tsf</groupId>
<artifactId>spring-cloud-tsf-msgw-scg</artifactId>
</dependency>
<!--TSF 其它 SDK 依赖,添加到 msgw-scg 依赖的后面-->
<dependency>
<groupId>com.tencent.tsf</groupId>
<artifactId>spring-cloud-tsf-starter</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
<exclusion>
<groupId>com.tencent.tsf</groupId>
<artifactId>spring-cloud-tsf-swagger</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>
</project>
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
package com.tencent.tsf.msgw.scg;

import com.tencent.tsf.monitor.annotation.EnableTsfMonitor;
import com.tencent.tsf.sleuth.annotation.EnableTsfSleuth;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.tsf.annotation.EnableTsf;

/**
* @author seanlxliu
*/
@SpringBootApplication
@EnableDiscoveryClient
@EnableTsfSleuth
@EnableTsfMonitor
@EnableTsf
public class Application {

public static void main(String[] args) {
Expand Down

This file was deleted.

5 changes: 3 additions & 2 deletions msgw-demo/msgw-scg/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ spring:
scheme: HTTP

logging:
file: /tsf-demo-logs/${spring.application.name}/root.log
level:
root: INFO
root: INFO
file:
name: /tsf-demo-logs/${spring.application.name}/root.log
2 changes: 1 addition & 1 deletion msgw-demo/msgw-zuul1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>msgw-demo</artifactId>
<groupId>com.tencent.tsf</groupId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion msgw-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>tsf-demo</artifactId>
<groupId>com.tencent.tsf</groupId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion mysql-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.tencent.tsf</groupId>
<artifactId>tsf-demo</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>

<artifactId>mysql-demo</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion opensource-scg-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.tencent.tsf</groupId>
<artifactId>spring-cloud-tsf-dependencies</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
<relativePath/>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion opensource-zuul-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.tencent.tsf</groupId>
<artifactId>tsf-demo</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>
<artifactId>opensource-zuul-demo</artifactId>

Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<parent>
<groupId>com.tencent.tsf</groupId>
<artifactId>spring-cloud-tsf-dependencies</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>

<artifactId>tsf-demo</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
<packaging>pom</packaging>

<modules>
Expand Down
2 changes: 1 addition & 1 deletion provider-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.tencent.tsf</groupId>
<artifactId>tsf-demo</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>

<artifactId>provider-demo</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion redis-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.tencent.tsf</groupId>
<artifactId>tsf-demo</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>

<artifactId>redis-demo</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion rocketmq-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>tsf-demo</artifactId>
<groupId>com.tencent.tsf</groupId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion rocketmq-demo/rocketmq-consumer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>rocketmq-demo</artifactId>
<groupId>com.tencent.tsf</groupId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion rocketmq-demo/rocketmq-producer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>rocketmq-demo</artifactId>
<groupId>com.tencent.tsf</groupId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion task-schedule-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.tencent.tsf</groupId>
<artifactId>spring-cloud-tsf-parent</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
<relativePath/>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down