logstash-output-otlp 0.4.8-java → 0.5.0-java

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: 0f90cd96a0e71fb8ba83b205a0fa87a07f6e2e6884b96c1c9939e0d0d910427d
4
- data.tar.gz: 3ca39774b5d9722ce5a4ccb9f3eb6219fe9a421cd8aa87581bb2bc427fe543f0
3
+ metadata.gz: 9b52eb6dd3c022d4044a25d15b65b0b4f0c49fed621dbad3719fbd1bc1c64550
4
+ data.tar.gz: a553cb6bb1fe87ce81d44d56b11c32f324041a351daad834ad0a6b2aa979bf50
5
5
  SHA512:
6
- metadata.gz: 7528f3db38538b64cf72870c17a03be1b38e37aa7f515ead93a84a6661390688971de703aef450aea956ab7ac88ef9c87b48ffd6a99287f75ef184391b720568
7
- data.tar.gz: 54686e7bb1be213e566f0abe8a90a071e23649a27c3696345fd4c3c7014338ec3c53f08777c99637fe06b35427efb3843feea101639197d112aac6882d07be8e
6
+ metadata.gz: e817e73a885e5c451468b073ed4baab8a700b8ba907f13dbbaead07da6ffce65e15058b4006d8062b8a2301511887bc07f0cca436d55466c0a5c09e30a0b4d18
7
+ data.tar.gz: 00b32d6a761e488dd1622fc081b93b768427af912871d983ed2e180ca25ebcfb0cdaef7dcf3e2c89bbc9b835c139edc82f79b4ce927809ea8493d40082c7e52f
data/README.md CHANGED
@@ -257,49 +257,47 @@ make logstashcorejar
257
257
 
258
258
  `make gem` also builds the Logstash core jar before packaging the local plugin gem.
259
259
 
260
- ## Running locally
260
+ ## Monitoring
261
261
 
262
- `docker-compose up`
262
+ The output exposes the Java SDK's `LATEST` log processor and exporter metrics
263
+ under `sdk_metrics` in Logstash's Node Stats API, preserving component,
264
+ endpoint and error attributes. The [metrics demo](tests/integration/queue/README.md)
265
+ shows successful exports, failures and queue saturation in Prometheus.
266
+ `kuskoman/logstash-exporter` v1.9.2 needs additional collector support for these
267
+ custom fields; the demo uses JSON Exporter mappings.
263
268
 
264
- The local Dockerfile installs a gem built from this repository with `logstash-plugin install --no-verify --local`.
265
- That pattern is intended for local smoke tests of the local gem only.
269
+ ## Running locally
266
270
 
267
- For a production-like image that installs the published gem from RubyGems, use:
271
+ With Java 17 and Docker running:
268
272
 
269
- ```dockerfile
270
- FROM docker.elastic.co/logstash/logstash:9.4.4@sha256:c1aeca2bbf56148c1c868957e1d0ea5aa020cba5b3dca3493a097f54c0efc544
271
- RUN logstash-plugin install logstash-output-otlp
273
+ ```sh
274
+ make gem
275
+ docker compose up --build
272
276
  ```
273
277
 
274
- The certificates under `config/tls` are local test certificates used by the Docker Compose example.
275
- Do not reuse those private keys or certificates in shared, staging, or production environments.
276
-
277
- ### Check export error logging manually
278
+ Logstash sends ten records over OTLP/HTTP. The Collector (`otel`) prints them
279
+ using its `debug` exporter with the body `OTLP local example`.
278
280
 
279
- The small Compose example uses one Logstash output and an OTLP/HTTP Collector,
280
- without authentication. With Java 17 and Docker Compose available, build the gem
281
- and send five events:
281
+ From another terminal:
282
282
 
283
283
  ```sh
284
- make gem
285
- docker compose -f tests/integration/compose.yml build
286
- docker compose -f tests/integration/compose.yml up -d collector
287
- docker compose -f tests/integration/compose.yml run --rm logstash
288
- docker compose -f tests/integration/compose.yml logs collector
284
+ docker compose logs otel
285
+ docker compose down
289
286
  ```
290
287
 
291
- The Collector should print `OTLP manual export test` for the received events.
292
- To simulate an unavailable destination, stop it and send again:
288
+ The Dockerfile installs the local gem built from this repository.
293
289
 
294
- ```sh
295
- docker compose -f tests/integration/compose.yml stop collector
296
- docker compose -f tests/integration/compose.yml run --rm --no-deps logstash
297
- docker compose -f tests/integration/compose.yml down
290
+ For a production-like image that installs the published gem from RubyGems, use:
291
+
292
+ ```dockerfile
293
+ FROM docker.elastic.co/logstash/logstash:9.4.4@sha256:c1aeca2bbf56148c1c868957e1d0ea5aa020cba5b3dca3493a097f54c0efc544
294
+ RUN logstash-plugin install logstash-output-otlp
298
295
  ```
299
296
 
300
- Logstash should print `OTLP export failed: output_id=manual_otlp
301
- endpoint=http://collector:4318/v1/logs records=5`. Repeated failures are logged
302
- at most once every 30 seconds per output. This diagnostic does not resend events.
297
+ ### Integration tests
298
+
299
+ See [tests/integration](tests/integration/README.md) for manual tests of export
300
+ error logging, queue metrics in Prometheus and the timestamp fix for Loki.
303
301
 
304
302
  ## Notes
305
303
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.8
1
+ 0.5.0
@@ -2,4 +2,4 @@
2
2
  # encoding: utf-8
3
3
 
4
4
  require 'jar_dependencies'
5
- require_jar('org.otlp', 'logstash-output-otlp', '0.4.8')
5
+ require_jar('org.otlp', 'logstash-output-otlp', '0.5.0')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-otlp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.5.0
5
5
  platform: java
6
6
  authors:
7
7
  - Willian Marchan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-09-23 00:00:00.000000000 Z
11
+ date: 2026-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -80,7 +80,7 @@ files:
80
80
  - lib/logstash-output-otlp_jars.rb
81
81
  - lib/logstash/outputs/otlp.rb
82
82
  - logstash-output-otlp.gemspec
83
- - vendor/jar-dependencies/org/otlp/logstash-output-otlp/0.4.8/logstash-output-otlp-0.4.8.jar
83
+ - vendor/jar-dependencies/org/otlp/logstash-output-otlp/0.5.0/logstash-output-otlp-0.5.0.jar
84
84
  homepage: https://github.com/wjma90/logstash-output-otlp
85
85
  licenses:
86
86
  - Apache-2.0