{"id":13761673,"url":"https://github.com/lightstep/lightstep-census-java","last_synced_at":"2025-12-09T21:30:14.210Z","repository":{"id":147889355,"uuid":"153128853","full_name":"lightstep/lightstep-census-java","owner":"lightstep","description":"Java exporter for OpenCensus ","archived":false,"fork":false,"pushed_at":"2020-10-14T03:42:25.000Z","size":38,"stargazers_count":0,"open_issues_count":1,"forks_count":4,"subscribers_count":71,"default_branch":"master","last_synced_at":"2024-12-29T06:46:30.316Z","etag":null,"topics":["opencensus"],"latest_commit_sha":null,"homepage":"https://lightstep.com","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lightstep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-10-15T14:33:27.000Z","updated_at":"2020-12-19T19:55:59.000Z","dependencies_parsed_at":"2023-05-27T20:15:40.172Z","dependency_job_id":null,"html_url":"https://github.com/lightstep/lightstep-census-java","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightstep%2Flightstep-census-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightstep%2Flightstep-census-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightstep%2Flightstep-census-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightstep%2Flightstep-census-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lightstep","download_url":"https://codeload.github.com/lightstep/lightstep-census-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239671290,"owners_count":19677870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["opencensus"],"created_at":"2024-08-03T14:00:21.898Z","updated_at":"2025-12-09T21:30:14.156Z","avatar_url":"https://github.com/lightstep.png","language":"Java","funding_links":[],"categories":["Exporters"],"sub_categories":["Java"],"readme":"[![Circle CI](https://circleci.com/gh/lightstep/lightstep-census-java.svg?style=shield)](https://circleci.com/gh/lightstep/lightstep-census-java) [![Released Version][maven-img]][maven] [![Apache-2.0 license](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\n# LightStep OpenCensus Trace Exporter\n\nThe LightStep OpenCensus Trace Exporter is a trace exporter that exports data to LightStep.\n\n## Installation\n\npom.xml\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.lightstep.opencensus\u003c/groupId\u003e\n    \u003cartifactId\u003elightstep-opencensus-exporter\u003c/artifactId\u003e\n    \u003cversion\u003eVERSION\u003c/version\u003e\n\u003c/dependency\u003e\n\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.opencensus\u003c/groupId\u003e\n    \u003cartifactId\u003eopencensus-impl\u003c/artifactId\u003e\n    \u003cversion\u003e0.19.0\u003c/version\u003e\n    \u003cscope\u003eruntime\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n\nAlso add dependencies required for LightStep tracer\n\n## Usage\n\n### Initialization\n```java\n// Instantiate LightStep tracer\nJRETracer jreTracer = ... \n\n// Register the exporter\nLightStepTraceExporter.createAndRegister(jreTracer);\n\n// Optionally configure 100% sample rate, otherwise, few traces will be sampled\nTraceConfig traceConfig = Tracing.getTraceConfig();\n    traceConfig.updateActiveTraceParams(\n        traceConfig.getActiveTraceParams()\n            .toBuilder()\n            .setSampler(Samplers.probabilitySampler(1))\n            .build());\n```\n\n### Shutdown\n```java\n// To shutdown the exporter\nTracing.getExportComponent().shutdown();\n\n// Close the tracer, so that it'll flush queued traces\njreTracer.close();\n```\n\n### Example\n\nThere is an [example](./example) which demonstrate basic usage of the exporter. \n\n## License\n\n[Apache 2.0 License](./LICENSE).\n\n[maven-img]: https://img.shields.io/maven-central/v/com.lightstep.opencensus/lightstep-opencensus-exporter.svg\n[maven]: http://search.maven.org/#search%7Cga%7C1%7Clightstep-opencensus-exporter  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightstep%2Flightstep-census-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightstep%2Flightstep-census-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightstep%2Flightstep-census-java/lists"}