logstash-output-opentelemetry 0.0.1.pre.rc16 → 0.2.1

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: 330bcf98c2e01ca7bd6dcd00ca1ddad5a67db58af535bc9b75b2c5c6318b7356
4
- data.tar.gz: bef9ddc43a8193555217268e12e3af9f17ea549daf71ce2c2a46cc0d99f76878
3
+ metadata.gz: 4a74f9d5753c60c9fbfc54c2e88f3df4a63749a224e2c270f101170939cb161d
4
+ data.tar.gz: 07fc692927d9aa65244db18d9809e7efee6a736bf512c7b8ef42fca4209ac383
5
5
  SHA512:
6
- metadata.gz: db971cabf6c45a92886f368e73544154fa73cd8fe3e74930f0c5ce0cde02bba439c83db6389427fff81e36a9ac0b73f48bf08fc3cc5c789e45aaff8c841b17c9
7
- data.tar.gz: 8888983d50479cccfbbbe16c3cf02e28f56087a55127ffdd4cf9643b48eb1cae70cd4345a8750e455fd5cfc9794ee06bb0b2515a6289ccdde64fc729e9ab08e7
6
+ metadata.gz: cf95e6825852d242871678a2e82f512e234dd9eded85f6b358648e13e3486646e303989e60446f01b65684eb8c1f3a1bd6d7511514a81fcb092b15a92f13c1c2
7
+ data.tar.gz: 9149728f3455cbe281ea37ad8d21198dbd603da79aebdc0229640e64d5976a7d83c0c7880ecef9e08392288a2d8306a0c98422dd7704cbbaf3be6556f83f240b
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.0.1-rc16
1
+ 0.2.1
@@ -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.0.1-rc16')
5
+ require_jar('net.stomer', 'logstash-output-opentelemetry', '0.2.1')
@@ -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.0.1.pre.rc16
4
+ version: 0.2.1
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.0.1-rc16/logstash-output-opentelemetry-0.0.1-rc16.jar
80
- homepage: http://paulgrav.micro.blog
78
+ - vendor/jar-dependencies/net/stomer/logstash-output-opentelemetry/0.2.1/logstash-output-opentelemetry-0.2.1.jar
79
+ homepage: https://github.com/paulgrav/logstash-output-opentelemetry
81
80
  licenses:
82
81
  - Apache-2.0
83
82
  metadata:
@@ -96,11 +95,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
96
95
  version: '0'
97
96
  required_rubygems_version: !ruby/object:Gem::Requirement
98
97
  requirements:
99
- - - ">"
98
+ - - ">="
100
99
  - !ruby/object:Gem::Version
101
- version: 1.3.1
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