diff --git a/src/OpenCensus.Abstractions/Trace/Export/IHandler.cs b/src/OpenCensus.Abstractions/Trace/Export/IHandler.cs
index 911d81b..bcfbda9 100644
--- a/src/OpenCensus.Abstractions/Trace/Export/IHandler.cs
+++ b/src/OpenCensus.Abstractions/Trace/Export/IHandler.cs
@@ -27,6 +27,6 @@ public interface IHandler
/// Exports the list of spans to the backend.
///
/// Collection of spans to export.
- void Export(IList spanDataList);
+ void Export(IEnumerable spanDataList);
}
}
diff --git a/src/OpenCensus.Abstractions/Trace/ISampler.cs b/src/OpenCensus.Abstractions/Trace/ISampler.cs
index 65e3b7b..721119f 100644
--- a/src/OpenCensus.Abstractions/Trace/ISampler.cs
+++ b/src/OpenCensus.Abstractions/Trace/ISampler.cs
@@ -42,6 +42,6 @@ public interface ISampler
///
/// Links associated with the parent span.
/// True of span needs to be created. False otherwise.
- bool ShouldSample(ISpanContext parentContext, bool hasRemoteParent, ITraceId traceId, ISpanId spanId, string name, IList parentLinks);
+ bool ShouldSample(ISpanContext parentContext, bool hasRemoteParent, ITraceId traceId, ISpanId spanId, string name, IEnumerable parentLinks);
}
}
diff --git a/src/OpenCensus.Abstractions/Trace/ISpanBuilder.cs b/src/OpenCensus.Abstractions/Trace/ISpanBuilder.cs
index 2fcbd1e..187b4b2 100644
--- a/src/OpenCensus.Abstractions/Trace/ISpanBuilder.cs
+++ b/src/OpenCensus.Abstractions/Trace/ISpanBuilder.cs
@@ -36,7 +36,7 @@ public interface ISpanBuilder
///
/// Parent links to set on span.
/// This span builder for chaining.
- ISpanBuilder SetParentLinks(IList parentLinks);
+ ISpanBuilder SetParentLinks(IEnumerable parentLinks);
///
/// Set the record events value.
diff --git a/src/OpenCensus.Abstractions/Trace/Sampler/AlwaysSampleSampler.cs b/src/OpenCensus.Abstractions/Trace/Sampler/AlwaysSampleSampler.cs
index 052f08b..f9abd4c 100644
--- a/src/OpenCensus.Abstractions/Trace/Sampler/AlwaysSampleSampler.cs
+++ b/src/OpenCensus.Abstractions/Trace/Sampler/AlwaysSampleSampler.cs
@@ -32,7 +32,7 @@ public string Description
}
}
- public bool ShouldSample(ISpanContext parentContext, bool hasRemoteParent, ITraceId traceId, ISpanId spanId, string name, IList parentLinks)
+ public bool ShouldSample(ISpanContext parentContext, bool hasRemoteParent, ITraceId traceId, ISpanId spanId, string name, IEnumerable parentLinks)
{
return true;
}
diff --git a/src/OpenCensus.Abstractions/Trace/Sampler/NeverSampleSampler.cs b/src/OpenCensus.Abstractions/Trace/Sampler/NeverSampleSampler.cs
index a48233a..61e1ae1 100644
--- a/src/OpenCensus.Abstractions/Trace/Sampler/NeverSampleSampler.cs
+++ b/src/OpenCensus.Abstractions/Trace/Sampler/NeverSampleSampler.cs
@@ -32,7 +32,7 @@ public string Description
}
}
- public bool ShouldSample(ISpanContext parentContext, bool hasRemoteParent, ITraceId traceId, ISpanId spanId, string name, IList parentLinks)
+ public bool ShouldSample(ISpanContext parentContext, bool hasRemoteParent, ITraceId traceId, ISpanId spanId, string name, IEnumerable parentLinks)
{
return false;
}
diff --git a/src/OpenCensus.Abstractions/Trace/Sampler/ProbabilitySampler.cs b/src/OpenCensus.Abstractions/Trace/Sampler/ProbabilitySampler.cs
index 735820f..6b15939 100644
--- a/src/OpenCensus.Abstractions/Trace/Sampler/ProbabilitySampler.cs
+++ b/src/OpenCensus.Abstractions/Trace/Sampler/ProbabilitySampler.cs
@@ -40,7 +40,7 @@ public string Description
public long IdUpperBound { get; }
- public bool ShouldSample(ISpanContext parentContext, bool hasRemoteParent, ITraceId traceId, ISpanId spanId, string name, IList parentLinks)
+ public bool ShouldSample(ISpanContext parentContext, bool hasRemoteParent, ITraceId traceId, ISpanId spanId, string name, IEnumerable parentLinks)
{
// If the parent is sampled keep the sampling decision.
if (parentContext != null && parentContext.TraceOptions.IsSampled)
diff --git a/src/OpenCensus.Exporter.ApplicationInsights/Implementation/TraceExporterHandler.cs b/src/OpenCensus.Exporter.ApplicationInsights/Implementation/TraceExporterHandler.cs
index f386cfe..b22affc 100644
--- a/src/OpenCensus.Exporter.ApplicationInsights/Implementation/TraceExporterHandler.cs
+++ b/src/OpenCensus.Exporter.ApplicationInsights/Implementation/TraceExporterHandler.cs
@@ -34,7 +34,7 @@ public TraceExporterHandler(TelemetryConfiguration telemetryConfiguration)
this.telemetryClient = new TelemetryClient(telemetryConfiguration);
}
- public void Export(IList spanDataList)
+ public void Export(IEnumerable spanDataList)
{
foreach (var span in spanDataList)
{
diff --git a/src/OpenCensus.Exporter.Ocagent/Implementation/TraceExporterHandler.cs b/src/OpenCensus.Exporter.Ocagent/Implementation/TraceExporterHandler.cs
index bb6202a..979d5d5 100644
--- a/src/OpenCensus.Exporter.Ocagent/Implementation/TraceExporterHandler.cs
+++ b/src/OpenCensus.Exporter.Ocagent/Implementation/TraceExporterHandler.cs
@@ -72,7 +72,7 @@ public TraceExporterHandler(string agentEndpoint, string hostName, string servic
this.Start();
}
- public void Export(IList spanDataList)
+ public void Export(IEnumerable spanDataList)
{
if (this.cts == null || this.cts.IsCancellationRequested)
{
diff --git a/src/OpenCensus.Exporter.Stackdriver/Implementation/StackdriverTraceExporter.cs b/src/OpenCensus.Exporter.Stackdriver/Implementation/StackdriverTraceExporter.cs
index 7469116..be4bde0 100644
--- a/src/OpenCensus.Exporter.Stackdriver/Implementation/StackdriverTraceExporter.cs
+++ b/src/OpenCensus.Exporter.Stackdriver/Implementation/StackdriverTraceExporter.cs
@@ -182,7 +182,7 @@ static StackdriverTraceExporter()
}
}
- public void Export(IList spanDataList)
+ public void Export(IEnumerable spanDataList)
{
TraceServiceClient traceWriter = TraceServiceClient.Create(settings: traceServiceSettings);
diff --git a/src/OpenCensus.Exporter.Zipkin/Implementation/TraceExporterHandler.cs b/src/OpenCensus.Exporter.Zipkin/Implementation/TraceExporterHandler.cs
index 6b80c0b..ae790d9 100644
--- a/src/OpenCensus.Exporter.Zipkin/Implementation/TraceExporterHandler.cs
+++ b/src/OpenCensus.Exporter.Zipkin/Implementation/TraceExporterHandler.cs
@@ -46,7 +46,7 @@ public TraceExporterHandler(ZipkinTraceExporterOptions options, HttpClient clien
this.httpClient = client ?? new HttpClient();
}
- public void Export(IList spanDataList)
+ public void Export(IEnumerable spanDataList)
{
List zipkinSpans = new List();
diff --git a/src/OpenCensus/Stats/MeasureMapBuilder.cs b/src/OpenCensus/Stats/MeasureMapBuilder.cs
index 8d21ddf..37d2e11 100644
--- a/src/OpenCensus/Stats/MeasureMapBuilder.cs
+++ b/src/OpenCensus/Stats/MeasureMapBuilder.cs
@@ -41,7 +41,7 @@ internal MeasureMapBuilder Put(IMeasureLong measure, long value)
return this;
}
- internal IList Build()
+ internal IEnumerable Build()
{
// Note: this makes adding measurements quadratic but is fastest for the sizes of
// MeasureMapInternals that we should see. We may want to go to a strategy of sort/eliminate
diff --git a/src/OpenCensus/Stats/MeasureToViewMap.cs b/src/OpenCensus/Stats/MeasureToViewMap.cs
index 303d138..cbbfaef 100644
--- a/src/OpenCensus/Stats/MeasureToViewMap.cs
+++ b/src/OpenCensus/Stats/MeasureToViewMap.cs
@@ -103,7 +103,7 @@ internal void RegisterView(IView view, IClock clock)
}
// Records stats with a set of tags.
- internal void Record(ITagContext tags, IList stats, ITimestamp timestamp)
+ internal void Record(ITagContext tags, IEnumerable stats, ITimestamp timestamp)
{
lock (this.lck)
{
@@ -117,7 +117,7 @@ internal void Record(ITagContext tags, IList stats, ITimestamp tim
continue;
}
- IList views = this.mutableMap[measure.Name];
+ var views = this.mutableMap[measure.Name];
foreach (MutableViewData view in views)
{
measurement.Match