Skip to content

Commit c167549

Browse files
committed
output: adding in constants for event types
This change adds in the constants from the fluent-bit repository for output types. These can be used in the go modules to then set the event type. Signed-off-by: jmccormick7 <[email protected]>
1 parent 88b71fb commit c167549

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

output/flb_output.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
#ifndef FLBGO_OUTPUT_H
2121
#define FLBGO_OUTPUT_H
2222

23+
#define FLB_OUTPUT_LOGS 1
24+
#define FLB_OUTPUT_METRICS 2
25+
#define FLB_OUTPUT_TRACES 4
26+
2327
struct flb_api {
2428
char *(*output_get_property) (char *, void *);
2529
char *_;

output/output.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ const (
3636

3737
FLB_PROXY_OUTPUT_PLUGIN = C.FLB_PROXY_OUTPUT_PLUGIN
3838
FLB_PROXY_GOLANG = C.FLB_PROXY_GOLANG
39+
FLB_OUTPUT_LOGS = C.FLB_OUTPUT_LOGS
40+
FLB_OUTPUT_METRICS = C.FLB_OUTPUT_METRICS
41+
FLB_OUTPUT_TRACES = C.FLB_OUTPUT_TRACES
3942
)
4043

4144
// Local type to define a plugin definition

0 commit comments

Comments
 (0)