# Operation Reporting - Nitro

> Nitro Operation Reporting gives insight into the GraphQL operations executed on your server; enable it with the `ChilliCream.Nitro` package and `AddNitro()`.

Canonical source: https://chillicream.com/docs/nitro/apis/operation-reporting

![Image](https://chillicream.com/images/nitro-docs/apis/operation-reporting-0.webp)

Nitro's Operation Reporting feature provides comprehensive insights into the GraphQL operations executed on your server. This functionality is essential for maintaining visibility over server activities, including both persisted and executed operations. By leveraging Operation Reporting, developers and system administrators can gain a clearer understanding of what operations are executed and available on the server.

## Enabling Operation Reporting

Operation Reporting is an integrated feature in Nitro and is enabled by default when using Nitro services. To integrate these services into your project, the [ChilliCream.Nitro](https://www.nuget.org/packages/ChilliCream.Nitro/) NuGet package must be added.

To install the Nitro services, run the following command in your project's root directory:

Bash

```
dotnet add package ChilliCream.Nitro
dotnet add package ChilliCream.Nitro.HotChocolate
```

After installing the package, you need to configure the services in your startup class. Below is a sample implementation in C#:

C#

```
public void ConfigureServices(IServiceCollection services)
{
    services
        .AddNitro(x =>
        {
            x.ApiKey = "<<your-api-key>>";
            x.ApiId = "QXBpCmc5NGYwZTIzNDZhZjQ0NjBmYTljNDNhZDA2ZmRkZDA2Ng==";
            x.Stage = "dev";
        })
        .AddDefaults();

    services
        .AddGraphQL()
        .AddQueryType<Query>();
}
```

Tip

**Using Environment Variables**

Alternatively, you can set the required values using environment variables. This method allows you to call `AddNitro` without explicitly passing parameters.

- `NITRO_API_KEY` maps to `ApiKey`
- `NITRO_API_ID` maps to `ApiId`
- `NITRO_STAGE` maps to `Stage`

C#

```
public void ConfigureServices(IServiceCollection services)
{
    services
        .AddNitro()
        .AddDefaults();

    services
        .AddGraphQL()
        .AddQueryType<Query>();
}
```

In this setup, the API key, ID, and stage are set through environment variables.

## Viewing Reported Operations

Once Operation Reporting is enabled and configured, all GraphQL operations processed by your server will be reported to Nitro. These operations can be viewed and analyzed in the `Operations` tab within the Nitro interface.

![Image](https://chillicream.com/images/nitro-docs/apis/operation-reporting-1.webp)

1. Click the `Operations` tab in Nitro to view the list of reported operations.
2. The name of the executed operation. Click to view the operation details.
3. The document ID of the persisted operation.
[Edit this page on GitHub](https://github.com/ChilliCream/graphql-platform/edit/main/website/content/docs/nitro/apis/operation-reporting.md)

Last updated on **June 30, 2026** by **Tobias Tengler**
