fluent-plugin-datadog 0.14.2 → 0.14.3

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: 48f262ed0beabe59655088c119c3d7fb732222dabfa116cf0709747a2349f033
4
- data.tar.gz: 0e1b786e5e5835021ec3d809172e837446633b0db216406d5a178ddb46f55533
3
+ metadata.gz: 331a2b03f2731e4b8ddd1ff99c102d92527268a68879da98c7ed10eb9f009ed9
4
+ data.tar.gz: da833ab00bf079b95b099306047e76b2d6ff145130028e55f8c17111fbc6d8ec
5
5
  SHA512:
6
- metadata.gz: 88508d03160cf04f76df7f933d42fccd4dacbaba90e2ec5e5857a9b1c26a7b2c6837e9d5aa183e7eaf4d1bbeaebe02eb04f7fb821c9e9597194f95e30a07bde9
7
- data.tar.gz: b9a6e5404fa3a058d3f227248dc1a00874d97689ca77bde92e38a25883eaaac22c221e00a8b4e6229d190030d7168c9823571f01cacc853fdd71ed2feb5bcba2
6
+ metadata.gz: f0016f2904dded2230e17a0484ad7a7893fed8295285c71b22eb89da229d030587e39608fe4ba02679f77355df437a60cf0fdbee434f3f6dc883d53951ae5e45
7
+ data.tar.gz: c238fab3d35dc1d32b06511ecc654c6cee6739b81a7dc77966125a11b24e21ff9bad55206dcce0e8db897dd7b6c45fd2e6f1e9a7855fceabefcd9516c52ec27d
data/Rakefile CHANGED
@@ -4,3 +4,12 @@
4
4
  # Copyright 2018 Datadog, Inc.
5
5
 
6
6
  require "bundler/gem_tasks"
7
+ require 'rake/testtask'
8
+
9
+ task :default => [:test]
10
+
11
+ Rake::TestTask.new do |t|
12
+ t.libs << "test"
13
+ t.test_files = FileList['test/plugin/test*.rb']
14
+ t.verbose = true
15
+ end
@@ -31,4 +31,11 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency "rake", "~> 12.0"
32
32
  spec.add_development_dependency "yajl-ruby", "~> 1.2"
33
33
  spec.add_development_dependency 'webmock', "~> 3.6.0"
34
+
35
+ spec.metadata = {
36
+ 'bug_tracker_uri' => 'https://github.com/DataDog/fluent-plugin-datadog/issues',
37
+ 'changelog_uri' => 'https://github.com/DataDog/fluent-plugin-datadog/blob/master/CHANGELOG.md',
38
+ 'documentation_uri' => 'https://github.com/DataDog/fluent-plugin-datadog/blob/master/README.md',
39
+ 'source_code_uri' => 'https://github.com/DataDog/fluent-plugin-datadog'
40
+ }
34
41
  end
@@ -11,6 +11,10 @@ require "fluent/plugin/output"
11
11
 
12
12
  require_relative "version"
13
13
 
14
+ def nilish?(s)
15
+ s.empty? || s == "nil" || s == "false" || s == "null"
16
+ end
17
+
14
18
  class Fluent::DatadogOutput < Fluent::Plugin::Output
15
19
  class RetryableError < StandardError;
16
20
  end
@@ -80,6 +84,8 @@ class Fluent::DatadogOutput < Fluent::Plugin::Output
80
84
  # Set dd_hostname if not already set (can be set when using fluentd as aggregator)
81
85
  @dd_hostname = %x[hostname -f 2> /dev/null].strip
82
86
  @dd_hostname = Socket.gethostname if @dd_hostname.empty?
87
+
88
+ @timestamp_key = nil if nilish?(@timestamp_key)
83
89
  end
84
90
 
85
91
  def multi_workers_ready?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DatadogFluentPlugin
4
- VERSION = '0.14.2'
4
+ VERSION = '0.14.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-datadog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.2
4
+ version: 0.14.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Datadog Solutions Team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-01 00:00:00.000000000 Z
11
+ date: 2024-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -114,7 +114,7 @@ dependencies:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
116
  version: 3.6.0
117
- description:
117
+ description:
118
118
  email:
119
119
  - support@datadoghq.com
120
120
  executables: []
@@ -132,8 +132,12 @@ files:
132
132
  homepage: http://datadoghq.com
133
133
  licenses:
134
134
  - Apache-2.0
135
- metadata: {}
136
- post_install_message:
135
+ metadata:
136
+ bug_tracker_uri: https://github.com/DataDog/fluent-plugin-datadog/issues
137
+ changelog_uri: https://github.com/DataDog/fluent-plugin-datadog/blob/master/CHANGELOG.md
138
+ documentation_uri: https://github.com/DataDog/fluent-plugin-datadog/blob/master/README.md
139
+ source_code_uri: https://github.com/DataDog/fluent-plugin-datadog
140
+ post_install_message:
137
141
  rdoc_options: []
138
142
  require_paths:
139
143
  - lib
@@ -148,9 +152,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
152
  - !ruby/object:Gem::Version
149
153
  version: '0'
150
154
  requirements: []
151
- rubyforge_project:
152
- rubygems_version: 2.7.10
153
- signing_key:
155
+ rubygems_version: 3.0.3.1
156
+ signing_key:
154
157
  specification_version: 4
155
158
  summary: Datadog output plugin for Fluent event collector
156
159
  test_files: []