Skip to content

Commit 04ed0b9

Browse files
authored
Merge pull request #10025 from NipunaMadhushan/update-observability-doc
Update New Relic guide
2 parents 9dbc7b9 + e4d97e5 commit 04ed0b9

File tree

1 file changed

+13
-7
lines changed
  • swan-lake/development-tutorials/observability/supported-observability-tools-and-platforms

1 file changed

+13
-7
lines changed

swan-lake/development-tutorials/observability/supported-observability-tools-and-platforms/new-relic.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,19 @@ metricsEnabled=true
4040
metricsReporter="newrelic"
4141

4242
[ballerinax.newrelic]
43-
apiKey="<NEW_RELIC_LICENSE_KEY>"
44-
tracingSamplerType="const"
45-
tracingSamplerParam=1
46-
tracingReporterFlushInterval=15000
47-
tracingReporterBufferSize=10000
48-
metricReporterFlushInterval=15000
49-
metricReporterClientTimeout=10000
43+
apiKey="<NEW_RELIC_LICENSE_KEY>" # Mandatory Configuration.
44+
tracingSamplerType="const" # Optional Configuration. Default value is 'const'
45+
tracingSamplerParam=1 # Optional Configuration. Default value is 1
46+
tracingReporterFlushInterval=15000 # Optional Configuration. Default value is 15000 milliseconds
47+
tracingReporterBufferSize=10000 # Optional Configuration. Default value is 10000
48+
metricReporterFlushInterval=15000 # Optional Configuration. Default value is 15000 milliseconds
49+
metricReporterClientTimeout=10000 # Optional Configuration. Default value is 10000 milliseconds
50+
isTraceLoggingEnabled=false # Optional Configuration. Default value is false
51+
isPayloadLoggingEnabled=false # Optional Configuration. Default value is false
52+
53+
[ballerinax.newrelic.additionalAttributes] # Optional Configuration. Add custom attributes (key & value pair) to metrics
54+
key1 = "<VALUE_1>"
55+
key2 = "<VALUE_2>"
5056
```
5157

5258
>**Tip:** User can configure the environment variable `BALLERINA_NEW_RELIC_API_KEY` instead of apiKey in `Config.toml`. If both are configured, apiKey in `Config.toml` will be overwritten by the environment variable value.

0 commit comments

Comments
 (0)