|
| 1 | +[](https://dev.azure.com/colin0754/NATS/_build/latest?definitionId=1&branchName=master) |
| 2 | + |
1 | 3 | # OpenTracing with NATS
|
2 | 4 |
|
3 | 5 | Over the years, we've had periodic requests to support distributed tracing in
|
@@ -239,6 +241,48 @@ Sending hello on foo, server is nats://localhost:4222
|
239 | 241 | [main] INFO io.jaegertracing.internal.reporters.LoggingReporter - Span reported: 2d16a66cb0ea9a3:2d16a66cb0ea9a3:0:1 - Publish
|
240 | 242 | ```
|
241 | 243 |
|
| 244 | +## Maven Coordinates |
| 245 | + |
| 246 | +Most users will want to modify this code for their own application or environment, and we encourage users to do so and |
| 247 | +include in their own application or infrastructure code. If it is sufficient as-is, you can reference built jars via |
| 248 | +maven. |
| 249 | + |
| 250 | +The NATS client is available on the Maven central repository, and can be imported as a normal dependency in your pom.xml file: |
| 251 | + |
| 252 | +```xml |
| 253 | +<dependency> |
| 254 | + <groupId>io.nats</groupId> |
| 255 | + <artifactId>not</artifactId> |
| 256 | + <version>0.1.0</version> |
| 257 | +</dependency> |
| 258 | +``` |
| 259 | + |
| 260 | +If you need the absolute latest, before it propagates to maven central, you can use the repository: |
| 261 | + |
| 262 | +```xml |
| 263 | +<repositories> |
| 264 | + <repository> |
| 265 | + <id>latest-repo</id> |
| 266 | + <url>https://oss.sonatype.org/content/repositories/releases</url> |
| 267 | + <releases><enabled>true</enabled></releases> |
| 268 | + <snapshots><enabled>false</enabled></snapshots> |
| 269 | + </repository> |
| 270 | +</repositories> |
| 271 | +``` |
| 272 | + |
| 273 | +Development snapshots can be found on the sonatype snapshots repository. |
| 274 | + |
| 275 | +https://oss.sonatype.org/content/repositories/snapshots/ |
| 276 | + |
| 277 | +```xml |
| 278 | +<dependency> |
| 279 | + <groupId>io.nats</groupId> |
| 280 | + <artifactId>not</artifactId> |
| 281 | + <version>0.1.0-SNAPSHOT</version> |
| 282 | + <type>pom</type> |
| 283 | +</dependency> |
| 284 | +``` |
| 285 | + |
242 | 286 | ## Our sponsor for this project
|
243 | 287 |
|
244 | 288 | Many thanks to [MasterCard](http://mastercard.com) for sponsoring this project.
|
|
0 commit comments