website/src/blog/2025-03-17-open-telemetry-for-everyone/2025-03-17-open-telemetry-for-everyone.md
We’re thrilled to introduce OpenTelemetry support for all your .NET-based services - not just your GraphQL Servers. Whether you have REST APIs, background workers, or any other .NET applications, you can now unify and analyze your telemetry data in Nitro. This marks a significant step in helping you gain deeper insights across your entire infrastructure.
With ChilliCream.Nitro.Telemetry version 15.0.0 and 14.1.0, simply call the extension method AddNitroTelemetry in your service registration to integrate Nitro with any .NET service. All you need to do is configure OpenTelemetry exporters, and Nitro will collect and visualize your logs and traces:
services.ConfigureOpenTelemetryTracerProvider(x => x.AddNitroExporter());
services.ConfigureOpenTelemetryLoggerProvider(x => x.AddNitroExporter());
services.AddNitroTelemetry(options =>
{
options.ApiId = apiId;
options.ApiKey = apiKey;
options.Stage = stage;
});
On the trace overview of your API in the Nitro dashboard, select OpenTelemetry from the dropdown on the top right. You’ll be able to inspect all your HTTP requests, background workers, or anything else you’re tracking with OTEL. We’ve also drastically improved telemetry performance, so these insights will load and refresh faster than ever.
In this post, you’ll also learn about:
Read on to discover how you can level up your .NET observability and API management automation, all within one powerful platform.
To provide more flexibility and security in your automation processes, we have introduced Personal Access Tokens (PATs). PATs allow you to authenticate with the Nitro platform in a secure and granular manner, ideal for scripting and automated tasks.
Personal Access Tokens are tokens associated with your user account that grant access to the Nitro API.
You can create a PAT using the following command:
nitro pat create --description "My Automation Token" --expires 180
--description: A description for the token to help you identify it later.--expires: The number of days after which the token will expire (default is 180 days).We have improved the Nitro CLI to support full non-interactive execution for all commands. This enhancement empowers you to automate every aspect of your API lifecycle management, from creating APIs and editing stages to generating API keys.
All commands now accept input via command-line options or environment variables, allowing you to bypass interactive prompts. For example, to create an API non-interactively:
nitro api create --name "My API" --path "/my-api" --workspace-id "workspace123"
You can also set environment variables for inputs:
export NITRO_API_NAME="My API"
export NITRO_API_PATH="/my-api"
export NITRO_WORKSPACE_ID="workspace123"
nitro api create
By default, Nitro CLI provides human-readable output. When automating, you might need machine-readable output. Use the --output json option to get the output in JSON format:
nitro api-key list --output json
This output can then be parsed using tools like jq:
nitro api-key list --output json | jq '.'
API Keys
nitro api-key create command.Personal Access Tokens (PATs)
nitro pat create command.With expanded OpenTelemetry integration, personal access tokens, and full non-interactive command support, it’s never been easier to automate your API management workflows while simultaneously gaining comprehensive insights into your.NET services. Try out the improved telemetry overview, create your first PAT, and add Nitro to your automation pipelines to take full advantage of these new features.
Whether you’re integrating OpenTelemetry for the first time or looking to streamline your API automation, our support contracts provide expert guidance to help you get up and running quickly. From troubleshooting to best practices, our team is here to ensure your success. Learn more about our support plans and get tailored assistance for your specific needs.