logstash-output-opentelemetry 0.1.0 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3faf056e0f0b56002ed3453f449b2ad6c7b36a0825bde7651db839cf2069fbfb
4
- data.tar.gz: 12be3ee21fa3e81ab0a32a94ee98db6cbb89d348bcf3290c27434ece1c7146b9
3
+ metadata.gz: 89ad30cc045078d614b0c83eccd771288d7d14cc8dcab0d2f19c4abd4fc40ce3
4
+ data.tar.gz: bec828850ff074c8d29aa9d21d7bc593aed5f2c6b2fef2a96fe19946d92b6975
5
5
  SHA512:
6
- metadata.gz: f338edeb91aaf5688a352fa30eddb0b2bc18fda05c58d0035554fef898380415251b6bc8b5d644c7a9e9317b34746c38b78a0ff95d47dd0449031e6acaf4772f
7
- data.tar.gz: 9e05e2ca2e08dda60fc2f88ee0abb29b81dc37383cd95097f5d09d8df19e79973390cf2ecbb050534fdcd8dba9acbfcf5c9810d827767b1dc4647dc60f2775b4
6
+ metadata.gz: bdda8bd2664409d9e20514b2b76ea5a4dc4b77519e6491f6e0a4cebda59b61c5b1b4f772af503bc663682fe15c885909d573b8c852699d8e476d1654ba407175
7
+ data.tar.gz: 052c656147bf95464a017b89fbceb80e25769ff8d90ae44a81ae7f4682e837f5e2290a0385000992c1a2c6dd6e7b4cd67629239de063c3fd0752d9748150698e
data/CHANGELOG.md CHANGED
@@ -0,0 +1,4 @@
1
+ ## 0.2.0
2
+ - Deprecated `endpoint_type` option
3
+ - Added `protocol` option
4
+ - Added `compression` option
data/README.md CHANGED
@@ -10,7 +10,7 @@ The documentation for Logstash Java plugins is available [here](https://www.elas
10
10
 
11
11
  ## OpenTelemetry
12
12
 
13
- This plugin allows Logstash to output looks to an OpenTelemetry GRPC otlp endpoint. The default endpoint is http://localhost:4317
13
+ This plugin allows Logstash to output looks to an OpenTelemetry otlp endpoint.
14
14
 
15
15
  Fields below are mapped as per the spec: https://opentelemetry.io/docs/reference/specification/logs/data-model/#elastic-common-schema
16
16
 
@@ -30,20 +30,50 @@ All other fields are attached as Attributes.
30
30
 
31
31
  ```
32
32
  input {
33
- generator => {
33
+ generator {
34
34
  count => 10
35
+ add_field => {
36
+ "log.level" => "WARN"
37
+ }
35
38
  }
36
39
  }
37
40
  output {
38
- opentelemetry => {
39
- endpoint => "http://localhost:4317"
41
+ opentelemetry {
42
+ endpoint => "http://otel:4317"
43
+ protocol => "grpc"
44
+ compression => "none"
40
45
  }
41
46
  }
42
47
  ```
43
48
 
44
49
  ## Options
45
50
 
46
- Use `endpoint` to specify a GRPC otlp endpoint.
51
+ | Setting | Input Type | Required |
52
+ |:--|:--|:--|
53
+ | endpoint | [uri](https://www.elastic.co/guide/en/logstash/current/configuration-file-structure.html#uri) | Yes |
54
+ | endpoint_type | [string](https://www.elastic.co/guide/en/logstash/7.16/configuration-file-structure.html#string) | No (Deprecated) |
55
+ | protocol | [string](https://www.elastic.co/guide/en/logstash/7.16/configuration-file-structure.html#string), one of ["grpc", "http"] | No |
56
+ | compression | [string](https://www.elastic.co/guide/en/logstash/7.16/configuration-file-structure.html#string), one of ["gzip", "none"] | No |
57
+
58
+ `endpoint`
59
+
60
+ - This is a required setting.
61
+ - There is no default value for this setting.
62
+ - Value type is [uri](https://www.elastic.co/guide/en/logstash/current/configuration-file-structure.html#uri)
63
+
64
+ `endpoint_type`
65
+
66
+ - Deprecated. Replaced with `protocol`.
67
+
68
+ `protocol`
69
+
70
+ - Value type is [string](https://www.elastic.co/guide/en/logstash/7.16/configuration-file-structure.html#string)
71
+ - Default is: `grpc`
72
+
73
+ `compression`
74
+
75
+ - Value type is [string](https://www.elastic.co/guide/en/logstash/7.16/configuration-file-structure.html#string)
76
+ - Default is: `none`
47
77
 
48
78
  ## Building
49
79
 
@@ -52,3 +82,7 @@ Use `endpoint` to specify a GRPC otlp endpoint.
52
82
  ## Running locally
53
83
 
54
84
  `docker-compose up`
85
+
86
+ ## Notes
87
+
88
+ **Warning** This plugin depends on OpenTelemetry logging libraries are that are alpha quality.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.2
@@ -2,4 +2,4 @@
2
2
  # encoding: utf-8
3
3
 
4
4
  require 'jar_dependencies'
5
- require_jar('net.stomer', 'logstash-output-opentelemetry', '0.1.0')
5
+ require_jar('net.stomer', 'logstash-output-opentelemetry', '0.2.2')
@@ -4,10 +4,10 @@ Gem::Specification.new do |s|
4
4
  s.version = ::File.read('VERSION').split('\n').first
5
5
  s.licenses = ['Apache-2.0']
6
6
  s.summary = 'OpenTelemetry Output Plugin'
7
- s.description = 'This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program'
7
+ s.description = 'A Logstash output plugin that allows logs to be output to OpenTelemetry otlp endpoints.'
8
8
  s.authors = ['Paul Grave']
9
9
  s.email = ['paul@stomer.net']
10
- s.homepage = 'http://paulgrav.micro.blog'
10
+ s.homepage = 'https://github.com/paulgrav/logstash-output-opentelemetry'
11
11
  s.require_paths = ['lib', 'vendor/jar-dependencies']
12
12
 
13
13
  s.files = Dir["lib/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-opentelemetry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Grave
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-15 00:00:00.000000000 Z
11
+ date: 2022-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -20,8 +20,8 @@ dependencies:
20
20
  - !ruby/object:Gem::Version
21
21
  version: '2.99'
22
22
  name: logstash-core-plugin-api
23
- type: :runtime
24
23
  prerelease: false
24
+ type: :runtime
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
@@ -37,8 +37,8 @@ dependencies:
37
37
  - !ruby/object:Gem::Version
38
38
  version: '0'
39
39
  name: jar-dependencies
40
- type: :runtime
41
40
  prerelease: false
41
+ type: :runtime
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - ">="
@@ -51,16 +51,15 @@ dependencies:
51
51
  - !ruby/object:Gem::Version
52
52
  version: '0'
53
53
  name: logstash-devutils
54
- type: :development
55
54
  prerelease: false
55
+ type: :development
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
- description: This gem is a Logstash plugin required to be installed on top of the
62
- Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
63
- gem is not a stand-alone program
61
+ description: A Logstash output plugin that allows logs to be output to OpenTelemetry
62
+ otlp endpoints.
64
63
  email:
65
64
  - paul@stomer.net
66
65
  executables: []
@@ -76,8 +75,8 @@ files:
76
75
  - lib/logstash-output-opentelemetry_jars.rb
77
76
  - lib/logstash/outputs/opentelemetry.rb
78
77
  - logstash-output-opentelemetry.gemspec
79
- - vendor/jar-dependencies/net/stomer/logstash-output-opentelemetry/0.1.0/logstash-output-opentelemetry-0.1.0.jar
80
- homepage: http://paulgrav.micro.blog
78
+ - vendor/jar-dependencies/net/stomer/logstash-output-opentelemetry/0.2.2/logstash-output-opentelemetry-0.2.2.jar
79
+ homepage: https://github.com/paulgrav/logstash-output-opentelemetry
81
80
  licenses:
82
81
  - Apache-2.0
83
82
  metadata:
@@ -100,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
99
  - !ruby/object:Gem::Version
101
100
  version: '0'
102
101
  requirements: []
103
- rubygems_version: 3.0.6
102
+ rubygems_version: 3.1.6
104
103
  signing_key:
105
104
  specification_version: 4
106
105
  summary: OpenTelemetry Output Plugin