Skip to content

Commit 168f6ae

Browse files
committed
Don't call prepare in traces/provider.rb.
It can cause circular loading warnings.
1 parent c6a24b9 commit 168f6ae

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

lib/traces.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55

66
require_relative "traces/version"
77
require_relative "traces/provider"
8-
require_relative "traces/context"
98

109
# @namespace
1110
module Traces
11+
if self.enabled?
12+
Config::DEFAULT.prepare
13+
end
1214
end

lib/traces/provider.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ def self.Provider(klass, &block)
3636

3737
return provider
3838
end
39-
40-
Config::DEFAULT.prepare
4139
else
4240
def self.Provider(klass, &block)
4341
# Tracing disabled.

releases.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Releases
22

3+
## Unreleased
4+
5+
- Don't call `prepare` in `traces/provider.rb`. It can cause circular loading warnings.
6+
37
## v0.18.0
48

59
- **W3C Baggage Support** - Full support for W3C Baggage specification for application-specific context propagation.

0 commit comments

Comments
 (0)