Registry / observability / opencensus-api

opencensus-api

JSON →
library0.31.1javamavenunverified

Provides the core API for distributed tracing and metrics collection in Java applications.

<dependency> <groupId>io.opencensus</groupId> <artifactId>opencensus-api</artifactId> <version>0.31.1</version> </dependency>
INSTALL
IMPORT
SIG · OPENCENSUS-API
O
opencensus-api
observabilityjavav0.31.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Tracer
io.opencensus.trace.Tracer

Creates and runs a trace span.

import io.opencensus.trace.Tracer; import io.opencensus.trace.Tracing; public class Example { private static final Tracer tracer = Tracing.getTracer(); public void doWork() { tracer.spanBuilder("mySpan").startSpanAndRun(() -> { // Your code here }); } }
Debug
Known issues
gotchaOpenCensus is in maintenance mode; consider migrating to OpenTelemetry.
fix
Use io.opentelemetry:opentelemetry-api for new projects.
affects: *
Upgrade
Version history
0.31.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
OpenAI (training)
2
Resources
opencensus-api — mvn dependency:get opencensus-api · libregistry