serverless / serverless

⚡ Serverless Framework – Effortlessly build apps that auto-scale, incur zero costs when idle, and require minimal maintenance using AWS Lambda and other managed cloud services.
https://serverless.com
MIT License
46.67k stars 5.74k forks source link

How to get Dashboard URL / Identifier for a specific invocation? #12173

Open patricktyndall opened 1 year ago

patricktyndall commented 1 year ago

Are you certain it's a bug?

Is the issue caused by a plugin?

Are you using the latest v3 release?

Is there an existing issue for this?

Issue description

Hi. Prior to this week's Dashboard release, context.serverlessSdk.getDashboardUrl() could be used to get a link to the dashboard for an invocation. Other identifiers were available as well (like getTransactionId()).

These identifiers are extremely important for correlating errors in lambda to the associated serverless logs. We have now lost this capability. Now that dashboard URLs have changed, these links no longer work (I can't find a similar function in SDK V3).

How can we use the SDK to get an identifier or URL for the trace of a specific invocation?

Service configuration (serverless.yml) content

n/a

Command name and used flags

n/a

Command output

n/a

Environment information

n/a
Alex-from-Ukraine commented 1 year ago

I agree, it was very convenient to be able to save a link when calling a lambda, so that later you could quickly find the corresponding log. I also couldn't find a similar feature in either @serverless/sdk or @serverless/aws-lambda-sdk. Could you tell me please how can I get a similar link on the dashboard's page with the current Lamba trace?

vadymhimself commented 1 year ago

+1

Alex-from-Ukraine commented 1 year ago

image

Alex-from-Ukraine commented 1 year ago

image

vadymhimself commented 1 month ago

+1