{"id":18000155,"url":"https://github.com/michael-michalski/opencensus_patterns","last_synced_at":"2025-10-03T19:34:19.860Z","repository":{"id":62430176,"uuid":"222028904","full_name":"michael-michalski/opencensus_patterns","owner":"michael-michalski","description":"Syntactic sugar for tracing","archived":false,"fork":false,"pushed_at":"2020-02-03T20:28:04.000Z","size":1314,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T19:14:24.518Z","etag":null,"topics":["elixir","opencensus"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michael-michalski.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":"2019-11-16T01:18:00.000Z","updated_at":"2020-02-03T20:28:06.000Z","dependencies_parsed_at":"2022-11-01T20:10:07.583Z","dependency_job_id":null,"html_url":"https://github.com/michael-michalski/opencensus_patterns","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-michalski%2Fopencensus_patterns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-michalski%2Fopencensus_patterns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-michalski%2Fopencensus_patterns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-michalski%2Fopencensus_patterns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michael-michalski","download_url":"https://codeload.github.com/michael-michalski/opencensus_patterns/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247142043,"owners_count":20890652,"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":["elixir","opencensus"],"created_at":"2024-10-29T23:09:54.837Z","updated_at":"2025-10-03T19:34:19.753Z","avatar_url":"https://github.com/michael-michalski.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenCensus Patterns\n\n![Hex.pm](https://img.shields.io/hexpm/v/opencensus_patterns.svg)\n\nUtility functions for avoiding an entanglement ofbusiness logic and tracing.\n\n## How to use\n\nExample of tracing a phoenix endpoint.\n```elixir\n# Top level function uses the trace keyword, and .\ntrace home(conn, params), ctx do\n  IO.puts \"I am a top level function call.\"\n\n  # Dumps the structure as an annotation\n  annotate(params, ctx)\n\n  # Call the nested function\n  utility(conn, params, ctx)\nend\n\n# Consecutive tracing is done with the ntrace keyword,\n# and the last parameter is the parent context.\nntrace utility(conn, params, parent_ctx), ctx do\n  IO.puts \"I am nested\"\nend\n```\n\n## Installation\n\nThe package is [available in Hex](https://hex.pm/docs/publish), and can be installed\nby adding `opencensus_patterns` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:opencensus_patterns, \"~\u003e 0.2.0\"}\n  ]\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichael-michalski%2Fopencensus_patterns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichael-michalski%2Fopencensus_patterns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichael-michalski%2Fopencensus_patterns/lists"}