Skip to content

Commit

Permalink
Add Infinite Tracing host to NR (#635)
Browse files Browse the repository at this point in the history
* Add Infinite Tracing host to NR

* Fix lint

* Code review changes

* Revert to fix tests

Co-authored-by: wenedim <[email protected]>
  • Loading branch information
nmujagic and wenedim authored Sep 29, 2022
1 parent b616628 commit f666230
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ Object {
"distributed_tracing": Object {
"enabled": "true",
},
"infinite_tracing": Object {
"trace_observer": Object {
"host": "",
},
},
"license_key": "mylicensekey",
"logging": Object {
"level": "info",
Expand Down Expand Up @@ -55,6 +60,11 @@ Object {
"distributed_tracing": Object {
"enabled": "true",
},
"infinite_tracing": Object {
"trace_observer": Object {
"host": "",
},
},
"license_key": "0000000000000000",
"logging": Object {
"level": "info",
Expand Down
8 changes: 8 additions & 0 deletions packages/kununu-utils/newrelic/getConfig/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ module.exports = () => ({
distributed_tracing: {
enabled: 'true',
},
/**
* Sets Infinite tracer host if available, see https://one.eu.newrelic.com/edge
*/
infinite_tracing: {
trace_observer: {
host: (process.env.NR_INFINITE_TRACER_HOST) ? process.env.NR_INFINITE_TRACER_HOST : '',
},
},
attributes: {
/**
* Prefix of attributes to exclude from all destinations. Allows * as wildcard
Expand Down
2 changes: 1 addition & 1 deletion packages/kununu-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kununu/kununu-utils",
"version": "2.2.3",
"version": "2.3.0",
"description": "Utility functions used within kununu client applications",
"main": "dist",
"devDependencies": {
Expand Down

0 comments on commit f666230

Please sign in to comment.