Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenTelemetry settings #1831

Merged
merged 2 commits into from
Feb 26, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions release/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,25 @@
"description": "Automatically shows the MSBuild output panel when MSBuild functionality is invoked",
"type": "boolean"
},
"FSharp.notifications.trace": {
"default": false,
"description": "Enables more verbose notifications using System.Diagnostics.Activity to view traces from FSharp.Compiler.Service.",
"type" : "boolean"
},
"FSharp.notifications.traceNamespaces": {
"default": [
"BoundModel.TypeCheck",
"BackgroundCompiler."
],
"description": "The set of System.Diagnostics.Activity names to watch.",
"type" : "array",
"required": ["FSharp.notifications.trace"]
},
"FSharp.openTelemetry.enabled": {
baronfel marked this conversation as resolved.
Show resolved Hide resolved
"default": false,
"description": "Enables OpenTelemetry exporter. See https://opentelemetry.io/docs/reference/specification/protocol/exporter/ for environment variables to configure for the exporter. Requires Restart.",
"type": "boolean"
},
"FSharp.pipelineHints.enabled": {
"default": true,
"description": "Enables PipeLine hints, which are like LineLenses that appear along each step of a chain of piped expressions",
Expand Down
5 changes: 5 additions & 0 deletions src/Core/LanguageService.fs
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,9 @@ Consider:
let enableAdaptiveLspServer =
"FSharp.enableAdaptiveLspServer" |> Configuration.get false

let openTelemetryEnabled =
"FSharp.openTelemetry.enabled" |> Configuration.get false

let enableProjectGraph =
"FSharp.enableMSBuildProjectGraph" |> Configuration.get false

Expand Down Expand Up @@ -807,6 +810,8 @@ Consider:
yield "--project-graph-enabled"
if enableAdaptiveLspServer then
yield "--adaptive-lsp-server-enabled"
if openTelemetryEnabled then
yield "--otel-exporter-enabled"
if verbose then
yield "--verbose"
if fsacSilencedLogs <> null && fsacSilencedLogs.Length > 0 then
Expand Down