Our great sponsors
-
cat-fact-service
Discontinued A weather services services JSON response using the WeatherApi client [Moved to: https://github.com/yonatankarp/cat-fact-service] (by ForkingGeniuses)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Code examples related to this service can be found here on the branch add-instumentation.
tasks { bootRun { environment = mapOf( "HONEYCOMB_API_KEY" to System.getenv("HONEYCOMB_API_KEY"), "SERVICE_NAME" to "cat-fact-service", "HONEYCOMB_API_ENDPOINT" to "https://api.honeycomb.io:443", "ENVIRONMENT" to "test", ) jvmArgs = listOf( "-javaagent:${layout.buildDirectory.get().asFile}/output/libs/honeycomb-opentelemetry-javaagent.jar", // Passing static parameter to the collector, in this case - // a reference to the GitHub repository "-Dotel.resource.attributes=github.repository=https://github.com/ForkingGeniuses/cat-fact-service", ) } }
In this article, we'll use HoneyComb.io as our tracing backend. While there are other tools in the market, some of which can be run on your local machine (e.g., Jaeger), I chose HoneyComb because of their complementary tools that offer improved monitoring of the service and insights into its behavior.