Skip to content

Commit bca4a45

Browse files
committed
Use consistent casing in tag names
1 parent 4e23ca3 commit bca4a45

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

src/Compiler/Driver/ParseAndCheckInputs.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@ let CheckOneInputAux
11991199
cancellable {
12001200
try
12011201
use _ =
1202-
Activity.Start "ParseAndCheckInputs.CheckOneInput" [| "inputName", inp.FileName |]
1202+
Activity.Start "ParseAndCheckInputs.CheckOneInput" [| "fileName", inp.FileName |]
12031203

12041204
CheckSimulateException tcConfig
12051205

src/Compiler/Facilities/Logger.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module Activity =
1111

1212
let private activitySource = new ActivitySource("fsc")
1313

14-
let Start name (tags:(string * #obj) seq) : IDisposable =
14+
let Start name (tags:(string * string) seq) : IDisposable =
1515
let act = activitySource.StartActivity(name)
1616
for key,value in tags do
1717
act.AddTag(key,value) |> ignore

src/Compiler/Facilities/Logger.fsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ module internal Activity =
1212

1313
val StartNoTags: name: string -> IDisposable
1414

15-
val Start: name: string -> tags: (string * #obj) seq -> IDisposable
15+
val Start: name: string -> tags: (string * string) seq -> IDisposable

src/Compiler/Service/FSharpCheckerResults.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2491,8 +2491,8 @@ module internal ParseAndCheckFile =
24912491
Activity.Start
24922492
"ParseAndCheckFile.CheckOneFile"
24932493
[|
2494-
"mainInputFileName", mainInputFileName
2495-
"Length", sourceText.Length.ToString()
2494+
"fileName", mainInputFileName
2495+
"length", sourceText.Length.ToString()
24962496
|]
24972497

24982498
let parsedMainInput = parseResults.ParseTree

src/Compiler/Service/IncrementalBuild.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ type BoundModel private (tcConfig: TcConfig,
536536
// Build symbol keys
537537
let itemKeyStore, semanticClassification =
538538
if enableBackgroundItemKeyStoreAndSemanticClassification then
539-
use _ = Activity.Start "IncrementalBuild.CreateItemKeyStoreAndSemanticClassification" [|"fileName",fileName|]
539+
use _ = Activity.Start "IncrementalBuild.CreateItemKeyStoreAndSemanticClassification" [|"fileName", fileName|]
540540
let sResolutions = sink.GetResolutions()
541541
let builder = ItemKeyStoreBuilder()
542542
let preventDuplicates = HashSet({ new IEqualityComparer<struct(pos * pos)> with

src/Compiler/Service/service.fs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ type BackgroundCompiler
467467
member _.ParseFile(fileName: string, sourceText: ISourceText, options: FSharpParsingOptions, cache: bool, userOpName: string) =
468468
async {
469469
use _ =
470-
Activity.Start "BackgroundCompiler.ParseFile" [| "filename", fileName; "UserOpName", userOpName; "cache", cache.ToString() |]
470+
Activity.Start "BackgroundCompiler.ParseFile" [| "fileName", fileName; "userOpName", userOpName; "cache", cache.ToString() |]
471471

472472
if cache then
473473
let hash = sourceText.GetHashCode() |> int64
@@ -494,7 +494,7 @@ type BackgroundCompiler
494494
member _.GetBackgroundParseResultsForFileInProject(fileName, options, userOpName) =
495495
node {
496496
use _ =
497-
Activity.Start "BackgroundCompiler.GetBackgroundParseResultsForFileInProject" [| "filename", fileName; "UserOpName", userOpName |]
497+
Activity.Start "BackgroundCompiler.GetBackgroundParseResultsForFileInProject" [| "fileName", fileName; "userOpName", userOpName |]
498498

499499
let! builderOpt, creationDiags = getOrCreateBuilder (options, userOpName)
500500

@@ -523,7 +523,7 @@ type BackgroundCompiler
523523

524524
member _.GetCachedCheckFileResult(builder: IncrementalBuilder, fileName, sourceText: ISourceText, options) =
525525
node {
526-
use _ = Activity.Start "BackgroundCompiler.GetCachedCheckFileResult" [| "filename", fileName |]
526+
use _ = Activity.Start "BackgroundCompiler.GetCachedCheckFileResult" [| "fileName", fileName |]
527527
let hash = sourceText.GetHashCode() |> int64
528528
let key = (fileName, hash, options)
529529
let cachedResultsOpt = parseCacheLock.AcquireLock(fun ltok -> checkFileInProjectCache.TryGet(ltok, key))
@@ -630,9 +630,9 @@ type BackgroundCompiler
630630
Activity.Start
631631
"BackgroundCompiler.CheckFileInProjectAllowingStaleCachedResults"
632632
[|
633-
"Project", options.ProjectFileName
634-
"filename", fileName
635-
"UserOpName", userOpName
633+
"project", options.ProjectFileName
634+
"fileName", fileName
635+
"userOpName", userOpName
636636
|]
637637

638638
let! cachedResults =

0 commit comments

Comments
 (0)