Skip to content

Injecting server name and IP. This way we can use this in dockerized …#9

Open
mstipanov wants to merge 1 commit intotapstream:masterfrom
mstipanov:docker-support
Open

Injecting server name and IP. This way we can use this in dockerized …#9
mstipanov wants to merge 1 commit intotapstream:masterfrom
mstipanov:docker-support

Conversation

@mstipanov
Copy link

…applications.

Usage - inline:

<appender name="ROLLBAR" class="com.tapstream.rollbar.RollbarAppender">
    <apiKey>my-key</apiKey>
    <environment>my-app</environment>
    <serverIp>1.2.3.4</serverIp>
    <serverName>my-machine</serverName>
</appender>

Usage with environment variables:

<appender name="ROLLBAR" class="com.tapstream.rollbar.RollbarAppender">
    <apiKey>${ROLLBAR_API_KEY}</apiKey>
    <environment>my-app</environment>
    <serverIp>${HOST_LOCAL_IP}</serverIp>
    <serverName>${HOST_LOCAL}</serverName>
</appender>

If environment variable is not defined, old implementation will be used.

…applications.

Usage - inline:

```xml
<appender name="ROLLBAR" class="com.tapstream.rollbar.RollbarAppender">
    <apiKey>my-key</apiKey>
    <environment>my-app</environment>
    <serverIp>1.2.3.4</serverIp>
    <serverName>my-machine</serverName>
</appender>
```

Usage with environment variables:
```xml
<appender name="ROLLBAR" class="com.tapstream.rollbar.RollbarAppender">
    <apiKey>${ROLLBAR_API_KEY}</apiKey>
    <environment>my-app</environment>
    <serverIp>${HOST_LOCAL_IP}</serverIp>
    <serverName>${HOST_LOCAL}</serverName>
</appender>
```
If environment variable is not defined, old implementation will be used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant