forked from open-telemetry/opentelemetry-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into cartservice-add-exemplars
- Loading branch information
Showing
5 changed files
with
95 additions
and
18 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
.github/workflows/dependabot-auto-update-protobuf-diff.yml
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Copyright The OpenTelemetry Authors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
permissions: | ||
actions: write | ||
pull-requests: write | ||
contents: write | ||
packages: write | ||
|
||
jobs: | ||
dependabot-auto-update-protobuf-diff: | ||
runs-on: ubuntu-latest | ||
# Only run this job if the PR is opened by dependabot and the last commit is from dependabot | ||
if: github.event.pull_request.user.login == 'dependabot[bot]' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
token: ${{ secrets.DEPENDABOT_TOKEN }} | ||
- name: Generate | ||
run: make clean docker-generate-protobuf | ||
- name: Commit only if there are changes | ||
run: | | ||
if ! git diff --quiet; then | ||
git config user.name "dependabot[bot]" | ||
git config user.email "49699333+dependabot[bot]@users.noreply.github.com" | ||
git add . | ||
git commit -s -m "chore: update protobuf" | ||
git push | ||
fi |
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; |