Skip to content

Commit

Permalink
rename JCW
Browse files Browse the repository at this point in the history
  • Loading branch information
AS-AlStar committed Aug 6, 2021
1 parent 5b9ae97 commit ce16024
Show file tree
Hide file tree
Showing 21 changed files with 281 additions and 307 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
jaeger-client-wrapper (0.1.0)
jcw (0.1.0)
activerecord-opentracing (~> 0.3.1)
activesupport (>= 5.0)
httprb-opentracing (~> 0.4.0)
Expand Down Expand Up @@ -197,7 +197,7 @@ DEPENDENCIES
bundler-audit
http
http-parser
jaeger-client-wrapper!
jcw!
pry
railties
rake
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Jaeger::Client::Wrapper · [![Supporting](https://github.com/Cado-Labs/cado-labs-logos/blob/main/cado_labs_badge.png)](https://github.com/Cado-Labs/) · [![Coverage Status](https://coveralls.io/repos/github/Cado-Labs/jaeger-client-wrapper/badge.svg?branch=gem-without-zeitwerk)](https://coveralls.io/github/Cado-Labs/jaeger-client-wrapper?branch=gem-without-zeitwerk)
# JCW · [![Supporting](https://github.com/Cado-Labs/cado-labs-logos/blob/main/cado_labs_badge.png)](https://github.com/Cado-Labs/) · [![Coverage Status](https://coveralls.io/repos/github/Cado-Labs/jcw/badge.svg?branch=gem-without-zeitwerk)](https://coveralls.io/github/Cado-Labs/jcw?branch=gem-without-zeitwerk)

Simple wrapper for the gem "jaeger-client" with simpler customization.

Expand All @@ -15,17 +15,17 @@ Simple wrapper for the gem "jaeger-client" with simpler customization.
## Installation

```ruby
gem 'jaeger-client-wrapper'
gem 'jcw'
```

```shell
bundle install
# --- or ---
gem install jaeger-client-wrapper
gem install jcw
```

```ruby
require 'jaeger_client_wrapper'
require 'jcw'
```

## Usage
Expand All @@ -34,7 +34,7 @@ Create new initializer for your rails app:

UDP Sender(default):
```ruby
::Jaeger::Client::Wrapper.configure do |config|
::JCW::Wrapper.configure do |config|
config.service_name = "Service name"
config.connection = { protocol: :udp, host: "127.0.0.1", port: 6831 }
config.enabled = true
Expand All @@ -49,7 +49,7 @@ end

TCP Sender:
```ruby
::Jaeger::Client::Wrapper.configure do |config|
::JCW::Wrapper.configure do |config|
config.service_name = "Service name"
config.enabled = true
config.subscribe_to = %w[process_action.action_controller start_processing.action_controller] # set ActiveSupport::Notifications namespaces
Expand All @@ -66,7 +66,7 @@ end

### Contributing

- Fork it ( https://github.com/Cado-Labs/jaeger-client-wrapper )
- Fork it ( https://github.com/Cado-Labs/jcw )
- Create your feature branch (`git checkout -b feature/my-new-feature`)
- Commit your changes (`git commit -am '[feature_context] Add some feature'`)
- Push to the branch (`git push origin feature/my-new-feature`)
Expand Down
2 changes: 1 addition & 1 deletion bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

require 'bundler/setup'
require 'jaeger/client/wrapper'
require 'jcw/wrapper'

require 'irb'
IRB.start(__FILE__)
10 changes: 5 additions & 5 deletions jaeger-client-wrapper.gemspec → jcw.gemspec
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# frozen_string_literal: true

require_relative "lib/jaeger/client/wrapper/version"
require_relative "lib/jcw/version"

Gem::Specification.new do |spec|
spec.name = "jaeger-client-wrapper"
spec.version = Jaeger::Client::Wrapper::VERSION
spec.name = "jcw"
spec.version = JCW::VERSION
spec.authors = ["Alexander Starovojtov"]
spec.email = ["starovojtov.alexander@gmail.com"]

spec.summary = "Wrapper for jaeger-client"
spec.description = 'Wrapper for the gem "jaeger-client" with simpler customization.'
spec.homepage = "https://github.com/Cado-Labs/jaeger-client-wrapper"
spec.description = 'Wrapper for the gem "jcw" with simpler customization.'
spec.homepage = "https://github.com/Cado-Labs/jcw"
spec.license = "MIT"
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")

Expand Down
25 changes: 0 additions & 25 deletions lib/jaeger/client/wrapper.rb

This file was deleted.

54 changes: 0 additions & 54 deletions lib/jaeger/client/wrapper/config.rb

This file was deleted.

59 changes: 0 additions & 59 deletions lib/jaeger/client/wrapper/http_tracer.rb

This file was deleted.

89 changes: 0 additions & 89 deletions lib/jaeger/client/wrapper/init.rb

This file was deleted.

30 changes: 0 additions & 30 deletions lib/jaeger/client/wrapper/subscriber.rb

This file was deleted.

21 changes: 0 additions & 21 deletions lib/jaeger/client/wrapper/tracing.rb

This file was deleted.

9 changes: 0 additions & 9 deletions lib/jaeger/client/wrapper/version.rb

This file was deleted.

0 comments on commit ce16024

Please sign in to comment.