Install the SDK
Install the package in your service.During private beta, your package name or package source may be different. Use the package name and feed URL provided during onboarding.
Minimal setup
For most services, start with your test API key.| Option | Default |
|---|---|
ServiceName | Project assembly name |
Environment | Current app environment |
Mode | test |
Configuration-based setup
For most real applications, load configuration fromappsettings.json, environment variables, or your secret manager.
Mode to live.
What the SDK captures
The exact data depends on your configuration and application type. The SDK can capture:- HTTP executions
- endpoint and method
- request query values
- request body context
- response body context
- execution duration
- outcome and failure evidence
- exception context
- logs, if logging integration is configured
- outbound HTTP telemetry
- metrics
- SDK health and performance signals
HTTP executions
For ASP.NET Core APIs, the middleware captures requests as executions.- service name
- environment
- mode
- endpoint
- method
- duration
- status
- request context
- response context
- logs, if configured
Worker services
Foveus can also be used in.NET Worker Service and BackgroundService apps.
Worker services use builder.Services.AddFoveus(...), but they do not call app.UseFoveus() because workers do not have an ASP.NET HTTP middleware pipeline.
Basic worker setup:
ILoggerlogs- logged exceptions
- outbound HTTP telemetry
- metrics
- trace propagation
- SDK shutdown flushing
- supported messaging instrumentation hooks
BackgroundService loops is not yet implemented.
See Worker services.
Request and response context
Foveus can capture structured request and response context. For example, if your response includes:Execution Context Search uses indexed context fields. It does not scan arbitrary raw request or response bodies.
Logs
If logging integration is enabled, Foveus can correlate logs with executions. This helps you inspect logs for one request or operation instead of searching through unrelated log streams. If your service uses Serilog, use the dedicated Serilog integration. See Serilog integration.Capture profiles
UseCaptureProfile to tune how much telemetry the SDK captures.
| Profile | Use for |
|---|---|
Balanced | Normal production usage. |
Debug | Local development or deep troubleshooting. |
HighThroughput | Busy services where low overhead matters most. |
Redaction and safety
Foveus applies redaction and safety controls before storing or indexing context. You can add domain-specific redacted fields.Performance controls
The SDK is designed to keep overhead bounded. You can tune:- capture profile
- context sampling
- request and response body capture
- maximum body size
- path exclusions
- batch size
- batch interval
- retry settings
- queue size
HighThroughput or lower the sampling rate.
Common setup
Local development
Staging
Production API
Production worker
Troubleshooting
No executions appear
Check that:- the API key is configured
- the service can reach Foveus
app.UseFoveus()is registered for ASP.NET Core APIs- the dashboard is showing the right mode
- the time range includes the request
- your service name matches your search
Worker logs appear, but jobs do not show as executions
That is expected for arbitraryBackgroundService loops today.
Foveus can capture worker logs, exceptions, outbound HTTP telemetry, metrics, and trace propagation, but full automatic per-job execution capture is still evolving.
Use structured lifecycle logs or supported messaging instrumentation.
The service name looks wrong
If you did not setServiceName, Foveus uses your project assembly name.
Override it if needed.
Response context is missing
Check that:- response body capture is enabled
- the response body is within the capture size limit
- the route is not excluded
- sampling did not skip the context snapshot
- redaction did not mask the field
Too much context is being captured
Use:ExcludedPathPrefixesExcludedExactPaths- lower
ContextSamplingRate CaptureProfile: "HighThroughput"- lower body capture settings
Next steps
- Configure the SDK: SDK configuration
- Set up worker services: Worker services
- Review all options: FoveusOptions
- Configure Serilog: Serilog integration
- Configure redaction: Redaction
- Review performance overhead: Performance overhead
- Send your first execution: Send your first execution