Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Cat | 17,620 | 2 months ago | 5 | February 25, 2019 | 139 | apache-2.0 | Java | |||
CAT 作为服务端项目基础组件,提供了 Java, C/C++, Node.js, Python, Go 等多语言客户端,已经在美团点评的基础架构中间件框架(MVC框架,RPC框架,数据库框架,缓存框架等,消息队列,配置系统等)深度集成,为美团点评各业务线提供系统丰富的性能指标、健康状况、实时告警等。 | ||||||||||
Stabilityguide | 2,776 | 2 months ago | other | |||||||
【稳定大于一切】打造国内稳定性领域知识库,让无法解决的问题少一点点,让世界的确定性多一点点。 | ||||||||||
Natchez | 298 | 5 days ago | 17 | mit | Scala | |||||
functional tracing for cats | ||||||||||
Trace4cats | 166 | 28 | 22 days ago | 401 | April 27, 2022 | 19 | mit | Scala | ||
Distributed app tracing implementation in pure scala using cats-effect | ||||||||||
Scala Opentracing | 100 | 2 years ago | 3 | mit | Scala | |||||
A tracing library for Cats and Http4s, tailored for Opentracing tracers like Datadog and Jaeger | ||||||||||
Otel4s | 96 | 5 days ago | 32 | Scala | ||||||
An OpenTelemetry library for Scala based on Cats-Effect | ||||||||||
Dtrace Py | 47 | 5 years ago | mit | DTrace | ||||||
Using a Dtrace with Python | ||||||||||
Akka Http Animal Service | 7 | 5 years ago | mit | Scala | ||||||
A (micro)service for managing animals. | ||||||||||
Skeletoncat | 6 | 3 years ago | Java | |||||||
Experiments with Skeleton Tracing by Lingdong Huang | ||||||||||
Trace4cats Sttp | 5 | 10 months ago | 6 | mit | Scala | |||||
Integration for Trace4Cats and Sttp/Tapir |
⚠️ If you are upgrading to
0.14.0
please read the migration guide.
Yet another distributed tracing system, this time just for Scala. Heavily relies upon Cats and Cats Effect.
Compatible with OpenTelemetry and Jaeger, based on, and interoperates with Natchez.
0.14.0
It increasingly seems that Java tracing libraries are dependent on gRPC, which usually brings along lots of other dependencies. You may find Trace4Cats useful if you want to...
native-image
using GraalVM
Trace4Cats supports publishing spans to the following systems:
Instrumentation for trace propagation and continuation is available for the following libraries:
Unlike other tracing libraries, trace attributes are lazily evaluated. If a span is not sampled, no computation associated with calculating attribute values will be performed.
More information on how to use these can be found in the examples documentation.
For more see the documentation and more advanced examples.
Add the following dependencies to your build.sbt
:
"io.janstenpickle" %% "trace4cats-core" % "0.14.0"
"io.janstenpickle" %% "trace4cats-avro-exporter" % "0.14.0"
Then run the collector in span logging mode:
echo "log-spans: true" > /tmp/collector.yaml
docker run -p7777:7777 -p7777:7777/udp -it \
-v /tmp/collector.yaml:/tmp/collector.yaml \
janstenpickle/trace4cats-collector-lite:0.14.0 \
--config-file=/tmp/collector.yaml
Finally, run the following code to export some spans to the collector:
import cats.Monad
import cats.data.Kleisli
import cats.effect._
import cats.effect.std.Console
import cats.implicits._
import trace4cats._
import trace4cats.avro.AvroSpanCompleter
import scala.concurrent.duration._
object Trace4CatsQuickStart extends IOApp.Simple {
def entryPoint[F[_]: Async](process: TraceProcess): Resource[F, EntryPoint[F]] =
AvroSpanCompleter.udp[F](process, config = CompleterConfig(batchTimeout = 50.millis)).map { completer =>
EntryPoint[F](SpanSampler.always[F], completer)
}
def runF[F[_]: Monad: Console: Trace]: F[Unit] =
for {
_ <- Trace[F].span("span1")(Console[F].println("trace this operation"))
_ <- Trace[F].span("span2", SpanKind.Client)(Console[F].println("send some request"))
_ <- Trace[F].span("span3", SpanKind.Client)(
Trace[F].putAll("attribute1" -> "test", "attribute2" -> 200) >>
Trace[F].setStatus(SpanStatus.Cancelled)
)
} yield ()
def run: IO[Unit] =
entryPoint[IO](TraceProcess("trace4cats")).use { ep =>
ep.root("this is the root span").use { span =>
runF[Kleisli[IO, Span[IO], *]].run(span)
}
}
}
0.14.0
Version 0.14.0
introduced a reworked module and package structure that reduced the number of dependencies and imports
required to get started quickly. Effectively import trace4cats._
is all you should need to import throughout most of
your codebase.
See the migration guide for information on how to migrate.
Trace4Cats is separated into a few repositories:
trace4cats-avro
Avro codecs, TCP/UDP server and exportertrace4cats-avro-kafka
Avro Kafka exporter and consumertrace4cats-cloudtrace
Google Cloud Trace exporterstrace4cats-components
standalone Trace4Cats
components
trace4cats-datadog
Datadog exporterstrace4cats-docs
documentation and examplestrace4cats-dynamic-extras
extra utilities for dynamically
configuring Trace4Catstrace4cats-exporter-http
HTTP span exportertrace4cats-http4s
Http4s client and server integrationstrace4cats-jaeger
Jaeger exporterstrace4cats-jaeger-integration-test
Integration
test for exporters to Jaeger
trace4cats-kafka
FS2 Kafka integrationstrace4cats-natchez
Natchez integrationstrace4cats-newrelic
New Relic exporterstrace4cats-opentelemetry
OpenTelemetry exporterstrace4cats-sttp
Sttp client and Tapir integrationstrace4cats-tail-sampling-extras
extra utilities for
tail samplingtrace4cats-zipkin
Zipkin exporterstrace4cats-zio
ZIO implementations of Trace4Cats typeclassesTrace4Cats is made up as both a set of libraries for integration in applications and standalone processes. For information on the libraries and interfaces see the design documentation.
The standalone components are the agent and the collector. To see how they work together, see the topologies documentation, for information on configuring and running the agent and collector see the components documentation.
The source code for these components is located in the
trace4cats-components
repository.
To use Trace4Cats within your application add the dependencies listed below as needed:
"io.janstenpickle" %% "trace4cats-core" % "0.14.0"
"io.janstenpickle" %% "trace4cats-rate-sampling" % "0.14.0"
"io.janstenpickle" %% "trace4cats-fs2" % "0.14.0"
"io.janstenpickle" %% "trace4cats-http4s-client" % "0.14.0"
"io.janstenpickle" %% "trace4cats-http4s-server" % "0.14.0"
"io.janstenpickle" %% "trace4cats-sttp-client3" % "0.14.0"
"io.janstenpickle" %% "trace4cats-sttp-tapir" % "0.14.0"
"io.janstenpickle" %% "trace4cats-natchez" % "0.14.0"
"io.janstenpickle" %% "trace4cats-avro-exporter" % "0.14.0"
"io.janstenpickle" %% "trace4cats-avro-kafka-exporter" % "0.14.0"
"io.janstenpickle" %% "trace4cats-avro-kafka-consumer" % "0.14.0"
"io.janstenpickle" %% "trace4cats-jaeger-thrift-exporter" % "0.14.0"
"io.janstenpickle" %% "trace4cats-opentelemetry-otlp-grpc-exporter" % "0.14.0"
"io.janstenpickle" %% "trace4cats-opentelemetry-otlp-http-exporter" % "0.14.0"
"io.janstenpickle" %% "trace4cats-opentelemetry-jaeger-exporter" % "0.14.0"
"io.janstenpickle" %% "trace4cats-stackdriver-grpc-exporter" % "0.14.0"
"io.janstenpickle" %% "trace4cats-stackdriver-http-exporter" % "0.14.0"
"io.janstenpickle" %% "trace4cats-datadog-http-exporter" % "0.14.0"
"io.janstenpickle" %% "trace4cats-newrelic-http-exporter" % "0.14.0"
"io.janstenpickle" %% "trace4cats-zipkin-http-exporter" % "0.14.0"
native-image
CompatibilityThe following span completers have been found to be compatible with native-image
:
This project supports the Scala Code of Conduct and aims that its channels (mailing list, Gitter, github, etc.) to be welcoming environments for everyone.