Hello, regarding `AssetObservation` - after observ...
# ask-community
j
Hello, regarding
AssetObservation
- after observing an asset (writing metadata), is it possible to then "read" that metadata from another Asset? This doc page only talked about editing without signifying a mutated asset. https://docs.dagster.io/concepts/assets/asset-observations
c
Hi Jason! We don't have a great built-in way to do this at the moment, but you can query the Dagster Instance directly to fetch the latest observation event:
Copy code
@asset
def downstream(context, upstream):
    records = context.instance.get_event_records(
        EventRecordsFilter(
            event_type=DagsterEventType.ASSET_OBSERVATION, asset_key=AssetKey("upstream")
        ),
        limit=1,
    )
    if records:
        observation = records[
            0
     ].event_log_entry.dagster_event.asset_observation_data.asset_observation
j
Great! Thanks for the info 🙂