uptrace 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +7 -4
- data/lib/uptrace/client.rb +0 -10
- data/lib/uptrace/version.rb +1 -1
- data/lib/uptrace.rb +3 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c320ccec5439c9c74f4127443eb875ad2426bdb3efb3e83ef246ac8f1a69d4e3
|
4
|
+
data.tar.gz: 88449bc895c39171505069b5d10574b807ebdcc3badc95a77792609ef7f63b90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aed13462dbcefbceae6a239cc4cf206c46d69740f70a752c0317aac40c4b073d2ae965b413868af63f4520276bbdff39c46ee70cc9f22233d3699d9478c8435b
|
7
|
+
data.tar.gz: e8f8e3fd095d9fee1bea930870ca5b330f848510005504c31a5f3c9f610c2eb2897d451ce40a81392b9e50c7c62d66fa767664c290c37caff3dd64d43e82b832
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Uptrace Ruby exporter for OpenTelemetry
|
2
2
|
|
3
3
|
![build workflow](https://github.com/uptrace/uptrace-ruby/actions/workflows/build.yml/badge.svg)
|
4
|
-
[![Documentation](https://img.shields.io/badge/uptrace-documentation-informational)](https://docs.uptrace.dev/ruby
|
4
|
+
[![Documentation](https://img.shields.io/badge/uptrace-documentation-informational)](https://docs.uptrace.dev/guide/ruby.html)
|
5
5
|
|
6
6
|
<a href="https://docs.uptrace.dev/guide/ruby.html">
|
7
7
|
<img src="https://docs.uptrace.dev/devicon/ruby-original.svg" height="200px" />
|
@@ -10,7 +10,7 @@
|
|
10
10
|
## Introduction
|
11
11
|
|
12
12
|
uptrace-ruby is an OpenTelemery distribution configured to export
|
13
|
-
[traces](https://
|
13
|
+
[traces](https://opentelemetry.uptrace.dev/guide/distributed-tracing.html) to Uptrace.
|
14
14
|
|
15
15
|
## Quickstart
|
16
16
|
|
@@ -60,5 +60,8 @@ end
|
|
60
60
|
OpenTelemetry.tracer_provider.shutdown
|
61
61
|
```
|
62
62
|
|
63
|
-
|
64
|
-
|
63
|
+
## Links
|
64
|
+
|
65
|
+
- [Examples](example)
|
66
|
+
- [Documentation](https://docs.uptrace.dev/guide/ruby.html)
|
67
|
+
- [Instrumentations](https://opentelemetry.uptrace.dev/instrumentations.html?lang=ruby)
|
data/lib/uptrace/client.rb
CHANGED
@@ -24,15 +24,5 @@ module Uptrace
|
|
24
24
|
def disabled?
|
25
25
|
@disabled
|
26
26
|
end
|
27
|
-
|
28
|
-
# @param [optional OpenTelemetry::Trace::Span] span
|
29
|
-
# @return [String]
|
30
|
-
def trace_url(span = nil)
|
31
|
-
span = OpenTelemetry::Trace.current_span if span.nil?
|
32
|
-
|
33
|
-
host = @dsn.host.delete_prefix('api.')
|
34
|
-
trace_id = span.context.hex_trace_id
|
35
|
-
"#{@dsn.scheme}://#{host}/search/#{@dsn.project_id}?q=#{trace_id}"
|
36
|
-
end
|
37
27
|
end
|
38
28
|
end
|
data/lib/uptrace/version.rb
CHANGED
data/lib/uptrace.rb
CHANGED
@@ -21,7 +21,9 @@ module Uptrace
|
|
21
21
|
# @param [optional OpenTelemetry::Trace::Span] span
|
22
22
|
# @return [String]
|
23
23
|
def trace_url(span = nil)
|
24
|
-
|
24
|
+
span = OpenTelemetry::Trace.current_span if span.nil?
|
25
|
+
trace_id = span.context.hex_trace_id
|
26
|
+
"https://app.uptrace.dev/traces/#{trace_id}"
|
25
27
|
end
|
26
28
|
|
27
29
|
# ConfigureOpentelemetry configures OpenTelemetry to export data to Uptrace.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uptrace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Uptrace Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-exporter-otlp
|
@@ -72,56 +72,56 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '13.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '13.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rubocop
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 1.
|
89
|
+
version: 1.22.3
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 1.
|
96
|
+
version: 1.22.3
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rubocop-minitest
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
103
|
+
version: 0.15.2
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
110
|
+
version: 0.15.2
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rubocop-rake
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
117
|
+
version: 0.6.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.
|
124
|
+
version: 0.6.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: yard
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|