{"id":16486876,"url":"https://github.com/tendant/clj-telemetry","last_synced_at":"2025-03-21T07:31:12.303Z","repository":{"id":62435289,"uuid":"266243856","full_name":"tendant/clj-telemetry","owner":"tendant","description":"A Clojure library designed to wrap OpenTelemetry Java API(https://github.com/open-telemetry/opentelemetry-java)","archived":false,"fork":false,"pushed_at":"2020-12-22T07:36:10.000Z","size":29,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T22:39:15.705Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tendant.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-05-23T01:54:21.000Z","updated_at":"2024-09-28T11:03:07.000Z","dependencies_parsed_at":"2022-11-01T21:02:33.529Z","dependency_job_id":null,"html_url":"https://github.com/tendant/clj-telemetry","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tendant%2Fclj-telemetry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tendant%2Fclj-telemetry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tendant%2Fclj-telemetry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tendant%2Fclj-telemetry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tendant","download_url":"https://codeload.github.com/tendant/clj-telemetry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244757547,"owners_count":20505417,"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-10-11T13:31:01.798Z","updated_at":"2025-03-21T07:31:12.034Z","avatar_url":"https://github.com/tendant.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clj-telemetry\n\nA Clojure library designed to wrap [OpenTelemetry Java API](https://github.com/open-telemetry/opentelemetry-java).\n\n## Usage\n\n```clj\n[clj-telemetry \"0.2.2\"]\n```\n\n1. Setup tracer\n\n```\n  (def exporter (build-exporter-jaeger \"test-service-name\" \"localhost\" \"14250\"))\n  (def span-processor (build-simple-span-processor exporter))\n  (def open-telemetry (init-open-telemetry exporter))\n  (def tracer (get-tracer open-telemetry \"test.tracing\"))\n```\n\n2. Create span\n\n```\n(import [telemetry.tracing :as tracing])\n\n(def span-1 (tracing/create-span tracer))\n\n(tracing/add-event span-1 \"1. first event\")\n(tracing/add-event span-1 \"1. second event\")\n\n(tracing/end-span span-1)\n```\n\n\n\n## References\n\nhttps://github.com/open-telemetry/opentelemetry-java/blob/master/QUICKSTART.md\n\nTracing:\n\nhttps://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/api.md#obtaining-a-tracer\n\nAPI Doc:\nhttps://javadoc.io/doc/io.opentelemetry/opentelemetry-api/latest/index.html\n\nJaeger example:\nhttps://github.com/open-telemetry/opentelemetry-java/tree/master/examples/jaeger\n\n## License\n\nCopyright © 2020 FIXME\n\nThis program and the accompanying materials are made available under the\nterms of the Eclipse Public License 2.0 which is available at\nhttp://www.eclipse.org/legal/epl-2.0.\n\nThis Source Code may also be made available under the following Secondary\nLicenses when the conditions for such availability set forth in the Eclipse\nPublic License, v. 2.0 are satisfied: GNU General Public License as published by\nthe Free Software Foundation, either version 2 of the License, or (at your\noption) any later version, with the GNU Classpath Exception which is available\nat https://www.gnu.org/software/classpath/license.html.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftendant%2Fclj-telemetry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftendant%2Fclj-telemetry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftendant%2Fclj-telemetry/lists"}