feat(bugcollect): 事件响应中暴露 buildId 字段
IssueEventResponse 新增 buildId 字段,将构建 ID 包含在 events API 响应中, 方便前端展示具体构建对应的错误。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
这个提交包含在:
父节点
7f4fd6ee61
当前提交
f6dc3f7c72
@ -20,6 +20,7 @@ public record IssueEventResponse(
|
|||||||
Object device,
|
Object device,
|
||||||
String platform,
|
String platform,
|
||||||
String release,
|
String release,
|
||||||
|
String buildId,
|
||||||
String environment,
|
String environment,
|
||||||
@JsonProperty("sdkName") String sdkName,
|
@JsonProperty("sdkName") String sdkName,
|
||||||
@JsonProperty("sdkVersion") String sdkVersion,
|
@JsonProperty("sdkVersion") String sdkVersion,
|
||||||
|
|||||||
@ -406,7 +406,7 @@ public class LogService {
|
|||||||
return result.map(e -> new IssueEventResponse(
|
return result.map(e -> new IssueEventResponse(
|
||||||
e.getId(), null, e.getEventId(), e.getAppKey(), e.getUserId(), e.getSessionId(),
|
e.getId(), null, e.getEventId(), e.getAppKey(), e.getUserId(), e.getSessionId(),
|
||||||
null, null, null, parseJsonField(e.getDevice()),
|
null, null, null, parseJsonField(e.getDevice()),
|
||||||
e.getPlatform(), e.getRelease(), e.getEnvironment(),
|
e.getPlatform(), e.getRelease(), e.getBuildId(), e.getEnvironment(),
|
||||||
e.getSdkName(), e.getSdkVersion(), e.getCreatedAt()
|
e.getSdkName(), e.getSdkVersion(), e.getCreatedAt()
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
@ -562,7 +562,7 @@ public class LogService {
|
|||||||
parseJsonField(e.getBreadcrumbs()),
|
parseJsonField(e.getBreadcrumbs()),
|
||||||
parseJsonField(e.getTags()),
|
parseJsonField(e.getTags()),
|
||||||
parseJsonField(e.getDevice()),
|
parseJsonField(e.getDevice()),
|
||||||
e.getPlatform(), e.getRelease(), e.getEnvironment(),
|
e.getPlatform(), e.getRelease(), e.getBuildId(), e.getEnvironment(),
|
||||||
e.getSdkName(), e.getSdkVersion(), e.getCreatedAt()
|
e.getSdkName(), e.getSdkVersion(), e.getCreatedAt()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
正在加载...
在新工单中引用
屏蔽一个用户