https://dagster.io/ logo
#ask-community
Title
# ask-community
v

Vlad Efanov

05/25/2022, 10:00 AM
Hello. There is an option to print clickable link in logs? I want to be able to follow the URL link from web dagit GUI. In terminal the link is clickable but in web GUI it is a plain text. I am attaching pictures.
🤖 1
r
s

sean

05/25/2022, 5:31 PM
Vlad have you been successful in using
Metadata.url
?
v

Vlad Efanov

05/26/2022, 4:59 AM
@rex @sean From which version
MetadataValue.url
works? Now I'm using dagster 0.13.16
r

rex

05/26/2022, 5:05 AM
in 0.13.16, it was known as
EventMetadata.url
. See the 0.13.16 docs: https://docs.dagster.io/0.13.16/concepts/ops-jobs-graphs/op-events#attaching-metadata-to-outputs-
v

Vlad Efanov

05/26/2022, 5:49 AM
@rex Where I can see the Output? There is what I wrote:
Copy code
link = EventMetadata.url("<https://google.com>")
yield Output(link, output_name='result')
I tried this:
<http://context.log.info|context.log.info>(link)
but it prints plane text
Maybe I should do it differently?
r

rex

05/26/2022, 6:12 AM
the example is in the docs i linked:
Copy code
result = "my_result"
    yield Output(
        result,
        metadata={
            "dashboard_url": EventMetadata.url("<http://mycoolsite.com/url_for_my_data>"),
        },
    )
1
v

Vlad Efanov

05/26/2022, 6:22 AM
Thank you
2 Views