Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serverless Devs 支持根据traceId查询日志的能力 #442

Closed
anycodes opened this issue Mar 25, 2022 · 1 comment
Closed

Serverless Devs 支持根据traceId查询日志的能力 #442

anycodes opened this issue Mar 25, 2022 · 1 comment

Comments

@anycodes
Copy link
Member

anycodes commented Mar 25, 2022

新增一个命令: trace

主要功能是用来追踪历史信息。

帮助信息为:

Usage: s trace [options]

Track historical operation information
    
    Example:
        $ s trace
        $ s trace --id acde480011221648191289496

📖  Document: https://github.com/Serverless-Devs/Serverless-Devs/tree/master/docs/zh/command/trace.md

Options:
  --id                        Trace Id
  -h, --help                   Display help for command

如果直接执行s trace,会列举出执行历史:

TraceId          Time           Command              Path             
******             *****              *******               ********
******             *****              *******               ********
******             *****              *******               ********

可以通过--id的形式,查看详情,例如s trace --id acde480011221648191289496

TraceId: acde480011221648191289496
Time: 2021.12.12
Command: s init
Path: demo
Debug logs: ./.s/test.s/***.log

关于 Debug Logs 的格式:

------------------------
TraceId: acde480011221648191289496
Time: 2021.12.12
Command: s init
Path: demo
------------------------
ConfigHistory
- Alias: default
   AccountId: 12312***21312321
   Test: asdas******Adasdasda
- Alias: default
   AccountId: 12312***21312321
   Test: asdas******Adasdasda
------------------------
Logs 详情

Logs的超时时间是30天。

@anycodes anycodes created this issue from a note in 云启 (计划中) Mar 25, 2022
@anycodes anycodes moved this from 计划中 to 开发中 in 云启 Apr 18, 2022
@anycodes anycodes added this to In progress in 扶摇而上 May 20, 2022
@heimanba
Copy link
Member

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
扶摇而上
In progress
云启
开发中
Development

No branches or pull requests

2 participants