-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from sportradar/v3
release v3.1.0
- Loading branch information
Showing
169 changed files
with
9,225 additions
and
1,152 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
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM ghcr.io/shopify/toxiproxy:2.7.0 | ||
|
||
COPY config.conf /app/config/proxies.json | ||
|
||
EXPOSE 8093 | ||
ENTRYPOINT ["/toxiproxy"] | ||
CMD ["-host=0.0.0.0", "-config=/app/config/proxies.json"] |
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,8 @@ | ||
[ | ||
{ | ||
"name": "rabbit-proxy", | ||
"listen": "[::]:8093", | ||
"upstream": "rabbit:5672", | ||
"enabled": true | ||
} | ||
] |
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
34 changes: 34 additions & 0 deletions
34
sdk-core/src/main/java/com/sportradar/unifiedodds/sdk/impl/MessageTrafficLogger.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,34 @@ | ||
/* | ||
* Copyright (C) Sportradar AG. See LICENSE for full license governing this code | ||
*/ | ||
package com.sportradar.unifiedodds.sdk.impl; | ||
|
||
import com.sportradar.unifiedodds.sdk.LoggerDefinitions; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
public class MessageTrafficLogger { | ||
|
||
private static final String TRAFFIC_LOG_DELIMITER = "<~>"; | ||
|
||
private static final Logger TRAFFIC_LOGGER = LoggerFactory.getLogger( | ||
LoggerDefinitions.UfSdkTrafficLog.class | ||
); | ||
|
||
private MessageTrafficLogger() {} | ||
|
||
public static void logReceivedOnClosedChannel( | ||
String consumerDescription, | ||
String routingKey, | ||
byte[] body | ||
) { | ||
TRAFFIC_LOGGER.debug( | ||
"{} {} {} {} {}", | ||
consumerDescription, | ||
TRAFFIC_LOG_DELIMITER, | ||
routingKey, | ||
TRAFFIC_LOG_DELIMITER, | ||
"received on closed channel: " + new String(body) | ||
); | ||
} | ||
} |
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
Oops, something went wrong.