Sha256: da9f3a5aca82a78d21636131f9eaa98ed6123183777b84411d3809633d292e30
Contents?: true
Size: 638 Bytes
Versions: 1
Compression:
Stored size: 638 Bytes
Contents
# Utrace A framework runs on a variety of trace tools and provides unified interface. ## Installation Add this line to your application's Gemfile: ```ruby gem 'utrace' ``` And then execute: $ bundle Or install it yourself as: $ gem install utrace ## Usage Pick a trace tool: ```ruby # none by default Utrace.instance = Utrace::None.new # opentelemetry Utrace.instance = Utrace::Otel.new ``` Make instrumentation ```ruby Utrace.new_span('slow-query') do Utrace.add_attrs({user_id: 123}) Utrace.log_event('step-1-start') # ... Utrace.log_event('step-2-start') # ... rescue => e Utrace.log_error(e) end ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
utrace-0.2.0 | README.md |