ask-opentelemetry 0.1.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 +7 -0
- data/CHANGELOG.md +13 -0
- data/LICENSE +21 -0
- data/README.md +189 -0
- data/lib/ask/open_telemetry/railtie.rb +17 -0
- data/lib/ask/open_telemetry/subscriber.rb +72 -0
- data/lib/ask/open_telemetry/version.rb +5 -0
- data/lib/ask/open_telemetry.rb +34 -0
- data/lib/ask-opentelemetry.rb +1 -0
- metadata +122 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 725e08edb09468eeddf352695a9683197d245f385783aa6b527f52bd29243ec3
|
|
4
|
+
data.tar.gz: 875068867c33e9d45a1e442875dcc3d7e487e345b74fe9f15104ab564813475a
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 2b0d3a3c347fd6301e1f5e8b6c61da18fe78cd925eadd32bd3a060aea02099d84c91a8ccb4bdc64aee8aae7570b63c712e5ffdbc5c83b69acb6ca7970f3c6e06
|
|
7
|
+
data.tar.gz: 2ff2cceaa569cfc8e70f7d5f03589ffdb3f97c8593d77e11ccd3616d3481cbf493fa3db03ef802ed5bb16675090c536d6fb229adc69669c2b6d1f9658ee43dd7
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.1.0] - Unreleased
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- Initial release
|
|
7
|
+
- `Ask::OpenTelemetry.install` — subscribes to all `.ask` events
|
|
8
|
+
- `Subscriber` — maps events to OpenTelemetry spans (llm.chat, llm.tool, llm.embedding, llm.image)
|
|
9
|
+
- Span attributes: llm.provider, llm.model, llm.input_tokens, llm.output_tokens, llm.duration_ms, llm.tool, llm.image.size
|
|
10
|
+
- Metadata forwarding: `Ask::Instrumentation.with_metadata` values set as `llm.metadata.*` attributes
|
|
11
|
+
- Railtie for automatic installation in Rails apps
|
|
12
|
+
- Full test suite with OpenTelemetry span verification
|
|
13
|
+
- README with backend examples (Langfuse, Datadog, Honeycomb)
|
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Kaka Ruto
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
# ask-opentelemetry
|
|
2
|
+
|
|
3
|
+
[](https://badge.fury.io/rb/ask-opentelemetry)
|
|
4
|
+
[](https://github.com/ask-rb/ask-opentelemetry/actions/workflows/ci.yml)
|
|
5
|
+
|
|
6
|
+
OpenTelemetry tracing for the ask-rb ecosystem. Subscribes to
|
|
7
|
+
`ask-instrumentation` events and creates OpenTelemetry spans for chat
|
|
8
|
+
completions, tool calls, embeddings, and image generation.
|
|
9
|
+
|
|
10
|
+
Works with any OpenTelemetry-compatible backend: Langfuse, Datadog, Honeycomb,
|
|
11
|
+
Jaeger, Arize Phoenix, and more.
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
gem "ask-opentelemetry"
|
|
17
|
+
gem "ask-instrumentation"
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Quick Start
|
|
21
|
+
|
|
22
|
+
```ruby
|
|
23
|
+
require "ask/open_telemetry"
|
|
24
|
+
|
|
25
|
+
# Subscribe to all ask events and create OpenTelemetry spans
|
|
26
|
+
Ask::OpenTelemetry.install
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### In Rails
|
|
30
|
+
|
|
31
|
+
The Railtie auto-installs — no manual setup required:
|
|
32
|
+
|
|
33
|
+
```ruby
|
|
34
|
+
# Gemfile
|
|
35
|
+
gem "ask-opentelemetry"
|
|
36
|
+
gem "ask-instrumentation"
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
That's it. Spans are created automatically for every LLM operation.
|
|
40
|
+
|
|
41
|
+
## Spans Created
|
|
42
|
+
|
|
43
|
+
| Event | Span Name | Key Attributes |
|
|
44
|
+
|---|---|---|
|
|
45
|
+
| `chat.ask` | `llm.chat` | provider, model, input_tokens, output_tokens, duration_ms |
|
|
46
|
+
| `chat.stream.ask` | `llm.chat` | provider, model, input_tokens, output_tokens, duration_ms |
|
|
47
|
+
| `tool.ask` | `llm.tool` | provider, tool, tool_args |
|
|
48
|
+
| `embedding.ask` | `llm.embedding` | provider, model, input_tokens |
|
|
49
|
+
| `image.ask` | `llm.image` | provider, model, image.size, duration_ms |
|
|
50
|
+
|
|
51
|
+
### Standard Attributes
|
|
52
|
+
|
|
53
|
+
All spans include:
|
|
54
|
+
|
|
55
|
+
- `llm.provider` — The LLM provider (e.g., `openai`, `anthropic`)
|
|
56
|
+
- `llm.model` — The model identifier (e.g., `gpt-4`, `claude-3`)
|
|
57
|
+
- `llm.duration_ms` — The duration of the LLM operation in milliseconds
|
|
58
|
+
- `llm.input_tokens` — Input token count (when available)
|
|
59
|
+
- `llm.output_tokens` — Output token count (when available)
|
|
60
|
+
|
|
61
|
+
### Metadata Attributes
|
|
62
|
+
|
|
63
|
+
Any context set via `Ask::Instrumentation.with_metadata` is forwarded as
|
|
64
|
+
`llm.metadata.*` attributes:
|
|
65
|
+
|
|
66
|
+
```ruby
|
|
67
|
+
Ask::Instrumentation.with_metadata(user_id: 42, session_id: "abc") do
|
|
68
|
+
# The resulting span has:
|
|
69
|
+
# llm.metadata.user_id = 42
|
|
70
|
+
# llm.metadata.session_id = "abc"
|
|
71
|
+
end
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Backend Examples
|
|
75
|
+
|
|
76
|
+
### Langfuse
|
|
77
|
+
|
|
78
|
+
[Langfuse](https://langfuse.com) provides LLM observability (cost tracking,
|
|
79
|
+
evaluations, prompt management) via OpenTelemetry.
|
|
80
|
+
|
|
81
|
+
**Using Langfuse Cloud:**
|
|
82
|
+
|
|
83
|
+
```ruby
|
|
84
|
+
require "ask/open_telemetry"
|
|
85
|
+
require "opentelemetry-sdk"
|
|
86
|
+
require "opentelemetry-exporter-otlp"
|
|
87
|
+
|
|
88
|
+
OpenTelemetry::SDK.configure do |c|
|
|
89
|
+
c.service_name = "my-app"
|
|
90
|
+
c.add_span_processor(
|
|
91
|
+
OpenTelemetry::SDK::Trace::Export::BatchSpanProcessor.new(
|
|
92
|
+
OpenTelemetry::Exporter::OTLP::Exporter.new(
|
|
93
|
+
endpoint: "https://cloud.langfuse.com/api/public/otel/v1/traces",
|
|
94
|
+
headers: {
|
|
95
|
+
"Authorization" => "Basic #{Base64.strict_encode64("#{LANGFUSE_PUBLIC_KEY}:#{LANGFUSE_SECRET_KEY}")}"
|
|
96
|
+
}
|
|
97
|
+
)
|
|
98
|
+
)
|
|
99
|
+
)
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
Ask::OpenTelemetry.install
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
**Using Langfuse Self-Hosted:**
|
|
106
|
+
|
|
107
|
+
```ruby
|
|
108
|
+
OpenTelemetry::SDK.configure do |c|
|
|
109
|
+
c.service_name = "my-app"
|
|
110
|
+
c.add_span_processor(
|
|
111
|
+
OpenTelemetry::SDK::Trace::Export::BatchSpanProcessor.new(
|
|
112
|
+
OpenTelemetry::Exporter::OTLP::Exporter.new(
|
|
113
|
+
endpoint: "https://your-instance.langfuse.com/api/public/otel/v1/traces",
|
|
114
|
+
headers: {
|
|
115
|
+
"Authorization" => "Basic #{Base64.strict_encode64("#{LANGFUSE_PUBLIC_KEY}:#{LANGFUSE_SECRET_KEY}")}"
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
)
|
|
119
|
+
)
|
|
120
|
+
end
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Datadog
|
|
124
|
+
|
|
125
|
+
```ruby
|
|
126
|
+
require "ask/open_telemetry"
|
|
127
|
+
require "opentelemetry-sdk"
|
|
128
|
+
require "opentelemetry-exporter-otlp"
|
|
129
|
+
|
|
130
|
+
OpenTelemetry::SDK.configure do |c|
|
|
131
|
+
c.service_name = "my-app"
|
|
132
|
+
c.add_span_processor(
|
|
133
|
+
OpenTelemetry::SDK::Trace::Export::BatchSpanProcessor.new(
|
|
134
|
+
OpenTelemetry::Exporter::OTLP::Exporter.new(
|
|
135
|
+
endpoint: "https://otlp.datadoghq.com",
|
|
136
|
+
headers: { "DD-API-KEY" => ENV["DD_API_KEY"] }
|
|
137
|
+
)
|
|
138
|
+
)
|
|
139
|
+
)
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
Ask::OpenTelemetry.install
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Honeycomb
|
|
146
|
+
|
|
147
|
+
```ruby
|
|
148
|
+
require "ask/open_telemetry"
|
|
149
|
+
require "opentelemetry-sdk"
|
|
150
|
+
require "opentelemetry-exporter-otlp"
|
|
151
|
+
|
|
152
|
+
OpenTelemetry::SDK.configure do |c|
|
|
153
|
+
c.service_name = "my-app"
|
|
154
|
+
c.add_span_processor(
|
|
155
|
+
OpenTelemetry::SDK::Trace::Export::BatchSpanProcessor.new(
|
|
156
|
+
OpenTelemetry::Exporter::OTLP::Exporter.new(
|
|
157
|
+
endpoint: "https://api.honeycomb.io:443",
|
|
158
|
+
headers: { "x-honeycomb-team" => ENV["HONEYCOMB_API_KEY"] }
|
|
159
|
+
)
|
|
160
|
+
)
|
|
161
|
+
)
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
Ask::OpenTelemetry.install
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
## API
|
|
168
|
+
|
|
169
|
+
### `.install`
|
|
170
|
+
|
|
171
|
+
Subscribe to all `.ask` events and start creating spans. Idempotent — calling
|
|
172
|
+
multiple times only subscribes once.
|
|
173
|
+
|
|
174
|
+
```ruby
|
|
175
|
+
Ask::OpenTelemetry.install
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
## Development
|
|
179
|
+
|
|
180
|
+
```bash
|
|
181
|
+
git clone https://github.com/ask-rb/ask-opentelemetry.git
|
|
182
|
+
cd ask-opentelemetry
|
|
183
|
+
bundle install
|
|
184
|
+
bundle exec rake test
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
## License
|
|
188
|
+
|
|
189
|
+
MIT
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Ask
|
|
2
|
+
module OpenTelemetry
|
|
3
|
+
# Rails Railtie that auto-installs ask-opentelemetry in any Rails app.
|
|
4
|
+
#
|
|
5
|
+
# Automatically calls +Ask::OpenTelemetry.install+ during Rails
|
|
6
|
+
# initialization so LLM operations are traced without manual setup.
|
|
7
|
+
#
|
|
8
|
+
# @example
|
|
9
|
+
# # No configuration needed — the railtie auto-installs.
|
|
10
|
+
# # Bundler loads the gem, the railtie hooks into Rails init.
|
|
11
|
+
class Railtie < ::Rails::Railtie
|
|
12
|
+
initializer "ask.opentelemetry" do
|
|
13
|
+
Ask::OpenTelemetry.install
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
module Ask
|
|
2
|
+
module OpenTelemetry
|
|
3
|
+
# Subscribes to Ask::Instrumentation events and creates OpenTelemetry spans.
|
|
4
|
+
#
|
|
5
|
+
# Maps each event name to a span name:
|
|
6
|
+
# "chat.ask" → "llm.chat"
|
|
7
|
+
# "chat.stream.ask" → "llm.chat"
|
|
8
|
+
# "tool.ask" → "llm.tool"
|
|
9
|
+
# "embedding.ask" → "llm.embedding"
|
|
10
|
+
# "image.ask" → "llm.image"
|
|
11
|
+
#
|
|
12
|
+
# Forwards the event payload as span attributes under the +llm.*+ namespace
|
|
13
|
+
# and merges in any metadata from +Ask::Instrumentation.current_metadata+.
|
|
14
|
+
class Subscriber
|
|
15
|
+
# Event name pattern → OpenTelemetry span name.
|
|
16
|
+
SPAN_NAMES = {
|
|
17
|
+
"chat.ask" => "llm.chat",
|
|
18
|
+
"chat.stream.ask" => "llm.chat",
|
|
19
|
+
"tool.ask" => "llm.tool",
|
|
20
|
+
"embedding.ask" => "llm.embedding",
|
|
21
|
+
"image.ask" => "llm.image"
|
|
22
|
+
}.freeze
|
|
23
|
+
|
|
24
|
+
# Invoked by +ActiveSupport::Notifications+ for each matching event.
|
|
25
|
+
#
|
|
26
|
+
# @param event [ActiveSupport::Notifications::Event] The instrumentation event
|
|
27
|
+
def call(event)
|
|
28
|
+
span_name = SPAN_NAMES[event.name]
|
|
29
|
+
return unless span_name
|
|
30
|
+
|
|
31
|
+
tracer.in_span(span_name, attributes: attributes_for(event)) do |span|
|
|
32
|
+
span.set_attribute("llm.duration_ms", (event.duration * 1000).round(2))
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
private
|
|
37
|
+
|
|
38
|
+
def attributes_for(event)
|
|
39
|
+
payload = event.payload
|
|
40
|
+
|
|
41
|
+
attrs = {}
|
|
42
|
+
|
|
43
|
+
# Core llm attributes
|
|
44
|
+
attrs["llm.provider"] = payload[:provider] if payload[:provider]
|
|
45
|
+
attrs["llm.model"] = payload[:model] if payload[:model]
|
|
46
|
+
|
|
47
|
+
# Token tracking (when available)
|
|
48
|
+
attrs["llm.input_tokens"] = payload[:input_tokens] if payload[:input_tokens]
|
|
49
|
+
attrs["llm.output_tokens"] = payload[:output_tokens] if payload[:output_tokens]
|
|
50
|
+
|
|
51
|
+
# Tool-specific
|
|
52
|
+
attrs["llm.tool"] = payload[:tool_name] if payload[:tool_name]
|
|
53
|
+
attrs["llm.tool_args"] = payload[:tool_args] if payload[:tool_args] && payload[:tool_args].is_a?(String)
|
|
54
|
+
|
|
55
|
+
# Image-specific
|
|
56
|
+
attrs["llm.image.size"] = payload[:size] if payload[:size]
|
|
57
|
+
|
|
58
|
+
# Forward all metadata from the instrumentation context
|
|
59
|
+
Ask::Instrumentation.current_metadata.each do |key, value|
|
|
60
|
+
next if key.to_s.start_with?("llm.") # don't clobber explicit llm attributes
|
|
61
|
+
attrs["llm.metadata.#{key}"] = value
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
attrs
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def tracer
|
|
68
|
+
@tracer ||= ::OpenTelemetry.tracer_provider.tracer("ask-opentelemetry", Ask::OpenTelemetry::VERSION)
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
require "ask/instrumentation"
|
|
2
|
+
require "opentelemetry-api"
|
|
3
|
+
require_relative "open_telemetry/version"
|
|
4
|
+
|
|
5
|
+
module Ask
|
|
6
|
+
# OpenTelemetry tracing for the ask-rb ecosystem.
|
|
7
|
+
#
|
|
8
|
+
# Subscribes to +Ask::Instrumentation+ events and creates OpenTelemetry spans
|
|
9
|
+
# for chat completions, tool calls, embeddings, and image generation.
|
|
10
|
+
#
|
|
11
|
+
# == Usage
|
|
12
|
+
#
|
|
13
|
+
# Ask::OpenTelemetry.install
|
|
14
|
+
#
|
|
15
|
+
# In a Rails app the railtie installs automatically — no manual call needed.
|
|
16
|
+
module OpenTelemetry
|
|
17
|
+
autoload :Subscriber, "ask/open_telemetry/subscriber"
|
|
18
|
+
autoload :Railtie, "ask/open_telemetry/railtie"
|
|
19
|
+
|
|
20
|
+
class << self
|
|
21
|
+
# Subscribe to all ask events and start creating spans.
|
|
22
|
+
#
|
|
23
|
+
# Once called, every +Ask::Instrumentation+ event will be wrapped in an
|
|
24
|
+
# OpenTelemetry span. Safe to call multiple times — subsequent calls are
|
|
25
|
+
# no-ops.
|
|
26
|
+
def install
|
|
27
|
+
return if @installed
|
|
28
|
+
|
|
29
|
+
Ask::Instrumentation.subscribe(/\.ask$/, Subscriber.new)
|
|
30
|
+
@installed = true
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require_relative "ask/open_telemetry"
|
metadata
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: ask-opentelemetry
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Kaka Ruto
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: ask-instrumentation
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - "~>"
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '0.1'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - "~>"
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '0.1'
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: opentelemetry-api
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - "~>"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '1.3'
|
|
33
|
+
type: :runtime
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - "~>"
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '1.3'
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: opentelemetry-sdk
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - "~>"
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '1.7'
|
|
47
|
+
type: :runtime
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - "~>"
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '1.7'
|
|
54
|
+
- !ruby/object:Gem::Dependency
|
|
55
|
+
name: minitest
|
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - "~>"
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: '5.25'
|
|
61
|
+
type: :development
|
|
62
|
+
prerelease: false
|
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
- - "~>"
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: '5.25'
|
|
68
|
+
- !ruby/object:Gem::Dependency
|
|
69
|
+
name: rake
|
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
|
71
|
+
requirements:
|
|
72
|
+
- - "~>"
|
|
73
|
+
- !ruby/object:Gem::Version
|
|
74
|
+
version: '13.0'
|
|
75
|
+
type: :development
|
|
76
|
+
prerelease: false
|
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
78
|
+
requirements:
|
|
79
|
+
- - "~>"
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: '13.0'
|
|
82
|
+
description: Adds OpenTelemetry tracing to ask-rb LLM operations. Subscribes to ask-instrumentation
|
|
83
|
+
events and creates spans for chat completions, embeddings, tool calls, and more.
|
|
84
|
+
email:
|
|
85
|
+
- kaka@myrrlabs.com
|
|
86
|
+
executables: []
|
|
87
|
+
extensions: []
|
|
88
|
+
extra_rdoc_files: []
|
|
89
|
+
files:
|
|
90
|
+
- CHANGELOG.md
|
|
91
|
+
- LICENSE
|
|
92
|
+
- README.md
|
|
93
|
+
- lib/ask-opentelemetry.rb
|
|
94
|
+
- lib/ask/open_telemetry.rb
|
|
95
|
+
- lib/ask/open_telemetry/railtie.rb
|
|
96
|
+
- lib/ask/open_telemetry/subscriber.rb
|
|
97
|
+
- lib/ask/open_telemetry/version.rb
|
|
98
|
+
homepage: https://github.com/ask-rb/ask-opentelemetry
|
|
99
|
+
licenses:
|
|
100
|
+
- MIT
|
|
101
|
+
metadata:
|
|
102
|
+
homepage_uri: https://github.com/ask-rb/ask-opentelemetry
|
|
103
|
+
source_code_uri: https://github.com/ask-rb/ask-opentelemetry
|
|
104
|
+
changelog_uri: https://github.com/ask-rb/ask-opentelemetry/blob/master/CHANGELOG.md
|
|
105
|
+
rdoc_options: []
|
|
106
|
+
require_paths:
|
|
107
|
+
- lib
|
|
108
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
109
|
+
requirements:
|
|
110
|
+
- - ">="
|
|
111
|
+
- !ruby/object:Gem::Version
|
|
112
|
+
version: '3.2'
|
|
113
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
|
+
requirements:
|
|
115
|
+
- - ">="
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: '0'
|
|
118
|
+
requirements: []
|
|
119
|
+
rubygems_version: 4.0.3
|
|
120
|
+
specification_version: 4
|
|
121
|
+
summary: OpenTelemetry tracing for the ask-rb ecosystem
|
|
122
|
+
test_files: []
|