Skip to main content
Version: 2027 R1

OpenTelemetry section configuration

The OpenTelemetry section of the appsettings.json file enables collecting telemetry data from the Portal and the Service and forwarding it to external monitoring systems. It covers three types of data:

  • metrics (Metrics) — numeric values describing application operation, e.g., the number of requests, memory and CPU usage, the number of form openings,
  • traces (Tracing) — the course of individual operations, e.g., HTTP requests together with the SQL queries executed and the external service calls made,
  • logs (Logs) — application log entries sent using the OpenTelemetry standard (OTLP).

Data can be scraped by Prometheus or sent to any receiver that supports the OTLP protocol, e.g., OpenTelemetry Collector, Jaeger, Grafana, Honeycomb. Optionally, telemetry can be sent to Azure Application Insights.

danger

Make changes only in the appsettings.Production.json file. The appsettings.json file is overwritten during updates — see appsettings.json file configuration.

info

Starting with version 2026 R1, the OpenTelemetry configuration is located in the appsettings.json file. The previously used otlpsettings.json file is no longer read. More information: OpenTelemetry in WEBCON 2026 R1.

Support in the Portal and the Service​

FeaturePortalService
MetricsYesYes
Metrics scraping by PrometheusYesYes
TracesYesYes
Logs via OTLPYesNo
OTLP exportYesYes

Service metrics addresses​

The Service consists of three processes, and each of them exposes metrics at a separate address:

ProcessMetrics addressHow to change
WebCon.WorkFlow.Bootstrapper.exePort not specified by default.The Kestrel.Endpoints node in the Service appsettings.Production.json file — see Kestrel.
WebCon.WorkFlow.Module.ServiceModuleRunner.exePort 48450.The serviceModuleRunnerPort parameter in the modulesettings.modulesOrchestration.Production.json file.
WebCon.WorkFlow.Service.exehttp://localhost:9464The service.Otlp.Prometheus.Uri parameter in the modulesettings.service.Production.json file in the OldService directory.
caution

After changing the default address http://localhost:9464, the new address must be registered for the account the Service runs as.

Default configuration​

In the appsettings.json template, all features are disabled (Enabled: false) and the exporter lists are empty:

"OpenTelemetry": {
"Metrics": {
"Enabled": false,
"Prometheus": {
"Enabled": true,
"Endpoint": "/metrics",
"CacheDuration": 100
},
"Exporters": {}
},
"Tracing": {
"Enabled": false,
"ShowExceptions": true,
"HttpTracing": true,
"SqlTracing": {
"Enabled": true,
"ShowDbStatements": true
},
"Exporters": {}
},
"Logs": {
"Enabled": false,
"Exporters": {}
}
}

Nested parameters (e.g., Prometheus.Enabled, SqlTracing.Enabled) take effect only after the parent node is enabled (Metrics.Enabled, Tracing.Enabled).

Metrics​

ParameterTypeDefault valueDescription
Enabledtrue / falsefalseEnables metrics collection. When enabled, all available metric sources are activated automatically.
Prometheus.Enabledtrue / falsetrueExposes metrics for scraping by Prometheus at the address specified in Prometheus.Endpoint.
Prometheus.Endpointtext/metricsPath at which Prometheus scrapes metrics, e.g., https://bps.company.com/metrics.
Prometheus.CacheDurationnumber (milliseconds)100Time during which calculated metric values are cached and returned without being recalculated.
Exportersobject{}Exporters that send metrics via OTLP — see Exporters.

Collected metrics:

SourceScope
ProcessMemory, CPU, threads, disk and network operations of the application process.
.NET runtimeIncluding garbage collection, thread pool, exceptions.
Incoming HTTP requestsNumber and processing time of requests.
Outgoing HTTP requestsNumber and duration of external service calls.
WEBCON metricsIncluding path transitions, form openings, queues, and Service modules. Starting with version 2026 R2, metric and trace names are written in lowercase, with dots separating namespaces, in the webcon namespace. Full list: OpenTelemetry metrics and traces.
Access to the metrics address

The metrics address does not require authentication and is exposed on the same address and port as the application, e.g. https://bps.company.com/metrics. Metrics reveal information about how the system works, so restrict access to this address, e.g. with an IIS or firewall rule. The address is active only when both Metrics.Enabled and Prometheus.Enabled are enabled.

Tracing​

ParameterTypeDefault valueDescription
Enabledtrue / falsefalseEnables trace collection.
ShowExceptionstrue / falsetrueAttaches to traces the details of exceptions that occurred during the operation.
HttpTracingtrue / falsetrueRecords incoming and outgoing HTTP requests.
SqlTracing.Enabledtrue / falsetrueRecords database operations.
SqlTracing.ShowDbStatementstrue / falsetrueAttaches to traces the text of the SQL queries executed.
Exportersobject{}Exporters that send traces — see Exporters.

The following are recorded: requests handled by the application, SQL Server queries, HTTP calls, and WCF service calls.

Sensitive data in traces

When ShowDbStatements is enabled, traces contain the text of SQL queries and the database connection string (with the password removed before recording), and when ShowExceptions is enabled, they contain exception messages. These may include business data. Consider disabling these options before sending traces to an external service.

tip

Trace collection increases the application load. In a production environment, enable it only while troubleshooting performance problems, or route traces to a collector that applies sampling.

Span event limit

The default OpenTelemetry limits may be too low for Service traces. Increase the OTEL_SPAN_EVENT_COUNT_LIMIT environment variable on the Service server, e.g. to 10240. For a description of the limits, see OpenTelemetry Environment Variable Specification – Span Limits.

Logs​

ParameterTypeDefault valueDescription
Enabledtrue / falsefalseEnables sending application logs (Serilog) via OTLP. Available only in the Portal.
Exportersobject{}Exporters that send logs — see Exporters.

Entries that have passed the MinimumLevel filter from the Serilog section are sent.

Exporters​

The Exporters node appears separately in Metrics, Tracing, and Logs. Each exporter is an entry with an arbitrary, unique name (e.g., Otlp, Jaeger, HoneyComb) with the following structure:

"<exporter name>": {
"Enabled": true,
"Endpoint": "<receiver address>",
"Headers": "<headers>",
"Protocol": "http"
}
ParameterTypeDescription
Enabledtrue / falseEnables the exporter. Allows you to temporarily disable an exporter without removing its configuration.
EndpointtextThe full address of the data receiver. The application does not append a path to it – for the http protocol, include it in the address, e.g. /v1/traces, /v1/metrics or /v1/logs.
HeaderstextOptional headers sent with the data, most often an authentication key, e.g. x-honeycomb-team=<API key>. In the Metrics and Tracing nodes, separate multiple headers with commas, and in the Logs node – with semicolons.
ProtocolhttpOTLP data transfer protocol. The recommended value is http (HTTP/protobuf, usually port 4318). Starting with version 2026 R2, the grpc protocol is not supported – change any entries set to grpc to http, otherwise the Service may fail to start.

You can define multiple exporters at the same time — data will be sent to every enabled receiver.

Configuration example​

The following example of the Portal appsettings.Production.json file enables:

  • metrics scraped by Prometheus,
  • traces sent to a local Jaeger instance and to OpenTelemetry Collector,
  • logs sent to OpenTelemetry Collector.
{
"OpenTelemetry": {
"Metrics": {
"Enabled": true,
"Prometheus": {
"Enabled": true,
"Endpoint": "/metrics",
"CacheDuration": 100
}
},
"Tracing": {
"Enabled": true,
"SqlTracing": {
"Enabled": true,
"ShowDbStatements": false
},
"Exporters": {
"Jaeger": {
"Enabled": true,
"Endpoint": "http://localhost:4318/v1/traces",
"Protocol": "http"
},
"Otlp": {
"Enabled": true,
"Endpoint": "http://<collector address>:4318/v1/traces",
"Protocol": "http"
}
}
},
"Logs": {
"Enabled": true,
"Exporters": {
"Otlp": {
"Enabled": true,
"Endpoint": "http://<collector address>:4318/v1/logs",
"Protocol": "http"
}
}
}
}
}

Example exporter for the Honeycomb service (EU region):

"HoneyComb": {
"Enabled": true,
"Endpoint": "https://api.eu1.honeycomb.io/v1/traces",
"Headers": "x-honeycomb-team=<API key>",
"Protocol": "http"
}

The Honeycomb address depends on the account region (EU or North America) — check it in your account settings.

Sample entries in the prometheus.yml file that scrape metrics from the Portal and from the Service WebCon.WorkFlow.Service.exe process:

scrape_configs:
- job_name: 'bpsportal'
scheme: https
metrics_path: /metrics
static_configs:
- targets: ["<Portal address>:<port>"]
- job_name: 'bpsservice'
metrics_path: /metrics
static_configs:
- targets: ["<Service server address>:9464"]

The default address http://localhost:9464 is available only locally. To allow Prometheus running on another server to scrape Service metrics, change the address as described in the table in the Service metrics addresses section.

The prometheus.yml file requires indentation with spaces — tab characters cause a configuration parsing error.

Azure Application Insights​

Telemetry can be sent directly to Azure Application Insights. The configuration is located in a separate ApplicationInsights section at the top level of the file (outside the OpenTelemetry section). This section is not included in the template.

{
"ApplicationInsights": {
"ConnectionString": "<Application Insights connection string>"
}
}
ParameterTypeDescription
ConnectionStringtextConnection string copied from the Application Insights resource in the Azure portal (Overview → Connection String).
caution

Setting ApplicationInsights.ConnectionString alone causes all telemetry to be sent to Application Insights, regardless of the Enabled values in the OpenTelemetry section.

Applying changes​

After changing the configuration, recycle the Portal application pool in IIS or restart the Service — see How to apply changes. If data does not reach the receiver, check the application logs (Troubleshooting) and verify that the Portal/Service server has network access to the address specified in Endpoint.

info

Description of deploying a sample monitoring environment (Prometheus, Grafana, Jaeger, Honeycomb): OpenTelemetry in WEBCON 2026 R1.