File tree 2 files changed +13
-9
lines changed
vsintegration/src/FSharp.Editor/Common
2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -876,7 +876,8 @@ type StackGuard(maxDepth: int, name: string) =
876
876
[<CallerLineNumber; Optional; DefaultParameterValue( 0 ) >] line : int
877
877
) =
878
878
879
- Activity.logEvent " DiagnosticsLogger.StackGuard.Guard"
879
+ Activity.logEvent
880
+ " DiagnosticsLogger.StackGuard.Guard"
880
881
( seq {
881
882
Activity.Tags.stackGuardName, box name
882
883
Activity.Tags.stackGuardCurrentDepth, depth
@@ -886,7 +887,6 @@ type StackGuard(maxDepth: int, name: string) =
886
887
Activity.Tags.callerLineNumber, line
887
888
})
888
889
889
-
890
890
depth <- depth + 1
891
891
892
892
try
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ module Logging =
120
120
121
121
#if DEBUG
122
122
module Activity =
123
-
123
+
124
124
open OpenTelemetry.Resources
125
125
open OpenTelemetry.Trace
126
126
@@ -153,12 +153,16 @@ module Activity =
153
153
ActivitySource.AddActivityListener( listener)
154
154
155
155
let export () =
156
- OpenTelemetry.Sdk.CreateTracerProviderBuilder()
157
- .AddSource( ActivityNames.FscSourceName)
158
- .SetResourceBuilder(
159
- ResourceBuilder.CreateDefault() .AddService( serviceName= " F#" , serviceVersion = " 1.0.0" ))
160
- .AddOtlpExporter()
161
- .Build()
156
+ OpenTelemetry.Sdk
157
+ .CreateTracerProviderBuilder()
158
+ .AddSource( ActivityNames.FscSourceName)
159
+ .SetResourceBuilder(
160
+ ResourceBuilder
161
+ .CreateDefault()
162
+ .AddService( serviceName = " F#" , serviceVersion = " 1.0.0" )
163
+ )
164
+ .AddOtlpExporter()
165
+ .Build()
162
166
163
167
let listenToAll () = listen " "
164
168
#endif
You can’t perform that action at this time.
0 commit comments