Skip to content

Commit 6f43001

Browse files
committed
leave document _id generation to Eleasticsearch
Signed-off-by: Tomasz Adamski <tomasz.adamski@gmail.com>
1 parent c8d514c commit 6f43001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/storage/es/spanstore/service_operation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (s *ServiceOperationStorage) Write(indexName string, jsonSpan *jModel.Span)
7777
serviceID := fmt.Sprintf("%s|%s", service.ServiceName, service.OperationName)
7878
cacheKey := fmt.Sprintf("%s:%s", indexName, serviceID)
7979
if !keyInCache(cacheKey, s.serviceCache) {
80-
s.client.Index().Index(indexName).Type(serviceType).Id(serviceID).BodyJson(service).Add()
80+
s.client.Index().Index(indexName).Type(serviceType).BodyJson(service).Add()
8181
writeCache(cacheKey, s.serviceCache)
8282
}
8383
}

0 commit comments

Comments
 (0)