{"id":13761641,"url":"https://github.com/census-ecosystem/opencensus-scala","last_synced_at":"2025-05-10T14:30:35.389Z","repository":{"id":56323739,"uuid":"125622365","full_name":"census-ecosystem/opencensus-scala","owner":"census-ecosystem","description":"A scala wrapper for the opencensus-java library","archived":true,"fork":false,"pushed_at":"2021-01-29T16:32:07.000Z","size":1480,"stargazers_count":52,"open_issues_count":57,"forks_count":19,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-16T20:30:44.662Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","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/census-ecosystem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-17T11:26:08.000Z","updated_at":"2024-03-21T17:33:00.000Z","dependencies_parsed_at":"2022-08-15T16:40:30.385Z","dependency_job_id":null,"html_url":"https://github.com/census-ecosystem/opencensus-scala","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/census-ecosystem%2Fopencensus-scala","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/census-ecosystem%2Fopencensus-scala/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/census-ecosystem%2Fopencensus-scala/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/census-ecosystem%2Fopencensus-scala/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/census-ecosystem","download_url":"https://codeload.github.com/census-ecosystem/opencensus-scala/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253428177,"owners_count":21906863,"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":[],"created_at":"2024-08-03T14:00:20.903Z","updated_at":"2025-05-10T14:30:35.054Z","avatar_url":"https://github.com/census-ecosystem.png","language":"Scala","funding_links":[],"categories":["Integrations"],"sub_categories":["Java"],"readme":"[![Build Status](https://travis-ci.org/census-ecosystem/opencensus-scala.svg?branch=master)](https://travis-ci.org/census-ecosystem/opencensus-scala)\n# opencensus-scala\nThis project is a lightweight scala wrapper for the \n[opencensus-java](https://github.com/census-instrumentation/opencensus-java) library \nand provides instrumentation for scala based frameworks.\n\nThe API documentation can be found [here](https://census-ecosystem.github.io/opencensus-scala/api/).\n\n## Implementation status\n\nOpencensus-scala supports the tracing and stats apis of opencensus.\n\n### Instrumentations\n|Framework|Tracing    |Stats    |\n|---------|-----------|---------|\n|Akka HTTP|supported  |planned  |\n|Http4s   |supported  |planned  |\n|Elastic4s|supported  |planned  |\n|Play     |planned    |planned  |\n\n\n## Quickstart\n### Dependencies\nAdd the following dependencies to your sbt project.\n\n```scala\n// If you want to use only the core module\n\"com.github.sebruck\" %% \"opencensus-scala-core\" % \"0.7.2\"\n\n// Dependent on the trace exporters you want to use add one or more of the following\n\"io.opencensus\" % \"opencensus-exporter-trace-stackdriver\" % \"0.25.0\"\n\"io.opencensus\" % \"opencensus-exporter-trace-logging\"     % \"0.25.0\"\n\"io.opencensus\" % \"opencensus-exporter-trace-instana\"     % \"0.25.0\"\n\"io.opencensus\" % \"opencensus-exporter-trace-zipkin\"      % \"0.25.0\"\n\n// If you want to use opencensus-scala inside an Akka HTTP project \n\"com.github.sebruck\" %% \"opencensus-scala-akka-http\" % \"0.7.2\"\n\n// If you want to use opencensus-scala inside a http4s project \n\"com.github.sebruck\" %% \"opencensus-scala-http4s\" % \"0.7.2\"\n\n// If you want to use opencensus-scala inside a elastic4s project \n\"com.github.sebruck\" %% \"opencensus-scala-elastic4s\" % \"0.7.2\"\n```\n\n### Configuration\nopencensus-scala uses [typesafe config](https://github.com/lightbend/config) to configure exporters,\nsampling rates and many more. For a full reference have a look at \n[the default configuration](core/src/main/resources/reference.conf).\n\nTo activate the Stackdriver trace exporter with the default sampling rate of 1/10000 add the following \nto your application.conf.\n```\nopencensus-scala {\n  trace {\n    exporters {\n      stackdriver {\n        enabled = true \n        project-id = \"MY-GC-Project\"\n      }\n    }\n  }\n}\n```\n\nFor documentation how to use the several modules, have a look at the [modules](#modules) section.\n\n## Modules\n\n### Core\nUtilities to use opencensus in a scala idiomatic way.\n\nLearn more at the [documentation](core/README.md).\n\n### Akka HTTP\nUtilities to use opencensus in [Akka HTTP](https://github.com/akka/akka-http) applications. \n\nLearn more at the [documentation](akka-http/README.md).\n\n### http4s \nUtilities to use opencensus in [http4s](https://github.com/http4s/http4s) applications. \n\nLearn more at the [documentation](http4s/README.md).\n\n### doobie \nUtilities to use opencensus in [doobie](https://github.com/tpolecat/doobie) applications. \n\nLearn more at the [documentation](doobie/README.md).\n\n### elastic4s \nUtilities to use opencensus in [elastic4s](https://github.com/sksamuel/elastic4s) applications. \n\nLearn more at the [documentation](elastic4s/README.md).\n\n## Contributing\nContributions are very welcome! As a starting point, have a look at the open issues. \n\nPlease also check the [CONTRIBUTION.md](CONTRIBUTION.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcensus-ecosystem%2Fopencensus-scala","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcensus-ecosystem%2Fopencensus-scala","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcensus-ecosystem%2Fopencensus-scala/lists"}