logstash-output-opentelemetry 0.3.0.rc1-java → 0.4.1-java

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: de34002bc0bc4639d03fcf77a985c6d8b7c3b90f166389023aeb33efeda24ef1
4
- data.tar.gz: 622efa0e2228a7e7ec97db7058915861579356606c240410fd773c1243dc38ce
3
+ metadata.gz: 6ec49dfd29fb2c7dc753981113539980e5fb2e1979733ef456e12458673286d5
4
+ data.tar.gz: 532105ef0ff0847aaef51ae1478f9f7d6c0d8203bfd70f0ee7d8537c5003431e
5
5
  SHA512:
6
- metadata.gz: ff476669a349ceca15e44b64a2d111e7ed177acefc2be7a49b53393dab9d24f0d79ea794905b615af1fcc477b4553cc253ebb5ee0cff8f7b9d6c425709e13b71
7
- data.tar.gz: e9dd0f25a8dbbd929bc91165ae9973059fc2cb1cf624369817aa7d3d74036616b4350040913a5c59d281fb11c4e173acb1443bbfb8ba2210d05594c0f819c57c
6
+ metadata.gz: ea469a414d6e8b4fab6bc806e3dce45e299455cb4354aa4dab25bda14aa830ec63ee7261c63d5a3b61e5e78df7804183b6d21ef4b4bc572ad4f57ebfe61fb7f1
7
+ data.tar.gz: e09e4b3412771adbe52d19a95acf7580e375c784f23e5d6f9196116144c88f0fcdd8d9819fec0d1bff427835bd6440d41bf428e28385b37ab62d173319a4da14
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.4.0
2
+ - Added more configuration options
3
+ - Fixed data rendering that resulted in ConvertedList not being converted to String correctly
4
+ ## 0.3.0
5
+ - Fixed bug that prevented `logstash install` from working
1
6
  ## 0.2.0
2
7
  - Deprecated `endpoint_type` option
3
8
  - Added `protocol` option
data/README.md CHANGED
@@ -1,22 +1,19 @@
1
- # Logstash Java Plugin
1
+ # Logstash Output Plugin for OpenTelemetry
2
2
 
3
3
  [![Java CI with Gradle](https://github.com/paulgrav/logstash-output-opentelemetry/actions/workflows/gradle.yml/badge.svg)](https://github.com/paulgrav/logstash-output-opentelemetry/actions/workflows/gradle.yml)
4
4
 
5
- This is a Java plugin for [Logstash](https://github.com/elastic/logstash).
5
+ This is a Java-based plugin for [Logstash](https://github.com/elastic/logstash).
6
6
 
7
7
  It is fully free and fully open source. The license is Apache 2.0, meaning you are free to use it however you want.
8
8
 
9
- The documentation for Logstash Java plugins is available [here](https://www.elastic.co/guide/en/logstash/6.7/contributing-java-plugin.html).
10
-
11
9
  ## OpenTelemetry
12
10
 
13
11
  This plugin allows Logstash to output looks to an OpenTelemetry otlp endpoint.
14
12
 
15
- Fields below are mapped as per the spec: https://opentelemetry.io/docs/reference/specification/logs/data-model/#elastic-common-schema
13
+ Default field mapping is as per the spec: https://opentelemetry.io/docs/reference/specification/logs/data-model/#elastic-common-schema
16
14
 
17
15
  ```
18
16
  @timestamp >> Timestamp
19
- log.level >> SeverityText
20
17
  message >> Body
21
18
  ```
22
19
 
@@ -63,6 +60,13 @@ output {
63
60
  | endpoint_type | [string](https://www.elastic.co/guide/en/logstash/7.16/configuration-file-structure.html#string) | No (Deprecated) |
64
61
  | protocol | [string](https://www.elastic.co/guide/en/logstash/7.16/configuration-file-structure.html#string), one of ["grpc", "http"] | No |
65
62
  | compression | [string](https://www.elastic.co/guide/en/logstash/7.16/configuration-file-structure.html#string), one of ["gzip", "none"] | No |
63
+ | resource | [Hash](https://www.elastic.co/guide/en/logstash/latest/configuration-file-structure.html#hash) | No |
64
+ | body | [Field Reference](https://www.elastic.co/guide/en/logstash/7.16/configuration-file-structure.html#field-reference) | No |
65
+ | name | [Field Reference](https://www.elastic.co/guide/en/logstash/7.16/configuration-file-structure.html#field-reference) | No |
66
+ | severity_text | [Field Reference](https://www.elastic.co/guide/en/logstash/7.16/configuration-file-structure.html#field-reference) | No |
67
+ | trace_id | [Field Reference](https://www.elastic.co/guide/en/logstash/7.16/configuration-file-structure.html#field-reference) | No |
68
+ | span_id | [Field Reference](https://www.elastic.co/guide/en/logstash/7.16/configuration-file-structure.html#field-reference) | No |
69
+ | trace_flags | [Field Reference](https://www.elastic.co/guide/en/logstash/7.16/configuration-file-structure.html#field-reference) | No |
66
70
 
67
71
  `endpoint`
68
72
 
@@ -70,6 +74,8 @@ output {
70
74
  - There is no default value for this setting.
71
75
  - Value type is [uri](https://www.elastic.co/guide/en/logstash/current/configuration-file-structure.html#uri)
72
76
 
77
+ An endpoint that supports otlp to which logs are sent.
78
+
73
79
  `endpoint_type`
74
80
 
75
81
  - Deprecated. Replaced with `protocol`.
@@ -79,11 +85,54 @@ output {
79
85
  - Value type is [string](https://www.elastic.co/guide/en/logstash/7.16/configuration-file-structure.html#string)
80
86
  - Default is: `grpc`
81
87
 
88
+ Possible values are `grpc` or `http`
89
+
82
90
  `compression`
83
91
 
84
92
  - Value type is [string](https://www.elastic.co/guide/en/logstash/7.16/configuration-file-structure.html#string)
85
93
  - Default is: `none`
86
94
 
95
+ Possible values are `gzip` or `none`
96
+
97
+ `resource`
98
+
99
+ - Value type is [hash](https://www.elastic.co/guide/en/logstash/latest/configuration-file-structure.html#hash)
100
+ - Default is empty
101
+
102
+ This hash allows additional fields to be added to the [OpenTelemetry Resource field](https://opentelemetry.io/docs/reference/specification/logs/data-model/#field-resource)
103
+ Hash values must be strings.
104
+
105
+ `body`
106
+
107
+ - Value type is [Field Reference](https://www.elastic.co/guide/en/logstash/7.16/configuration-file-structure.html#field-reference)
108
+ - Default is `message`
109
+
110
+ The field to reference as the [Otel Body field](https://opentelemetry.io/docs/reference/specification/logs/data-model/#field-body).
111
+
112
+ `severity_text`
113
+
114
+ - Value type is [Field Reference](https://www.elastic.co/guide/en/logstash/7.16/configuration-file-structure.html#field-reference)
115
+
116
+ The field to reference as the [Otel Severity Text field](https://opentelemetry.io/docs/reference/specification/logs/data-model/#field-severitytext).
117
+
118
+ `trace_id`
119
+
120
+ - Value type is [Field Reference](https://www.elastic.co/guide/en/logstash/7.16/configuration-file-structure.html#field-reference)
121
+
122
+ The field to reference as the [Otel Trace ID field](https://opentelemetry.io/docs/reference/specification/logs/data-model/#field-traceid).
123
+
124
+ `span_id`
125
+
126
+ - Value type is [Field Reference](https://www.elastic.co/guide/en/logstash/7.16/configuration-file-structure.html#field-reference)
127
+
128
+ The field to reference as the [Otel Span ID field](https://opentelemetry.io/docs/reference/specification/logs/data-model/#field-spanid).
129
+
130
+ `trace_flags`
131
+
132
+ - Value type is [Field Reference](https://www.elastic.co/guide/en/logstash/7.16/configuration-file-structure.html#field-reference)
133
+
134
+ The field to reference as the [Otel Trace Flags field](https://opentelemetry.io/docs/reference/specification/logs/data-model/#field-traceflags).
135
+
87
136
  ## Building
88
137
 
89
138
  `make gem`
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0.rc1
1
+ 0.4.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.3.0.rc1')
5
+ require_jar('net.stomer', 'logstash-output-opentelemetry', '0.4.1')
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.3.0.rc1
4
+ version: 0.4.1
5
5
  platform: java
6
6
  authors:
7
7
  - Paul Grave
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-18 00:00:00.000000000 Z
11
+ date: 2022-01-19 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
- prerelease: false
24
23
  type: :runtime
24
+ prerelease: false
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
- prerelease: false
41
40
  type: :runtime
41
+ prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - ">="
@@ -51,8 +51,8 @@ dependencies:
51
51
  - !ruby/object:Gem::Version
52
52
  version: '0'
53
53
  name: logstash-devutils
54
- prerelease: false
55
54
  type: :development
55
+ prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - ">="
@@ -74,7 +74,7 @@ files:
74
74
  - lib/logstash-output-opentelemetry_jars.rb
75
75
  - lib/logstash/outputs/opentelemetry.rb
76
76
  - logstash-output-opentelemetry.gemspec
77
- - vendor/jar-dependencies/net/stomer/logstash-output-opentelemetry/0.3.0.rc1/logstash-output-opentelemetry-0.3.0.rc1.jar
77
+ - vendor/jar-dependencies/net/stomer/logstash-output-opentelemetry/0.4.1/logstash-output-opentelemetry-0.4.1.jar
78
78
  homepage: https://github.com/paulgrav/logstash-output-opentelemetry
79
79
  licenses:
80
80
  - Apache-2.0
@@ -93,11 +93,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - ">"
96
+ - - ">="
97
97
  - !ruby/object:Gem::Version
98
- version: 1.3.1
98
+ version: '0'
99
99
  requirements: []
100
- rubygems_version: 3.1.6
100
+ rubygems_version: 3.0.6
101
101
  signing_key:
102
102
  specification_version: 4
103
103
  summary: OpenTelemetry Output Plugin