Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,8 @@ describe('generateLayer', () => {
"body": Object {
"properties": Object {
"structured": Object {
"type": "flattened",
},
"text": Object {
"type": "match_only_text",
"subobjects": false,
"type": "object",
},
},
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ export const baseFields: FieldDefinition = {
'scope.version': {
type: 'keyword',
},
observed_timestamp: {
type: 'date',
},
trace_id: {
type: 'keyword',
},
Expand All @@ -104,17 +101,18 @@ export const baseFields: FieldDefinition = {
'resource.attributes.host.name': {
type: 'keyword',
},
'resource.attributes.service.name': {
type: 'keyword',
},
};

export const baseMappings: Record<string, MappingProperty> = {
body: {
type: 'object',
properties: {
structured: {
type: 'flattened',
},
text: {
type: 'match_only_text',
Comment on lines -116 to -117
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't see the deletion of body.text in the summary, double checking this is expected ?

type: 'object',
subobjects: false,
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ const streams: StreamPutItem[] = [
'scope.version': {
type: 'keyword',
},
observed_timestamp: {
type: 'date',
},
trace_id: {
type: 'keyword',
},
Expand All @@ -71,6 +68,9 @@ const streams: StreamPutItem[] = [
'resource.attributes.host.name': {
type: 'keyword',
},
'resource.attributes.service.name': {
type: 'keyword',
},
'stream.name': {
type: 'system',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ const rootStreamDefinition: Streams.WiredStream.Definition = {
'scope.version': {
type: 'keyword',
},
observed_timestamp: {
type: 'date',
},
trace_id: {
type: 'keyword',
},
Expand All @@ -72,6 +69,9 @@ const rootStreamDefinition: Streams.WiredStream.Definition = {
'resource.attributes.host.name': {
type: 'keyword',
},
'resource.attributes.service.name': {
type: 'keyword',
},
'stream.name': {
type: 'system',
},
Expand Down