syntax = "proto3"; package sentry_protos.kafka.events.v1; import "google/protobuf/struct.proto"; import "sentry_protos/options/v1/options.proto"; message EventStreamMessage { option (sentry_protos.options.v1.topic_config) = {topic: "errors"}; oneof value { Inserteventmessage inserteventmessage = 1; Startdeletegroupsmessage startdeletegroupsmessage = 2; Startmergemessage startmergemessage = 3; Startunmergemessage startunmergemessage = 4; Startunmergehierarchicalmessage startunmergehierarchicalmessage = 5; Startdeletetagmessage startdeletetagmessage = 6; Enddeletegroupsmessage enddeletegroupsmessage = 7; Endmergemessage endmergemessage = 8; Endunmergemessage endunmergemessage = 9; Endunmergehierarchicalmessage endunmergehierarchicalmessage = 10; Enddeletetagmessage enddeletetagmessage = 11; Tombstoneeventsmessage tombstoneeventsmessage = 12; Replacegroupmessage replacegroupmessage = 13; Excludegroupsmessage excludegroupsmessage = 14; } } message Startmergemessage { message Startmergemessage2 { string transaction_id = 1; int64 project_id = 2; repeated int64 previous_group_ids = 3; int64 new_group_id = 4; string datetime = 5; } int64 a0 = 1; string a1 = 2 [(options.v1.const).string = 'start_merge']; Startmergemessage2 a2 = 3; } message Endmergemessage { message Endmergemessage2 { string transaction_id = 1; int64 project_id = 2; repeated int64 previous_group_ids = 3; int64 new_group_id = 4; string datetime = 5; } int64 a0 = 1; string a1 = 2 [(options.v1.const).string = 'end_merge']; Endmergemessage2 a2 = 3; } message Startdeletegroupsmessage { message Startdeletegroupsmessage2 { string transaction_id = 1; int64 project_id = 2; repeated int64 group_ids = 3; string datetime = 4; } int64 a0 = 1; string a1 = 2 [(options.v1.const).string = 'start_delete_groups']; Startdeletegroupsmessage2 a2 = 3; } message Enddeletegroupsmessage { message Enddeletegroupsmessage2 { string transaction_id = 1; int64 project_id = 2; repeated int64 group_ids = 3; string datetime = 4; } int64 a0 = 1; string a1 = 2 [(options.v1.const).string = 'end_delete_groups']; Enddeletegroupsmessage2 a2 = 3; } message Startunmergemessage { message Startunmergemessage2 { int64 project_id = 1; } int64 a0 = 1; string a1 = 2 [(options.v1.const).string = 'start_unmerge']; Startunmergemessage2 a2 = 3; } message Startunmergehierarchicalmessage { message Startunmergehierarchicalmessage2 { int64 project_id = 1; } int64 a0 = 1; string a1 = 2 [(options.v1.const).string = 'start_unmerge_hierarchical']; Startunmergehierarchicalmessage2 a2 = 3; } message Startdeletetagmessage { message Startdeletetagmessage2 { int64 project_id = 1; } int64 a0 = 1; string a1 = 2 [(options.v1.const).string = 'start_delete_tag']; Startdeletetagmessage2 a2 = 3; } message Endunmergemessage { message Endunmergemessage2 { string transaction_id = 1; int64 project_id = 2; int64 previous_group_id = 3; int64 new_group_id = 4; repeated string hashes = 5; string datetime = 6; } int64 a0 = 1; string a1 = 2 [(options.v1.const).string = 'end_unmerge']; Endunmergemessage2 a2 = 3; } message Endunmergehierarchicalmessage { message Endunmergehierarchicalmessage2 { int64 project_id = 1; int64 previous_group_id = 2; int64 new_group_id = 3; string primary_hash = 4; string hierarchical_hash = 5; string datetime = 6; } int64 a0 = 1; string a1 = 2 [(options.v1.const).string = 'end_unmerge_hierarchical']; Endunmergehierarchicalmessage2 a2 = 3; } message Enddeletetagmessage { message Enddeletetagmessage2 { string tag = 1; string datetime = 2; int64 project_id = 3; } int64 a0 = 1; string a1 = 2 [(options.v1.const).string = 'end_delete_tag']; Enddeletetagmessage2 a2 = 3; } message Tombstoneeventsmessage { message Tombstoneeventsmessage2 { int64 project_id = 1; repeated string event_ids = 2; oneof has_old_primary_hash { string old_primary_hash = 3; } string from_timestamp = 4; string to_timestamp = 5; string datetime = 6; } int64 a0 = 1; string a1 = 2 [(options.v1.const).string = 'tombstone_events']; Tombstoneeventsmessage2 a2 = 3; } message Replacegroupmessage { message Replacegroupmessage2 { repeated string event_ids = 1; int64 project_id = 2; string from_timestamp = 3; string to_timestamp = 4; string transaction_id = 5; string datetime = 6; int64 new_group_id = 7; } int64 a0 = 1; string a1 = 2 [(options.v1.const).string = 'replace_group']; Replacegroupmessage2 a2 = 3; } message Excludegroupsmessage { message Excludegroupsmessage2 { int64 project_id = 1; repeated int64 group_ids = 2; } int64 a0 = 1; string a1 = 2 [(options.v1.const).string = 'exclude_groups']; Excludegroupsmessage2 a2 = 3; } message Contexts { message ContextsReplay { oneof has_replay_id { string replay_id = 1; } } message ContextsTrace { oneof has_sampled { bool sampled = 1; } oneof has_span_id { string span_id = 2; } oneof has_trace_id { string trace_id = 3; } } oneof has_replay { ContextsReplay replay = 1; } oneof has_trace { ContextsTrace trace = 2; } } message Errordata { message ErrordataContexts { message ErrordataContextsReplay { oneof has_replay_id { string replay_id = 1; } } message ErrordataContextsTrace { oneof has_sampled { bool sampled = 1; } oneof has_span_id { string span_id = 2; } oneof has_trace_id { string trace_id = 3; } } oneof has_replay { ErrordataContextsReplay replay = 1; } oneof has_trace { ErrordataContextsTrace trace = 2; } } message ErrordataException { message ErrordataExceptionValues { message ErrordataExceptionValuesMechanism { google.protobuf.Value handled = 1; google.protobuf.Value type = 2; } message ErrordataExceptionValuesStacktrace { message ErrordataExceptionValuesStacktraceFrames { google.protobuf.Value abs_path = 1; oneof has_colno { int64 colno = 2; } google.protobuf.Value filename = 3; google.protobuf.Value function = 4; oneof has_in_app { bool in_app = 5; } oneof has_lineno { int64 lineno = 6; } google.protobuf.Value module = 7; google.protobuf.Value package = 8; } repeated ErrordataExceptionValuesStacktraceFrames frames = 1; } oneof has_mechanism { ErrordataExceptionValuesMechanism mechanism = 1; } oneof has_stacktrace { ErrordataExceptionValuesStacktrace stacktrace = 2; } oneof has_thread_id { google.protobuf.Value thread_id = 3; } google.protobuf.Value type = 4; google.protobuf.Value value = 5; } repeated ErrordataExceptionValues values = 1; } message ErrordataRequest { message ErrordataRequestHeaders { string a0 = 1; google.protobuf.Value a1 = 2; } repeated ErrordataRequestHeaders headers = 1; google.protobuf.Value method = 2; } message ErrordataSdk { repeated google.protobuf.Value integrations = 1; google.protobuf.Value name = 2; google.protobuf.Value version = 3; } message ErrordataTags { google.protobuf.Value a0 = 1; google.protobuf.Value a1 = 2; } message ErrordataThreads { message ErrordataThreadsValues { oneof has_id { google.protobuf.Value id = 1; } oneof has_main { bool main = 2; } } repeated ErrordataThreadsValues values = 1; } message ErrordataUser { google.protobuf.Value email = 1; map geo = 2; google.protobuf.Value id = 3; oneof has_ip_address { string ip_address = 4; } google.protobuf.Value username = 5; } oneof has_contexts { ErrordataContexts contexts = 1; } google.protobuf.Value culprit = 2; repeated google.protobuf.Value errors = 3; oneof has_exception { ErrordataException exception = 4; } repeated string hierarchical_hashes = 5; oneof has_location { string location = 6; } map modules = 7; double received = 8; oneof has_request { ErrordataRequest request = 9; } oneof has_sdk { ErrordataSdk sdk = 10; } repeated ErrordataTags tags = 11; oneof has_threads { ErrordataThreads threads = 12; } google.protobuf.Value title = 13; google.protobuf.Value type = 14; oneof has_user { ErrordataUser user = 15; } oneof has_version { string version = 16; } } message Errormessage { Errordata data = 1; string datetime = 2; string event_id = 3; int64 group_id = 4; string message = 5; oneof has_platform { string platform = 6; } string primary_hash = 7; int64 project_id = 8; oneof has_retention_days { int64 retention_days = 9; } } message Exception { message ExceptionValues { message ExceptionValuesMechanism { google.protobuf.Value handled = 1; google.protobuf.Value type = 2; } message ExceptionValuesStacktrace { message ExceptionValuesStacktraceFrames { google.protobuf.Value abs_path = 1; oneof has_colno { int64 colno = 2; } google.protobuf.Value filename = 3; google.protobuf.Value function = 4; oneof has_in_app { bool in_app = 5; } oneof has_lineno { int64 lineno = 6; } google.protobuf.Value module = 7; google.protobuf.Value package = 8; } repeated ExceptionValuesStacktraceFrames frames = 1; } oneof has_mechanism { ExceptionValuesMechanism mechanism = 1; } oneof has_stacktrace { ExceptionValuesStacktrace stacktrace = 2; } oneof has_thread_id { google.protobuf.Value thread_id = 3; } google.protobuf.Value type = 4; google.protobuf.Value value = 5; } repeated ExceptionValues values = 1; } message Exceptionmechanism { google.protobuf.Value handled = 1; google.protobuf.Value type = 2; } message Exceptionvalue { message ExceptionvalueMechanism { google.protobuf.Value handled = 1; google.protobuf.Value type = 2; } message ExceptionvalueStacktrace { message ExceptionvalueStacktraceFrames { google.protobuf.Value abs_path = 1; oneof has_colno { int64 colno = 2; } google.protobuf.Value filename = 3; google.protobuf.Value function = 4; oneof has_in_app { bool in_app = 5; } oneof has_lineno { int64 lineno = 6; } google.protobuf.Value module = 7; google.protobuf.Value package = 8; } repeated ExceptionvalueStacktraceFrames frames = 1; } oneof has_mechanism { ExceptionvalueMechanism mechanism = 1; } oneof has_stacktrace { ExceptionvalueStacktrace stacktrace = 2; } oneof has_thread_id { google.protobuf.Value thread_id = 3; } google.protobuf.Value type = 4; google.protobuf.Value value = 5; } message Inserteventmessage { int64 a0 = 1; string a1 = 2; Errormessage a2 = 3; google.protobuf.Value a3 = 4; } message Replaycontext { oneof has_replay_id { string replay_id = 1; } } message Request { message RequestHeaders { string a0 = 1; google.protobuf.Value a1 = 2; } repeated RequestHeaders headers = 1; google.protobuf.Value method = 2; } message Sdk { repeated google.protobuf.Value integrations = 1; google.protobuf.Value name = 2; google.protobuf.Value version = 3; } message Stackframe { google.protobuf.Value abs_path = 1; oneof has_colno { int64 colno = 2; } google.protobuf.Value filename = 3; google.protobuf.Value function = 4; oneof has_in_app { bool in_app = 5; } oneof has_lineno { int64 lineno = 6; } google.protobuf.Value module = 7; google.protobuf.Value package = 8; } message Stacktrace { message StacktraceFrames { google.protobuf.Value abs_path = 1; oneof has_colno { int64 colno = 2; } google.protobuf.Value filename = 3; google.protobuf.Value function = 4; oneof has_in_app { bool in_app = 5; } oneof has_lineno { int64 lineno = 6; } google.protobuf.Value module = 7; google.protobuf.Value package = 8; } repeated StacktraceFrames frames = 1; } message Thread { message ThreadValues { oneof has_id { google.protobuf.Value id = 1; } oneof has_main { bool main = 2; } } repeated ThreadValues values = 1; } message Threadvalue { oneof has_id { google.protobuf.Value id = 1; } oneof has_main { bool main = 2; } } message Tracecontext { oneof has_sampled { bool sampled = 1; } oneof has_span_id { string span_id = 2; } oneof has_trace_id { string trace_id = 3; } } message User { google.protobuf.Value email = 1; map geo = 2; google.protobuf.Value id = 3; oneof has_ip_address { string ip_address = 4; } google.protobuf.Value username = 5; }