Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/inspector-apm/inspector-spring-demo

Spring application monitored by Inspector
https://github.com/inspector-apm/inspector-spring-demo

Last synced: about 6 hours ago
JSON representation

Spring application monitored by Inspector

Awesome Lists containing this project

README

        

# Spring Agent Setup

## How to install spring agent in a demo project

### 1. Add the following dependency to the pom.xml file

```

dev.inspector
springagent
1.0.0

```

### 2. Reload the maven dependencies

```
mvn clean install
```

### 3. Add the following configuration to the application.properties file

```
inspector.ingestion-key=81e6d4df93e1bfad8e9f3c062022e3a0d8a77dce
```

### 4. Start the application

Using the IDE to start the application

# Inspector Configuration Guide

This guide provides an overview of the necessary environment variables you need to set in your YAML configuration file to properly configure and use Inspector in your application.

## Environment Variables

To fully integrate Inspector, you need to set the following environment variables in your YAML file:

1. **INSPECTOR_INGESTION_KEY** - Your unique ingestion key for authenticating API requests.
- Example: `INSPECTOR_INGESTION_KEY="your_ingestion_key_here"`

2. **INSPECTOR_ENABLE** - Determines whether Inspector is enabled or disabled.
- Values: `true` or `false`
- Example: `INSPECTOR_ENABLE=true`

3 **INSPECTOR_MAX_ITEMS** - Defines the maximum number of items Inspector should handle per session.
- Example: `INSPECTOR_MAX_ITEMS=1000`

## Configuration Example

Here is a sample snippet from a YAML configuration file integrating these environment variables:

```yaml
environment:
INSPECTOR_INGESTION_KEY: "your_ingestion_key_here"
INSPECTOR_ENABLE: true
INSPECTOR_MAX_ITEMS: 1000