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

add raw event type #1856

Merged
merged 18 commits into from
Nov 15, 2024
Merged

add raw event type #1856

merged 18 commits into from
Nov 15, 2024

Conversation

henryzhx8
Copy link
Collaborator

@henryzhx8 henryzhx8 commented Nov 4, 2024

RawEvent主要有两个作用:

  1. 对于只需要保存一段连续文本的场景
  2. 对于只需要透传字节流的场景

对于场景1,目前都是以LogEvent承载,但是LogEvent里包含了一个map和vector,大量频繁的创建和销毁map比较消耗性能,这一点在日志极简场景和Prometheus抓取场景都很明显。

对于场景2,C++这边没有应用,但是字节那边以前提过类似的需求,所以优化性能的同时顺带把这个功能带上了。

@henryzhx8 henryzhx8 added the core Core feature label Nov 4, 2024
@henryzhx8 henryzhx8 added this to the v2.2 milestone Nov 4, 2024
Base automatically changed from feat/pb to main November 4, 2024 13:15
@henryzhx8 henryzhx8 added the feature request New feature request label Nov 4, 2024
@henryzhx8 henryzhx8 merged commit a9a529d into main Nov 15, 2024
15 checks passed
@henryzhx8 henryzhx8 deleted the feat/raw_event branch November 15, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core feature feature request New feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants