@@ -40,6 +40,7 @@ object ScalaFutureInstrumentation {
40
40
* computation might be the result of applying several transformations to an initial Future. If you are interested in
41
41
* tracing the intermediate computations as well, take a look at the `traceBody` and `traceFunc` functions bellow.
42
42
*/
43
+ @ deprecated(" This method will be removed in Kamon 2.3.0. Use kamon.Tracing.span instead." , " Kamon 2.1.21" )
43
44
def trace [T ](operationName : String , tags : TagSet = TagSet .Empty , metricTags : TagSet = TagSet .Empty )(future : => Future [T ])
44
45
(implicit settings : Settings ): Future [T ] = {
45
46
@@ -59,6 +60,7 @@ object ScalaFutureInstrumentation {
59
60
* computation might be the result of applying several transformations to an initial Future. If you are interested in
60
61
* tracing the intermediate computations as well, take a look at the `traceBody` and `traceFunc` functions bellow.
61
62
*/
63
+ @ deprecated(" This method will be removed in Kamon 2.3.0. Use kamon.Tracing.span instead." , " Kamon 2.1.21" )
62
64
def trace [T ](spanBuilder : SpanBuilder )(future : => Future [T ])(implicit settings : Settings ): Future [T ] = {
63
65
if (settings.trackMetrics)
64
66
spanBuilder.trackMetrics()
@@ -93,6 +95,7 @@ object ScalaFutureInstrumentation {
93
95
* bytecode instrumentation. If instrumentation is disabled you risk leaving dirty threads that can cause
94
96
* incorrect Context propagation behavior.
95
97
*/
98
+ @ deprecated(" This method will be removed in Kamon 2.3.0. Use kamon.Tracing.span instead." , " Kamon 2.1.21" )
96
99
def traceBody [S ](operationName : String , tags : TagSet = TagSet .Empty , metricTags : TagSet = TagSet .Empty )(body : => S )
97
100
(implicit settings : Settings ): S = {
98
101
@@ -121,6 +124,7 @@ object ScalaFutureInstrumentation {
121
124
* bytecode instrumentation. If instrumentation is disabled you risk leaving dirty threads that can cause
122
125
* incorrect Context propagation behavior.
123
126
*/
127
+ @ deprecated(" This method will be removed in Kamon 2.3.0. Use kamon.Tracing.span instead." , " Kamon 2.1.21" )
124
128
def traceBody [S ](spanBuilder : SpanBuilder )(body : => S )(implicit settings : Settings ): S = {
125
129
val span = startedSpan(spanBuilder, settings)
126
130
Kamon .storeContext(Kamon .currentContext().withEntry(Span .Key , span))
@@ -154,6 +158,7 @@ object ScalaFutureInstrumentation {
154
158
* bytecode instrumentation. If instrumentation is disabled you risk leaving dirty threads that can cause
155
159
* incorrect Context propagation behavior.
156
160
*/
161
+ @ deprecated(" This method will be removed in Kamon 2.3.0. Use kamon.Tracing.span instead." , " Kamon 2.1.21" )
157
162
def traceFunc [T , S ](operationName : String , tags : TagSet = TagSet .Empty , metricTags : TagSet = TagSet .Empty )(body : T => S )
158
163
(implicit settings : Settings ): T => S = {
159
164
@@ -182,6 +187,7 @@ object ScalaFutureInstrumentation {
182
187
* bytecode instrumentation. If instrumentation is disabled you risk leaving dirty threads that can cause
183
188
* incorrect Context propagation behavior.
184
189
*/
190
+ @ deprecated(" This method will be removed in Kamon 2.3.0. Use kamon.Tracing.span instead." , " Kamon 2.1.21" )
185
191
def traceFunc [T , S ](spanBuilder : SpanBuilder )(body : T => S )(implicit settings : Settings ): T => S = { t : T =>
186
192
val span = startedSpan(spanBuilder, settings)
187
193
Kamon .storeContext(Kamon .currentContext().withEntry(Span .Key , span))
@@ -201,8 +207,10 @@ object ScalaFutureInstrumentation {
201
207
/**
202
208
* Settings for the Delayed Spans created by the traceBody and traceFunc helper functions.
203
209
*/
210
+ @ deprecated(" This class will be removed in Kamon 2.3.0. Access the current Span and change settings on it instead." , " Kamon 2.1.21" )
204
211
case class Settings (trackMetrics : Boolean , trackDelayedSpanMetrics : Boolean )
205
212
213
+ @ deprecated(" This object will be removed in Kamon 2.3.0. Access the current Span and change settings on it instead." , " Kamon 2.1.21" )
206
214
object Settings {
207
215
208
216
@ volatile private var _settingsFromConfig = readSettingsFromConfig(Kamon .config())
0 commit comments