forked from open-telemetry/opentelemetry-demo
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Variable paymentservice error rate and introduce loyalty level attrib…
…utes (open-telemetry#1815) * 75% error by version number included tenant.level as span attribute * Include service.name in logs and change level to from numeric to text * Updated to reflect changes to paymentservice * Added pull request * Added variants for % failure * Change to loyalty_level and service.version * Change to use app.variant * Updated log entry * Revert changes as deployment YAML is generated after Helm release * Remove app.variant and tidy code for app.loyalty.level * Fixed markdown linting * Typo correction * Add gold back into array and also include loyalty_level in success log --------- Co-authored-by: Juliano Costa <[email protected]> Co-authored-by: Pierre Tessier <[email protected]>
- Loading branch information
1 parent
e54439d
commit 1f30247
Showing
4 changed files
with
60 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,19 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
const pino = require('pino'); | ||
const pino = require('pino') | ||
|
||
module.exports = pino(); | ||
const logger = pino({ | ||
mixin() { | ||
return { | ||
'service.name': process.env['OTEL_SERVICE_NAME'], | ||
} | ||
}, | ||
formatters: { | ||
level: (label) => { | ||
return { 'level': label }; | ||
}, | ||
}, | ||
}); | ||
|
||
module.exports = logger; |