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

feat: support go to cpp PipelineEventGroup transfer #1771

Merged
merged 23 commits into from
Oct 15, 2024

Conversation

Assassin718
Copy link
Contributor

新增go插件、cpp插件PipelineEventGroup转换

  • 新增描述PipelineEventGroup、LogEvent、MetricEvent、SpanEvent的protobuf
  • go侧增加由go数据结构创建protobuf数据结构的接口
  • cpp侧增加由protobuf数据结构转换成cpp数据结构的接口

core/protobuf/sls/pipeline_event.proto Outdated Show resolved Hide resolved
core/protobuf/sls/pipeline_event.proto Outdated Show resolved Hide resolved
core/protobuf/sls/pipeline_event.proto Outdated Show resolved Hide resolved
core/protobuf/sls/pipeline_event.proto Outdated Show resolved Hide resolved
core/protobuf/sls/pipeline_event.proto Outdated Show resolved Hide resolved
core/go_pipeline/LogtailPlugin.cpp Outdated Show resolved Hide resolved
core/go_pipeline/LogtailPlugin.cpp Outdated Show resolved Hide resolved
core/protobuf/sls/pipeline_event.proto Outdated Show resolved Hide resolved
core/protobuf/sls/pipeline_event.proto Outdated Show resolved Hide resolved
core/go_pipeline/LogtailPlugin.cpp Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
core/protobuf/models/log_event.proto Outdated Show resolved Hide resolved
core/protobuf/models/pipeline_event_group.proto Outdated Show resolved Hide resolved
core/protobuf/models/metric_event.proto Outdated Show resolved Hide resolved
core/protobuf/models/span_event.proto Outdated Show resolved Hide resolved
core/go_pipeline/LogtailPlugin.cpp Outdated Show resolved Hide resolved
pkg/helper/pipeline_event_helper.go Show resolved Hide resolved
pkg/helper/pipeline_event_helper.go Outdated Show resolved Hide resolved
pkg/helper/pipeline_event_helper.go Outdated Show resolved Hide resolved
pkg/helper/pipeline_event_helper.go Show resolved Hide resolved
core/protobuf/models/ProtocolConversion.h Outdated Show resolved Hide resolved
core/protobuf/models/ProtocolConversion.h Show resolved Hide resolved
core/protobuf/models/ProtocolConversion.h Show resolved Hide resolved
core/protobuf/models/ProtocolConversion.cpp Outdated Show resolved Hide resolved
core/protobuf/models/ProtocolConversion.cpp Outdated Show resolved Hide resolved
core/protobuf/models/ProtocolConversion.cpp Outdated Show resolved Hide resolved
core/protobuf/models/ProtocolConversion.cpp Outdated Show resolved Hide resolved
pkg/helper/pipeline_event_helper.go Outdated Show resolved Hide resolved
pkg/helper/pipeline_event_helper.go Outdated Show resolved Hide resolved
pkg/helper/pipeline_event_helper.go Outdated Show resolved Hide resolved
package logtail.models;

message SpanEvent {
uint64 Timestamp = 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的时间戳单位是ns吗?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是的

syntax = "proto3";
package logtail.models;

message UntypedSingleValue {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go的 pkg 下面的 proto 和 core 下面的 proto 定义是一样的吗

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants