Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/twegner/issue 18 #111

Merged
merged 37 commits into from
Jul 12, 2019
Merged
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
e345d65
Merge pull request #1 from open-telemetry/master
trwegner May 13, 2019
4214ea1
Merge remote-tracking branch 'upstream/master'
trwegner May 16, 2019
9c4525a
Merge remote-tracking branch 'upstream/master'
trwegner May 20, 2019
d9d9a1c
Merge remote-tracking branch 'upstream/master'
trwegner May 21, 2019
9358bae
Merge remote-tracking branch 'upstream/master'
trwegner May 21, 2019
2fd8136
Merge remote-tracking branch 'upstream/master'
trwegner May 31, 2019
b2abb6d
Merge remote-tracking branch 'upstream/master'
trwegner Jun 5, 2019
697bd0a
Merge branch 'master' of https://github.com/trwegner/opentelemetry-do…
trwegner Jun 6, 2019
0337ea5
Merge branch 'master' of https://github.com/open-telemetry/openteleme…
trwegner Jun 8, 2019
055febf
Merge branch 'master' of https://github.com/open-telemetry/openteleme…
trwegner Jun 10, 2019
6c56c0f
Merge branch 'master' of https://github.com/open-telemetry/openteleme…
trwegner Jun 10, 2019
5711694
Merge branch 'master' of https://github.com/open-telemetry/openteleme…
trwegner Jun 12, 2019
47d239c
Rmoving ITraceComponent and TraceComponent
trwegner Jun 12, 2019
15f3928
Removing ITagsComponent, TagsComponentBase and TagsComponent
trwegner Jun 12, 2019
66f9f05
REmoving ITagPropagationComponent, TagPropagationComponentBase and Ta…
trwegner Jun 12, 2019
feba07d
Removing IStatsComponent, StatsComponentBase and StatsComponent
trwegner Jun 13, 2019
66651d2
Addressing test failures since updates have allowed rules on duplicat…
trwegner Jun 14, 2019
d41ce8b
Test updates, wrok in progress
trwegner Jun 18, 2019
482c637
Merge https://github.com/open-telemetry/opentelemetry-dotnet
trwegner Jun 18, 2019
590747f
Merge branch 'master' into dev/twegner/issue_18
trwegner Jun 18, 2019
d52e985
Merge https://github.com/open-telemetry/opentelemetry-dotnet
trwegner Jun 24, 2019
bbcd428
Merging upstream master
trwegner Jun 24, 2019
398139f
Resolving some unit test failrues
trwegner Jun 27, 2019
63fd512
Resolving some unit test failrues
trwegner Jun 28, 2019
6b16190
Simplify map to list
trwegner Jun 28, 2019
5afafcc
Addressing final set of unit test failures
trwegner Jul 2, 2019
d15c9f5
Updating for feedback
trwegner Jul 2, 2019
e8ae3ed
Merging upstream master
trwegner Jul 2, 2019
26d6045
Addressing tests that were relying on specific order
trwegner Jul 2, 2019
eaffa3c
Updating for feedback
trwegner Jul 9, 2019
b79920a
Merge https://github.com/open-telemetry/opentelemetry-dotnet
trwegner Jul 10, 2019
73013e3
Merging upstream master
trwegner Jul 10, 2019
76b7ee4
Addressing merge issues
trwegner Jul 10, 2019
39356fc
Resolving build and test failures introduced in merge
trwegner Jul 11, 2019
ac06f52
Merging upstream master
trwegner Jul 11, 2019
85e24e9
Resolving additional build and test issues
trwegner Jul 11, 2019
aa3bc31
Fixing unresolved dependencies
trwegner Jul 11, 2019
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
9 changes: 8 additions & 1 deletion samples/Exporters/TestApplicationInsights.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ namespace Samples
using System.Threading;
using Microsoft.ApplicationInsights.Extensibility;
using OpenTelemetry.Exporter.ApplicationInsights;
using OpenTelemetry.Internal;
using OpenTelemetry.Stats;
using OpenTelemetry.Stats.Aggregations;
using OpenTelemetry.Stats.Measures;
using OpenTelemetry.Tags;
using OpenTelemetry.Trace;
using OpenTelemetry.Trace.Export;
using OpenTelemetry.Trace.Sampler;

internal class TestApplicationInsights
Expand All @@ -50,8 +52,11 @@ internal class TestApplicationInsights

internal static object Run()
{
SimpleEventQueue eventQueue = new SimpleEventQueue();
ExportComponent exportComponent = ExportComponent.CreateWithInProcessStores(eventQueue);

TelemetryConfiguration.Active.InstrumentationKey = "instrumentation-key";
var exporter = new ApplicationInsightsExporter(Tracing.ExportComponent, Stats.ViewManager, TelemetryConfiguration.Active);
var exporter = new ApplicationInsightsExporter(exportComponent, Stats.ViewManager, TelemetryConfiguration.Active);
exporter.Start();

var tagContextBuilder = Tagger.CurrentBuilder.Put(FrontendKey, TagValue.Create("mobile-ios9.3.5"));
Expand Down Expand Up @@ -83,6 +88,8 @@ internal static object Run()
Console.WriteLine("Done... wait for events to arrive to backend!");
Console.ReadLine();

exportComponent.SpanExporter.Dispose();

return null;
}
}
Expand Down
41 changes: 0 additions & 41 deletions src/OpenTelemetry.Abstractions/Tags/ITagsComponent.cs

This file was deleted.

This file was deleted.

42 changes: 0 additions & 42 deletions src/OpenTelemetry.Abstractions/Trace/ITraceComponent.cs

This file was deleted.

3 changes: 2 additions & 1 deletion src/OpenTelemetry/Stats/CumulativeMutableViewData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@
namespace OpenTelemetry.Stats
{
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using OpenTelemetry.Tags;

internal class CumulativeMutableViewData : MutableViewData
{
private readonly IDictionary<TagValues, MutableAggregation> tagValueAggregationMap = new Dictionary<TagValues, MutableAggregation>();
private readonly IDictionary<TagValues, MutableAggregation> tagValueAggregationMap = new ConcurrentDictionary<TagValues, MutableAggregation>();
private DateTimeOffset start;

internal CumulativeMutableViewData(IView view, DateTimeOffset start)
Expand Down
39 changes: 0 additions & 39 deletions src/OpenTelemetry/Stats/IStatsComponent.cs

This file was deleted.

3 changes: 2 additions & 1 deletion src/OpenTelemetry/Stats/MeasureMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ namespace OpenTelemetry.Stats
{
using OpenTelemetry.Stats.Measures;
using OpenTelemetry.Tags;
using OpenTelemetry.Tags.Unsafe;

internal sealed class MeasureMap : MeasureMapBase
{
Expand All @@ -44,7 +45,7 @@ public override IMeasureMap Put(IMeasureLong measure, long value)
public override void Record()
{
// Use the context key directly, to avoid depending on the tags implementation.
this.Record(CurrentTagContextUtils.CurrentTagContext);
this.Record(AsyncLocalContext.CurrentTagContext);
}

public override void Record(ITagContext tags)
Expand Down
Loading