Skip to content

Commit d9101a6

Browse files
committed
drop load_features traces
1 parent cc6f119 commit d9101a6

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

src/titiler/core/titiler/core/factory.py

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -532,10 +532,9 @@ def geojson_statistics(
532532
env=Depends(self.environment_dependency),
533533
):
534534
"""Get Statistics from a geojson feature or featureCollection."""
535-
with operation_tracer("load_features"):
536-
fc = geojson
537-
if isinstance(fc, Feature):
538-
fc = FeatureCollection(type="FeatureCollection", features=[geojson])
535+
fc = geojson
536+
if isinstance(fc, Feature):
537+
fc = FeatureCollection(type="FeatureCollection", features=[geojson])
539538

540539
with operation_tracer("open_dataset"):
541540
with rasterio.Env(**env):
@@ -1671,10 +1670,9 @@ def geojson_statistics(
16711670
env=Depends(self.environment_dependency),
16721671
):
16731672
"""Get Statistics from a geojson feature or featureCollection."""
1674-
with operation_tracer("load_features"):
1675-
fc = geojson
1676-
if isinstance(fc, Feature):
1677-
fc = FeatureCollection(type="FeatureCollection", features=[geojson])
1673+
fc = geojson
1674+
if isinstance(fc, Feature):
1675+
fc = FeatureCollection(type="FeatureCollection", features=[geojson])
16781676

16791677
with operation_tracer("open_dataset"):
16801678
with rasterio.Env(**env):
@@ -1892,10 +1890,9 @@ def geojson_statistics(
18921890
env=Depends(self.environment_dependency),
18931891
):
18941892
"""Get Statistics from a geojson feature or featureCollection."""
1895-
with operation_tracer("load_features"):
1896-
fc = geojson
1897-
if isinstance(fc, Feature):
1898-
fc = FeatureCollection(type="FeatureCollection", features=[geojson])
1893+
fc = geojson
1894+
if isinstance(fc, Feature):
1895+
fc = FeatureCollection(type="FeatureCollection", features=[geojson])
18991896

19001897
with operation_tracer("open_dataset"):
19011898
with rasterio.Env(**env):

src/titiler/xarray/titiler/xarray/factory.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,9 @@ def geojson_statistics(
171171
env=Depends(self.environment_dependency),
172172
):
173173
"""Get Statistics from a geojson feature or featureCollection."""
174-
with operation_tracer("load_features"):
175-
fc = geojson
176-
if isinstance(fc, Feature):
177-
fc = FeatureCollection(type="FeatureCollection", features=[geojson])
174+
fc = geojson
175+
if isinstance(fc, Feature):
176+
fc = FeatureCollection(type="FeatureCollection", features=[geojson])
178177

179178
with operation_tracer("open_dataset"):
180179
with rasterio.Env(**env):

0 commit comments

Comments
 (0)