Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Wellbore Domain Services
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
Wellbore
Wellbore Domain Services
Commits
0da78180
Commit
0da78180
authored
3 years ago
by
Cyril Monmouton
Browse files
Options
Downloads
Patches
Plain Diff
Catalog/enh: trace attributes when reading bulk
parent
d2d94f74
No related branches found
No related tags found
1 merge request
!460
Improve statibility of fetching of bulk catalog by not using Dask workers
Pipeline
#98334
failed
3 years ago
Stage: review
Stage: build
Stage: containerize
Stage: scan
Stage: deploy
Stage: integration
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/bulk_persistence/dask/dask_bulk_storage.py
+6
-1
6 additions, 1 deletion
app/bulk_persistence/dask/dask_bulk_storage.py
with
6 additions
and
1 deletion
app/bulk_persistence/dask/dask_bulk_storage.py
+
6
−
1
View file @
0da78180
...
...
@@ -33,7 +33,7 @@ from app.conf import Config
from
.dask_worker_plugin
import
DaskWorkerPlugin
from
.errors
import
BulkRecordNotFound
,
BulkNotProcessable
,
internal_bulk_exceptions
from
.traces
import
map_with_trace
,
submit_with_trace
,
trace_attributes_root_span
from
.traces
import
map_with_trace
,
submit_with_trace
,
trace_attributes_root_span
,
trace_attributes_current_span
from
.utils
import
(
WDMS_INDEX_NAME
,
by_pairs
,
do_merge
,
join_dataframes
,
worker_capture_timing_handlers
,
get_num_rows
,
set_index
,
index_union
)
from
..dataframe_validators
import
is_reserved_column_name
,
DataFrameValidationFunc
...
...
@@ -180,6 +180,11 @@ class DaskBulkStorage:
if
index_df
:
dfs
.
append
(
index_df
)
trace_attributes_current_span
({
'
parquet-files-to-load-count
'
:
len
(
files_to_load
),
'
df-to-merge-count
'
:
len
(
dfs
)
})
if
not
dfs
:
raise
RuntimeError
(
"
cannot find requested columns
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment