Add telemetry instrumentation #1167
Replies: 2 comments 1 reply
-
Thank you for opening this discussion @hrodmn ! Very recently someone asked why visualization for a given dataset from titiler-cmr is so slow and it would be great to be able to easily provide a specific answer. |
Beta Was this translation helpful? Give feedback.
-
Thanks for starting this @hrodmn
I think it makes sense to start this in titiler.core 👍 Do you know the performance impact when telemetry is enabled? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be useful for titiler applications to be capable of sharing telemetry data so that application administrators can understand usage patterns and performance bottlenecks.
Here is an example of the type of insights users could get if we add telemetry capability

I have been experimenting with this in my local environment and have a proposal for a telemetry plan for titiler:
open-telemetry
(and associated packages) to a new optional dependencies group intitiler.core
titiler.core.telemetry
module with some convenience functions/decorators/context managers for adding telemetry to factory methods and specific operations./tile
intitiler.core.factory.TilerFactory
,titiler.mosaic.factory.MosaicTilerFactory
,titiler.xarray.factory.TilerFactory
titiler.application.main
@vincentsarago what do you think? Would you rather we add this type of functionality somewhere like titiler-pgstac first then bring it back to
titiler.core
later? cc @sharkinsspatial @abarciauskas-bgseBeta Was this translation helpful? Give feedback.
All reactions