uptrace 1.2.1 → 1.2.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: 7fd9cbd69a42da344856df5d7fd7a7a1ae391e8a831ce045bd8008be07050de6
4
- data.tar.gz: 45bfcec0d69d51ff61ec5c00a7d3a9b3b7764614eac0981ccdad34ffc9b6e7ef
3
+ metadata.gz: 7b337f4c98d5b7ec15fd132be2ca475d847670849bc962ccf07c1b81231b70e5
4
+ data.tar.gz: 3132ef5b3ba04a8164b2f9f86e73d36ecb317309939fa877fe3363e2a98a75cd
5
5
  SHA512:
6
- metadata.gz: c5884bb52fb260f9ef122115d5e399d64db3a5a0c0c37fffe7ec12cd3c521e0de8276cb8e04bc0c8ae1f5d868df5f90e8bd4849d2c733d30d558b0b4c3ddc82c
7
- data.tar.gz: '0852731f85c1ac9d7fec78f9ab7dbbd8bf0365080532a54afbc6860d6facaff9dfd717ba202f456bdba56180ae732466ca267e2a6e25b0e9482b61165621081b'
6
+ metadata.gz: aab99b93dc7a4aa77851f90f1ff65b946a9698df3b88a701c5541163e294a67eabe00fd36ff24e31069a9d0443c286e8a2ac1d7113cda2eef8ee9bcf5bb7ea19
7
+ data.tar.gz: 55f723706b0dee67cd20b37bde410ea3da339eb5064bffa7586efbbe3057fc1305908af994f4e17f5f6f602a9a6401673dd72623f9c48adfbe5ad136cc93b235
@@ -15,20 +15,14 @@ module Uptrace
15
15
  # @return [#bytes]
16
16
  RANDOM = Random.respond_to?(:bytes) ? Random : Random::DEFAULT
17
17
 
18
- # An invalid trace identifier, a 16-byte string with all zero bytes.
19
- INVALID_TRACE_ID = ("\0" * 16).b
20
-
21
- # An invalid span identifier, an 8-byte string with all zero bytes.
22
- INVALID_SPAN_ID = ("\0" * 8).b
23
-
24
18
  # Generates a valid trace identifier, a 16-byte string with at least one
25
19
  # non-zero byte.
26
20
  #
27
21
  # @return [String] a valid trace ID.
28
22
  def generate_trace_id
29
23
  time = (Time.now.to_f * 1_000_000).to_i
30
- high = RANDOM.bytes(8)
31
- low = [time & 0xFFFFFFFF, time >> 32].pack('VV')
24
+ high = [time & 0xFFFFFFFF, time >> 32].pack('VV')
25
+ low = RANDOM.bytes(8)
32
26
  high << low
33
27
  end
34
28
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uptrace
4
- VERSION = '1.2.1'
4
+ VERSION = '1.2.2'
5
5
  end
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.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Uptrace Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-28 00:00:00.000000000 Z
11
+ date: 2022-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-exporter-otlp