Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
seismic-dms-service
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
Domain Data Management Services
Seismic
Seismic DMS Suite
seismic-dms-service
Merge requests
!1175
feat: add correlation-id to the logs
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
feat: add correlation-id to the logs
slb/kk/file-metadata-logging
into
master
Overview
0
Commits
10
Pipelines
2
Changes
5
Merged
Konstantin Khottchenkov
requested to merge
slb/kk/file-metadata-logging
into
master
6 months ago
Overview
0
Commits
10
Pipelines
2
Changes
5
Expand
Type of change
Bug Fix
Feature
Pipeline
Test
Documentation
Does this introduce a change in the core logic?
No
Yes
Does this introduce a change in the cloud provider implementation, if so which cloud?
AWS
Anthos
Azure
GCP
IBM
Does this follow
conventional commits spec
?
No
Yes
Have you set the target Milestone?
No
Yes
Have you set the no-detached-pipeline label?
No
Yes
Updates description?
Add correlation-id to the Seismic File Metadata service logs
Generate the correlation-id if not provided in the request headers and pass it in the nested request headers
0
0
Merge request reports
Compare
master
version 1
3273869c
6 months ago
master (base)
and
latest version
latest version
6936c9e8
10 commits,
6 months ago
version 1
3273869c
9 commits,
6 months ago
5 files
+
30
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
app/filemetadata/app/api/dependencies/authentication.py
+
9
−
1
Options
@@ -2,6 +2,7 @@ import segysdk
from
fastapi
import
Security
from
fastapi.security
import
HTTPBearer
from
fastapi.security.api_key
import
APIKeyHeader
from
loggers.azure.insights
import
AzureInsightsLogger
from
core.config
import
settings
@@ -24,4 +25,11 @@ async def get_api_key(
def
configure_remote_access
(
sdms_bearer_token
,
sdms_app_key
):
segysdk
.
segy_configure_remote_access
(
settings
.
SDMS_URL
,
sdms_app_key
,
sdms_bearer_token
)
segysdk
.
segy_configure_remote_access
(
settings
.
SDMS_URL
,
sdms_app_key
,
sdms_bearer_token
,
{
"
correlation-id
"
:
AzureInsightsLogger
.
CORRELATION_ID
}
)
Loading