Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ilvalerione committed May 3, 2021
1 parent aa5d71e commit 0a1957a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ composer require inspector-apm/inspector-symfony

<a name="api-key"></a>

### 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.
Expand Down
2 changes: 1 addition & 1 deletion recipe/config/packages/inspector.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
inspector:
api_key: '%env(INSPECTOR_API_KEY)%'
ingestion_key: '%env(INSPECTOR_INGESTION_KEY)%'
2 changes: 1 addition & 1 deletion src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0a1957a

Please sign in to comment.