-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
505ec33
commit 172b5e2
Showing
66 changed files
with
963 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ build/ | |
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
|
||
/kafka | ||
|
||
### STS ### | ||
.apt_generated | ||
.classpath | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
start-kafka: | ||
docker compose -f kafka/common.yml -f kafka/zookeeper.yml -f kafka/kafka_cluster.yml up -d | ||
|
||
stop-kafka: | ||
docker compose -f kafka/common.yml -f kafka/zookeeper.yml -f kafka/kafka_cluster.yml down |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
...din-application/app-api/src/main/java/com/univ/tracedin/api/span/dto/ReadSpanRequest.java
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
...in-application/app-api/src/main/java/com/univ/tracedin/api/span/dto/ReadTraceRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.univ.tracedin.api.span.dto; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
import com.univ.tracedin.domain.project.Node; | ||
import com.univ.tracedin.domain.project.NodeType; | ||
import com.univ.tracedin.domain.span.TraceSearchCond; | ||
|
||
public record ReadTraceRequest( | ||
String projectKey, String serviceName, LocalDateTime startTime, LocalDateTime endTime) { | ||
|
||
public TraceSearchCond toSearchCond() { | ||
return new TraceSearchCond( | ||
Node.of(projectKey, serviceName, NodeType.SERVICE), startTime, endTime); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ jwt: | |
access-token: | ||
expiration: 25920000 | ||
server: | ||
port: 8989 | ||
port: 8089 | ||
--- | ||
spring: | ||
config: | ||
|
3 changes: 2 additions & 1 deletion
3
tracedin-domain/src/main/java/com/univ/tracedin/domain/global/BaseId.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...in-domain/src/main/java/com/univ/tracedin/domain/metric/ServiceMetricsCollectedEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.univ.tracedin.domain.metric; | ||
|
||
import java.io.Serializable; | ||
|
||
public record ServiceMetricsCollectedEvent(ServiceMetrics serviceMetrics) implements Serializable { | ||
|
||
public static ServiceMetricsCollectedEvent from(ServiceMetrics metrics) { | ||
return new ServiceMetricsCollectedEvent(metrics); | ||
} | ||
|
||
public String getKey() { | ||
return serviceMetrics.getProjectKey() + "-" + serviceMetrics.getServiceName(); | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
...rc/main/java/com/univ/tracedin/domain/metric/ServiceMetricsCollectedMessagePublisher.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.univ.tracedin.domain.metric; | ||
|
||
public interface ServiceMetricsCollectedMessagePublisher { | ||
|
||
void publish(ServiceMetricsCollectedEvent serviceMetricsCollectedEvent); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
tracedin-domain/src/main/java/com/univ/tracedin/domain/project/Node.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.univ.tracedin.domain.project; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class Node { | ||
|
||
private String projectKey; | ||
private String name; | ||
private NodeType nodeType; | ||
|
||
public static Node of(String projectKey, String serviceName, NodeType nodeType) { | ||
return new Node(projectKey, serviceName, nodeType); | ||
} | ||
} |
Oops, something went wrong.