diff --git a/README.md b/README.md index 833562a..7b6595b 100644 --- a/README.md +++ b/README.md @@ -24,13 +24,13 @@ composer require inspector-apm/inspector-symfony -### Configure the API Key +### Configure the INGESTION Key -Create the `inspector.yaml` configuration file in your `config/packages` directory, and put the `api_key` field inside: +Create the `inspector.yaml` configuration file in your `config/packages` directory, and put the `ingestion_key` field inside: ```yaml inspector: - api_key: [your-application-api-key] + api_key: [your-ingestion-key] ``` You can obtain the `api_key` creating a new project in your [Inspector](https://www.inspector.dev) dashboard. diff --git a/recipe/config/packages/inspector.yaml b/recipe/config/packages/inspector.yaml index 1008c61..97beabe 100644 --- a/recipe/config/packages/inspector.yaml +++ b/recipe/config/packages/inspector.yaml @@ -1,2 +1,2 @@ inspector: - api_key: '%env(INSPECTOR_API_KEY)%' + ingestion_key: '%env(INSPECTOR_INGESTION_KEY)%' diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index 5baacde..41cff17 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -18,7 +18,7 @@ public function getConfigTreeBuilder() $tree->getRootNode()->children() ->booleanNode('enabled')->defaultTrue()->end() ->scalarNode('url')->defaultValue('https://ingest.inspector.dev')->end() - ->scalarNode('api_key')->defaultNull()->end() + ->scalarNode('ingestion_key')->defaultNull()->end() ->booleanNode('unhandled_exceptions')->defaultTrue()->end() ->booleanNode('query')->defaultTrue()->end() ->booleanNode('query_bindings')->defaultFalse()->end()