langchainrb_datadog 0.1.0 → 0.1.2

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: abb023d18e8b8502d417d70b5cf6e004aa4d490f47bf5eb7f71af13ea6d48fc7
4
- data.tar.gz: 8d8be0154c9707258f9a306834c2818a302225294001ab3155c2b9584e05ddd6
3
+ metadata.gz: 3b7a35f24108e8c19238b208b8f8ad146c4f77d40d8701ae05a5abfa2d4aad9f
4
+ data.tar.gz: b4ed189461da39cdcef29c4016f907df1db08efe725f0557e1ba28f3aff8bd96
5
5
  SHA512:
6
- metadata.gz: 3cb22c5a223473a51557211ebdfcfb0d41b309e39469fcd01b193e5cccb702f483d5d3a7033adbdd90c86eefa7a1b769f8550a53088783a18a471d1f0ef140c3
7
- data.tar.gz: 998cbea79f0ca64a80622816e036d8ad4af6ce6abc2552491d6b9c604ff5828b052b59b2e3ee2516a281c8c513502f7cb2f2bc4c5dbbaf2034d2086538955f6c
6
+ metadata.gz: 434d4ba6bb290786fef9c2891e98ffd302c9fd93f4826143f2eb87c4206aea6e43e12a3421abc16fa9b8792a090bce4efa86b1138ad29b131c0f3cbca92e1cb8
7
+ data.tar.gz: ead3b683d2c6b5ab4524d5e02401744d6ed93999f4bb268bf9e22bf483b7c1c1bf83ca85e063b36713e5d9ac415f9e18d1c37e0a4182d2ba215a4aa25243c9c7
@@ -36,11 +36,15 @@ module Langchain
36
36
 
37
37
  # Starts a new workflow span.
38
38
  def self.workflow(input = nil, name: nil, &block)
39
+ return yield unless Datadog.enabled?
40
+
39
41
  span(input, name:, kind: 'workflow', &block)
40
42
  end
41
43
 
42
44
  # Starts a new agent span.
43
45
  def self.agent(input = nil, name: nil, &block)
46
+ return yield unless Datadog.enabled?
47
+
44
48
  span(input, name:, kind: 'agent', &block)
45
49
  end
46
50
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Langchain
4
4
  module Datadog
5
- VERSION = '0.1.0'
5
+ VERSION = '0.1.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: langchainrb_datadog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GaggleAMP
8
8
  - Nikolaos Anastopoulos
9
- autorequire:
9
+ autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-10-12 00:00:00.000000000 Z
12
+ date: 2024-12-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -29,14 +29,14 @@ dependencies:
29
29
  name: langchainrb
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: 0.17.1
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: 0.17.1
42
42
  description: Hooks into Langchain.rb methods to capture LLM calls and report them
@@ -53,7 +53,6 @@ files:
53
53
  - LICENSE.txt
54
54
  - README.md
55
55
  - Rakefile
56
- - langchainrb_datadog.gemspec
57
56
  - lib/langchain/datadog.rb
58
57
  - lib/langchain/datadog/llm.rb
59
58
  - lib/langchain/datadog/tracing.rb
@@ -67,7 +66,7 @@ metadata:
67
66
  homepage_uri: https://github.com/GaggleAMP/langchainrb_datadog
68
67
  source_code_uri: https://github.com/GaggleAMP/langchainrb_datadog
69
68
  github_repo: git@github.com:GaggleAMP/langchainrb_datadog.git
70
- post_install_message:
69
+ post_install_message:
71
70
  rdoc_options: []
72
71
  require_paths:
73
72
  - lib
@@ -82,8 +81,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
81
  - !ruby/object:Gem::Version
83
82
  version: '0'
84
83
  requirements: []
85
- rubygems_version: 3.5.16
86
- signing_key:
84
+ rubygems_version: 3.5.22
85
+ signing_key:
87
86
  specification_version: 4
88
87
  summary: Enables LLM observability with Datadog for Langchain.rb.
89
88
  test_files: []
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative 'lib/langchain/datadog/version'
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = 'langchainrb_datadog'
7
- spec.version = Langchain::Datadog::VERSION
8
- spec.authors = ['GaggleAMP', 'Nikolaos Anastopoulos']
9
- spec.email = ['info@gaggleamp.com', 'ebababi@ebababi.net']
10
-
11
- spec.summary = 'Enables LLM observability with Datadog for Langchain.rb.'
12
- spec.description = 'Hooks into Langchain.rb methods to capture LLM calls and ' \
13
- 'report them to the Datadog LLM Observability API.'
14
- spec.homepage = 'https://github.com/GaggleAMP/langchainrb_datadog'
15
- spec.license = 'MIT'
16
- spec.required_ruby_version = '>= 3.1.0'
17
-
18
- spec.metadata['homepage_uri'] = spec.homepage
19
- spec.metadata['source_code_uri'] = 'https://github.com/GaggleAMP/langchainrb_datadog'
20
- spec.metadata['github_repo'] = 'git@github.com:GaggleAMP/langchainrb_datadog.git'
21
-
22
- # Specify which files should be added to the gem when it is released.
23
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24
- spec.files = Dir.chdir(__dir__) do
25
- `git ls-files -z`.split("\x0").reject do |f|
26
- (File.expand_path(f) == __FILE__) ||
27
- f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor Gemfile])
28
- end
29
- end
30
- spec.bindir = 'exe'
31
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
- spec.require_paths = ['lib']
33
-
34
- spec.add_dependency 'faraday'
35
- spec.add_dependency 'langchainrb', '~> 0.17.1'
36
-
37
- # For more information and examples about making a new gem, check out our
38
- # guide at: https://bundler.io/guides/creating_gem.html
39
- end