Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spt-development/spt-development-cid
A very simple library for getting/setting the current correlation ID, utilising ThreadLocal.
https://github.com/spt-development/spt-development-cid
correlation microservices
Last synced: about 2 months ago
JSON representation
A very simple library for getting/setting the current correlation ID, utilising ThreadLocal.
- Host: GitHub
- URL: https://github.com/spt-development/spt-development-cid
- Owner: spt-development
- License: apache-2.0
- Created: 2021-02-08T11:06:41.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-27T16:03:13.000Z (5 months ago)
- Last Synced: 2024-07-28T17:25:49.207Z (5 months ago)
- Topics: correlation, microservices
- Language: Java
- Homepage: https://github.com/spt-development/spt-development-cid
- Size: 104 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
````
____ ____ _____ ____ _ _
/ ___|| _ \_ _| | _ \ _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_
\___ \| |_) || | | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __|
___) | __/ | | | |_| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_
|____/|_| |_| |____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__|
|_|
cid ----------------------------------------------------------------------------
````[![build_status](https://github.com/spt-development/spt-development-cid/actions/workflows/build.yml/badge.svg)](https://github.com/spt-development/spt-development-cid/actions)
A very simple library for getting/setting the current correlation ID, utilising ThreadLocal.
Usage
=====```java
import com.spt.development.cid.CorrelationId;
public class MyApp {
public static void main(String[] args) {
CorrelationId.set(UUID.randomUUID().toString());System.out.printf("[%s] Hello, world!", CorrelationId.get());
}
}
```Building locally
================To build the library, run the following maven command:
```shell
$ ./mvnw clean install
```Release
=======To build a release and upload to Maven Central push to `main`.