Skip to content

Commit

Permalink
Remove duplicate code in Elasticseearch output
Browse files Browse the repository at this point in the history
Fixes Azure#385
  • Loading branch information
karolz-ms committed May 6, 2021
1 parent e20c23f commit ea41de9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,19 +164,6 @@ private IEnumerable<IBulkOperation> GetCreateOperationsForEvent(EventData eventD
}
}

if (eventData.TryGetMetadata(DependencyData.DependencyMetadataKind, out metadataSet))
{
foreach (var dependencyMetadata in metadataSet)
{
operation = CreateDependencyOperation(eventData, dependencyMetadata, currentIndexName);
if (operation != null)
{
reportedAsSpecialEvent = true;
yield return operation;
}
}
}

if (eventData.TryGetMetadata(ExceptionData.ExceptionMetadataKind, out metadataSet))
{
foreach (var exceptionMetadata in metadataSet)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Description>Provides an output implementation that sends diagnostics data to Elasticsearch.</Description>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<VersionPrefix>2.7.2</VersionPrefix>
<VersionPrefix>2.7.3</VersionPrefix>
<Authors>Microsoft</Authors>
<TargetFrameworks>net471;netstandard2.0</TargetFrameworks>
<AssemblyName>Microsoft.Diagnostics.EventFlow.Outputs.ElasticSearch</AssemblyName>
Expand Down

0 comments on commit ea41de9

Please sign in to comment.