Skip to content

Commit a20c7ce

Browse files
authored
docs: Standardize toplevel docs structure and readme (open-telemetry#418)
1 parent eaa06e1 commit a20c7ce

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+322
-22
lines changed

api/.yardopts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
--no-private
22
--title=OpenTelemetry API
33
--markup=markdown
4-
--main=OVERVIEW.md
4+
--main=README.md
55
./lib/opentelemetry/**/*.rb
66
./lib/opentelemetry.rb
77
-
8-
OVERVIEW.md
8+
README.md
99
CHANGELOG.md

api/OVERVIEW.md api/README.md

File renamed without changes.

exporter/jaeger/.yardopts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
--no-private
22
--title=OpenTelemetry Jaeger Exporter
33
--markup=markdown
4-
--main=OVERVIEW.md
4+
--main=README.md
55
./lib/opentelemetry/exporter/jaeger/**/*.rb
66
./lib/opentelemetry/exporter/jaeger.rb
77
-
8-
OVERVIEW.md
8+
README.md
99
CHANGELOG.md

exporter/otlp/.yardopts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
--no-private
22
--title=OpenTelemetry OTLP Exporter
33
--markup=markdown
4-
--main=OVERVIEW.md
4+
--main=README.md
55
./lib/opentelemetry/exporter/otlp/**/*.rb
66
./lib/opentelemetry/exporter/otlp.rb
77
-
8-
OVERVIEW.md
8+
README.md
99
CHANGELOG.md

instrumentation/all/.yardopts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--no-private
2+
--title=OpenTelemetry Instrumentation All-in-one
3+
--markup=markdown
4+
--main=README.md
5+
./lib/opentelemetry/instrumentation/all/**/*.rb
6+
./lib/opentelemetry/instrumentation/all.rb
7+
-
8+
README.md
9+
CHANGELOG.md

instrumentation/all/lib/opentelemetry/instrumentation/all.rb

+6
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
require 'opentelemetry-instrumentation-sidekiq'
1717
require 'opentelemetry-instrumentation-sinatra'
1818

19+
# OpenTelemetry is an open source observability framework, providing a
20+
# general-purpose API, SDK, and related tools required for the instrumentation
21+
# of cloud-native software, frameworks, and libraries.
22+
#
23+
# The OpenTelemetry module provides global accessors for telemetry objects.
24+
# See the documentation for the `opentelemetry-api` gem for details.
1925
module OpenTelemetry
2026
module Instrumentation
2127
# Namespace for the Opentelemetry all-in-one gem

instrumentation/all/opentelemetry-instrumentation-all.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
2222

2323
spec.files = ::Dir.glob('lib/**/*.rb') +
2424
::Dir.glob('*.md') +
25-
['LICENSE']
25+
['LICENSE', '.yardopts']
2626
spec.require_paths = ['lib']
2727
spec.required_ruby_version = '>= 2.5.0'
2828

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--no-private
2+
--title=OpenTelemetry Concurrent Ruby Instrumentation
3+
--markup=markdown
4+
--main=README.md
5+
./lib/opentelemetry/instrumentation/**/*.rb
6+
./lib/opentelemetry/instrumentation.rb
7+
-
8+
README.md
9+
CHANGELOG.md

instrumentation/concurrent_ruby/lib/opentelemetry/instrumentation.rb

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
#
55
# SPDX-License-Identifier: Apache-2.0
66

7+
# OpenTelemetry is an open source observability framework, providing a
8+
# general-purpose API, SDK, and related tools required for the instrumentation
9+
# of cloud-native software, frameworks, and libraries.
10+
#
11+
# The OpenTelemetry module provides global accessors for telemetry objects.
12+
# See the documentation for the `opentelemetry-api` gem for details.
713
module OpenTelemetry
814
# "Instrumentation" are specified by
915
# https://github.com/open-telemetry/opentelemetry-specification/blob/784635d01d8690c8f5fcd1f55bdbc8a13cf2f4f2/specification/glossary.md#instrumentation-library

instrumentation/concurrent_ruby/opentelemetry-instrumentation-concurrent_ruby.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
2121

2222
spec.files = ::Dir.glob('lib/**/*.rb') +
2323
::Dir.glob('*.md') +
24-
['LICENSE']
24+
['LICENSE', '.yardopts']
2525
spec.require_paths = ['lib']
2626
spec.required_ruby_version = '>= 2.5.0'
2727

instrumentation/dalli/.yardopts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--no-private
2+
--title=OpenTelemetry Dalli Instrumentation
3+
--markup=markdown
4+
--main=README.md
5+
./lib/opentelemetry/instrumentation/**/*.rb
6+
./lib/opentelemetry/instrumentation.rb
7+
-
8+
README.md
9+
CHANGELOG.md

instrumentation/dalli/README.md

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# OpenTelemetry Dalli Instrumentation
2+
3+
The OpenTelemetry Dalli gem is a community maintained instrumentation for the [Dalli][dalli-home] Memcache client.
4+
5+
## How do I get started?
6+
7+
Install the gem using:
8+
9+
```
10+
gem install opentelemetry-instrumentation-dalli
11+
```
12+
13+
Or, if you use [bundler][bundler-home], include `opentelemetry-instrumentation-dalli` in your `Gemfile`.
14+
15+
## Usage
16+
17+
To install the instrumentation, call `use` with the name of the instrumentation.
18+
19+
```ruby
20+
OpenTelemetry::SDK.configure do |c|
21+
c.use 'OpenTelemetry::Instrumentation::Dalli'
22+
end
23+
```
24+
25+
Alternatively, you can also call `use_all` to install all the available instrumentation.
26+
27+
```ruby
28+
OpenTelemetry::SDK.configure do |c|
29+
c.use_all
30+
end
31+
```
32+
33+
## How can I get involved?
34+
35+
The `opentelemetry-instrumentation-dalli` gem source is [on github][repo-github], along with related gems including `opentelemetry-api` and `opentelemetry-sdk`.
36+
37+
The OpenTelemetry Ruby gems are maintained by the OpenTelemetry-Ruby special interest group (SIG). You can get involved by joining us on our [gitter channel][ruby-gitter] or attending our weekly meeting. See the [meeting calendar][community-meetings] for dates and times. For more information on this and other language SIGs, see the OpenTelemetry [community page][ruby-sig].
38+
39+
## License
40+
41+
Apache 2.0 license. See [LICENSE][license-github] for more information.
42+
43+
[dalli-home]: https://github.com/petergoldstein/dalli
44+
[bundler-home]: https://bundler.io
45+
[repo-github]: https://github.com/open-telemetry/opentelemetry-ruby
46+
[license-github]: https://github.com/open-telemetry/opentelemetry-ruby/blob/master/LICENSE
47+
[ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
48+
[community-meetings]: https://github.com/open-telemetry/community#community-meetings
49+
[ruby-gitter]: https://gitter.im/open-telemetry/opentelemetry-ruby

instrumentation/dalli/lib/opentelemetry/instrumentation.rb

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
#
55
# SPDX-License-Identifier: Apache-2.0
66

7+
# OpenTelemetry is an open source observability framework, providing a
8+
# general-purpose API, SDK, and related tools required for the instrumentation
9+
# of cloud-native software, frameworks, and libraries.
10+
#
11+
# The OpenTelemetry module provides global accessors for telemetry objects.
12+
# See the documentation for the `opentelemetry-api` gem for details.
713
module OpenTelemetry
814
# "Instrumentation" are specified by
915
# https://github.com/open-telemetry/opentelemetry-specification/blob/784635d01d8690c8f5fcd1f55bdbc8a13cf2f4f2/specification/glossary.md#instrumentation-library

instrumentation/dalli/opentelemetry-instrumentation-dalli.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
2121

2222
spec.files = ::Dir.glob('lib/**/*.rb') +
2323
::Dir.glob('*.md') +
24-
['LICENSE']
24+
['LICENSE', '.yardopts']
2525
spec.require_paths = ['lib']
2626
spec.required_ruby_version = '>= 2.5.0'
2727

instrumentation/ethon/.yardopts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--no-private
2+
--title=OpenTelemetry Ethon Instrumentation
3+
--markup=markdown
4+
--main=README.md
5+
./lib/opentelemetry/instrumentation/**/*.rb
6+
./lib/opentelemetry/instrumentation.rb
7+
-
8+
README.md
9+
CHANGELOG.md

instrumentation/ethon/lib/opentelemetry/instrumentation.rb

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
#
55
# SPDX-License-Identifier: Apache-2.0
66

7+
# OpenTelemetry is an open source observability framework, providing a
8+
# general-purpose API, SDK, and related tools required for the instrumentation
9+
# of cloud-native software, frameworks, and libraries.
10+
#
11+
# The OpenTelemetry module provides global accessors for telemetry objects.
12+
# See the documentation for the `opentelemetry-api` gem for details.
713
module OpenTelemetry
814
# "Instrumentation" are specified by
915
# https://github.com/open-telemetry/opentelemetry-specification/blob/784635d01d8690c8f5fcd1f55bdbc8a13cf2f4f2/specification/glossary.md#instrumentation-library

instrumentation/ethon/opentelemetry-instrumentation-ethon.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
2121

2222
spec.files = ::Dir.glob('lib/**/*.rb') +
2323
::Dir.glob('*.md') +
24-
['LICENSE']
24+
['LICENSE', '.yardopts']
2525
spec.require_paths = ['lib']
2626
spec.required_ruby_version = '>= 2.5.0'
2727

instrumentation/excon/.yardopts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--no-private
2+
--title=OpenTelemetry Excon Instrumentation
3+
--markup=markdown
4+
--main=README.md
5+
./lib/opentelemetry/instrumentation/**/*.rb
6+
./lib/opentelemetry/instrumentation.rb
7+
-
8+
README.md
9+
CHANGELOG.md

instrumentation/excon/lib/opentelemetry/instrumentation.rb

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
#
55
# SPDX-License-Identifier: Apache-2.0
66

7+
# OpenTelemetry is an open source observability framework, providing a
8+
# general-purpose API, SDK, and related tools required for the instrumentation
9+
# of cloud-native software, frameworks, and libraries.
10+
#
11+
# The OpenTelemetry module provides global accessors for telemetry objects.
12+
# See the documentation for the `opentelemetry-api` gem for details.
713
module OpenTelemetry
814
# "Instrumentation" are specified by
915
# https://github.com/open-telemetry/opentelemetry-specification/blob/784635d01d8690c8f5fcd1f55bdbc8a13cf2f4f2/specification/glossary.md#instrumentation-library

instrumentation/excon/opentelemetry-instrumentation-excon.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
2121

2222
spec.files = ::Dir.glob('lib/**/*.rb') +
2323
::Dir.glob('*.md') +
24-
['README.md', 'LICENSE']
24+
['LICENSE', '.yardopts']
2525
spec.require_paths = ['lib']
2626
spec.required_ruby_version = '>= 2.5.0'
2727

instrumentation/faraday/.yardopts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--no-private
2+
--title=OpenTelemetry Faraday Instrumentation
3+
--markup=markdown
4+
--main=README.md
5+
./lib/opentelemetry/instrumentation/**/*.rb
6+
./lib/opentelemetry/instrumentation.rb
7+
-
8+
README.md
9+
CHANGELOG.md

instrumentation/faraday/lib/opentelemetry/instrumentation.rb

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
#
55
# SPDX-License-Identifier: Apache-2.0
66

7+
# OpenTelemetry is an open source observability framework, providing a
8+
# general-purpose API, SDK, and related tools required for the instrumentation
9+
# of cloud-native software, frameworks, and libraries.
10+
#
11+
# The OpenTelemetry module provides global accessors for telemetry objects.
12+
# See the documentation for the `opentelemetry-api` gem for details.
713
module OpenTelemetry
814
# "Instrumentation" are specified by
915
# https://github.com/open-telemetry/opentelemetry-specification/blob/784635d01d8690c8f5fcd1f55bdbc8a13cf2f4f2/specification/glossary.md#instrumentation-library

instrumentation/faraday/opentelemetry-instrumentation-faraday.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
2121

2222
spec.files = ::Dir.glob('lib/**/*.rb') +
2323
::Dir.glob('*.md') +
24-
['LICENSE']
24+
['LICENSE', '.yardopts']
2525
spec.require_paths = ['lib']
2626
spec.required_ruby_version = '>= 2.5.0'
2727

instrumentation/mysql2/.yardopts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--no-private
2+
--title=OpenTelemetry Mysql2 Instrumentation
3+
--markup=markdown
4+
--main=README.md
5+
./lib/opentelemetry/instrumentation/**/*.rb
6+
./lib/opentelemetry/instrumentation.rb
7+
-
8+
README.md
9+
CHANGELOG.md

instrumentation/mysql2/lib/opentelemetry/instrumentation.rb

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
#
55
# SPDX-License-Identifier: Apache-2.0
66

7+
# OpenTelemetry is an open source observability framework, providing a
8+
# general-purpose API, SDK, and related tools required for the instrumentation
9+
# of cloud-native software, frameworks, and libraries.
10+
#
11+
# The OpenTelemetry module provides global accessors for telemetry objects.
12+
# See the documentation for the `opentelemetry-api` gem for details.
713
module OpenTelemetry
814
# "Instrumentation" are specified by
915
# https://github.com/open-telemetry/opentelemetry-specification/blob/784635d01d8690c8f5fcd1f55bdbc8a13cf2f4f2/specification/glossary.md#instrumentation-library

instrumentation/mysql2/opentelemetry-instrumentation-mysql2.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
2121

2222
spec.files = ::Dir.glob('lib/**/*.rb') +
2323
::Dir.glob('*.md') +
24-
['LICENSE']
24+
['LICENSE', '.yardopts']
2525
spec.require_paths = ['lib']
2626
spec.required_ruby_version = '>= 2.5.0'
2727

instrumentation/net_http/.yardopts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--no-private
2+
--title=OpenTelemetry Net::HTTP Instrumentation
3+
--markup=markdown
4+
--main=README.md
5+
./lib/opentelemetry/instrumentation/**/*.rb
6+
./lib/opentelemetry/instrumentation.rb
7+
-
8+
README.md
9+
CHANGELOG.md

instrumentation/net_http/lib/opentelemetry/instrumentation.rb

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
#
55
# SPDX-License-Identifier: Apache-2.0
66

7+
# OpenTelemetry is an open source observability framework, providing a
8+
# general-purpose API, SDK, and related tools required for the instrumentation
9+
# of cloud-native software, frameworks, and libraries.
10+
#
11+
# The OpenTelemetry module provides global accessors for telemetry objects.
12+
# See the documentation for the `opentelemetry-api` gem for details.
713
module OpenTelemetry
814
# "Instrumentation" are specified by
915
# https://github.com/open-telemetry/opentelemetry-specification/blob/784635d01d8690c8f5fcd1f55bdbc8a13cf2f4f2/specification/glossary.md#instrumentation-library

instrumentation/net_http/opentelemetry-instrumentation-net_http.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
2121

2222
spec.files = ::Dir.glob('lib/**/*.rb') +
2323
::Dir.glob('*.md') +
24-
['LICENSE']
24+
['LICENSE', '.yardopts']
2525
spec.require_paths = ['lib']
2626
spec.required_ruby_version = '>= 2.5.0'
2727

instrumentation/rack/.yardopts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--no-private
2+
--title=OpenTelemetry Rack Instrumentation
3+
--markup=markdown
4+
--main=README.md
5+
./lib/opentelemetry/instrumentation/**/*.rb
6+
./lib/opentelemetry/instrumentation.rb
7+
-
8+
README.md
9+
CHANGELOG.md

instrumentation/rack/lib/opentelemetry/instrumentation.rb

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
#
55
# SPDX-License-Identifier: Apache-2.0
66

7+
# OpenTelemetry is an open source observability framework, providing a
8+
# general-purpose API, SDK, and related tools required for the instrumentation
9+
# of cloud-native software, frameworks, and libraries.
10+
#
11+
# The OpenTelemetry module provides global accessors for telemetry objects.
12+
# See the documentation for the `opentelemetry-api` gem for details.
713
module OpenTelemetry
814
# Instrumentation should be able to handle the case when the library is not installed on a user's system.
915
module Instrumentation

instrumentation/rack/opentelemetry-instrumentation-rack.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
2121

2222
spec.files = ::Dir.glob('lib/**/*.rb') +
2323
::Dir.glob('*.md') +
24-
['LICENSE']
24+
['LICENSE', '.yardopts']
2525
spec.require_paths = ['lib']
2626
spec.required_ruby_version = '>= 2.5.0'
2727

instrumentation/redis/.yardopts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--no-private
2+
--title=OpenTelemetry Redis Instrumentation
3+
--markup=markdown
4+
--main=README.md
5+
./lib/opentelemetry/instrumentation/**/*.rb
6+
./lib/opentelemetry/instrumentation.rb
7+
-
8+
README.md
9+
CHANGELOG.md

instrumentation/redis/lib/opentelemetry/instrumentation.rb

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
#
55
# SPDX-License-Identifier: Apache-2.0
66

7+
# OpenTelemetry is an open source observability framework, providing a
8+
# general-purpose API, SDK, and related tools required for the instrumentation
9+
# of cloud-native software, frameworks, and libraries.
10+
#
11+
# The OpenTelemetry module provides global accessors for telemetry objects.
12+
# See the documentation for the `opentelemetry-api` gem for details.
713
module OpenTelemetry
814
# "Instrumentation" are specified by
915
# https://github.com/open-telemetry/opentelemetry-specification/blob/784635d01d8690c8f5fcd1f55bdbc8a13cf2f4f2/specification/glossary.md#instrumentation-library

0 commit comments

Comments
 (0)