logstash-output-opentelemetry 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04367c5e502e72ed2be4718c9c2865e8b85946ab5c38737740ff7dc99397aa0f
4
- data.tar.gz: e91b75b9f296c7b108a4d637b5c6ee0324295d679ec4748cef938eb36c72c676
3
+ metadata.gz: a8092f31a2154bc8a86cfe6b791de834dc03e8474f5a3e46804a4c4d3ae5397e
4
+ data.tar.gz: 82f4e840f2fea20cc43244b8815671c811382670a2279f75a81c1a086359d6b2
5
5
  SHA512:
6
- metadata.gz: 356d2d18ef437f49fdd40bf59d9d9246785602a1917f219541865c0d3d6fe23fa0fa41bcec60d858147c420662369f8192f16b1b63f0b8bf23a720aa7e4d52fa
7
- data.tar.gz: 1a893fb1db7edfa04acf975b16c27ae540f7cb51b6586d5271f3861e4c8e026d17494a711396c404af126f6d9678dd50cd46f41775ec771663f32f1c5bb58d3f
6
+ metadata.gz: 25012ba3c156bca9ab9ae77e1b8e3775a44c26737a623a06b0e5af7f3ad3cce3f94c1a2969a817edcb4c66c954943ca867b3e482d95b8d046d301f315685df79
7
+ data.tar.gz: ad698acd25d7399c7080df2e96bc593645ca035a5a3da766c866599910cfa2340201180d915dad64afc9a2f988447ae940cf6788f14bde9e1b536a3748c13772
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.1
1
+ 0.2.0
@@ -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.1')
5
+ require_jar('net.stomer', 'logstash-output-opentelemetry', '0.2.0')
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.1
4
+ version: 0.2.0
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-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -75,7 +75,7 @@ files:
75
75
  - lib/logstash-output-opentelemetry_jars.rb
76
76
  - lib/logstash/outputs/opentelemetry.rb
77
77
  - logstash-output-opentelemetry.gemspec
78
- - vendor/jar-dependencies/net/stomer/logstash-output-opentelemetry/0.1.1/logstash-output-opentelemetry-0.1.1.jar
78
+ - vendor/jar-dependencies/net/stomer/logstash-output-opentelemetry/0.2.0/logstash-output-opentelemetry-0.2.0.jar
79
79
  homepage: https://github.com/paulgrav/logstash-output-opentelemetry
80
80
  licenses:
81
81
  - Apache-2.0