-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1721 from microsoft/develop
merge DEVELOP to MASTER (prep 2.14-beta3)
- Loading branch information
Showing
95 changed files
with
1,252 additions
and
231 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
name: Bug Report | ||
about: Create a report to help us improve | ||
labels: bug | ||
--- | ||
|
||
**Describe your environment.** Describe any aspect of your environment relevant to the problem: | ||
* SDK version: | ||
* .NET runtime version (.NET or .NET Core, TargetFramework in the .csproj file): | ||
* Hosting Info (IIS/Azure WebApps/etc): | ||
* Platform and OS version: | ||
|
||
If you're reporting a problem with a specific version of a library in this repo, please check whether the problem has been fixed on master. | ||
|
||
**Steps to reproduce.** | ||
Describe exactly how to reproduce the error. Include a code sample if applicable. | ||
|
||
**What is the expected behavior?** | ||
What did you expect to see? | ||
|
||
**What is the actual behavior?** | ||
What did you see instead? | ||
|
||
**Additional context.** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
name: Documentation Issue | ||
about: Create a report to help us improve the documents | ||
labels: documentation | ||
--- | ||
|
||
**Is this a document under https://docs.microsoft.com/en-us/azure/azure-monitor/** | ||
If yes, [file issue against the document repo](https://github.com/MicrosoftDocs/azure-docs/issues/new). | ||
|
||
**Does the document belong to this repo?** | ||
If yes, please describe the issue and what you expect to see. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: Feature Request | ||
about: Suggest an idea for this project | ||
labels: enhancement | ||
--- | ||
|
||
**Is your feature request related to a problem?** | ||
If so, provide a concise description of the problem. | ||
|
||
**Describe the solution you'd like.** | ||
What do you want to happen instead? What is the expected behavior? | ||
|
||
**Describe alternatives you've considered.** | ||
Which alternative solutions or features have you considered? | ||
|
||
**Additional context.** | ||
Add any other context about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
name: Question | ||
about: Create a question to help us improve our knowledgebase and documentation | ||
labels: question | ||
--- | ||
|
||
**Describe your environment.** | ||
Describe any aspect of your environment relevant to the question: | ||
* SDK version: | ||
* .NET runtime version (.NET or .NET Core, TargetFramework in the .csproj file): | ||
* Hosting Info (IIS/Azure WebApps/etc): | ||
* Platform and OS version: | ||
|
||
**What are you trying to achieve?** | ||
What did you expect to see? | ||
|
||
**Additional context.** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
153 changes: 153 additions & 0 deletions
153
.publicApi/Microsoft.ApplicationInsights.AspNetCore.dll/net451/PublicAPI.Shipped.txt
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
.publicApi/Microsoft.ApplicationInsights.AspNetCore.dll/net451/PublicAPI.Unshipped.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Microsoft.ApplicationInsights.AspNetCore.JavaScriptSnippet.ScriptBody.get -> string |
153 changes: 153 additions & 0 deletions
153
.publicApi/Microsoft.ApplicationInsights.AspNetCore.dll/net46/PublicAPI.Shipped.txt
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
.publicApi/Microsoft.ApplicationInsights.AspNetCore.dll/net46/PublicAPI.Unshipped.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Microsoft.ApplicationInsights.AspNetCore.JavaScriptSnippet.ScriptBody.get -> string |
153 changes: 153 additions & 0 deletions
153
.publicApi/Microsoft.ApplicationInsights.AspNetCore.dll/netstandard1.6/PublicAPI.Shipped.txt
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...icApi/Microsoft.ApplicationInsights.AspNetCore.dll/netstandard1.6/PublicAPI.Unshipped.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Microsoft.ApplicationInsights.AspNetCore.JavaScriptSnippet.ScriptBody.get -> string |
155 changes: 155 additions & 0 deletions
155
.publicApi/Microsoft.ApplicationInsights.AspNetCore.dll/netstandard2.0/PublicAPI.Shipped.txt
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...icApi/Microsoft.ApplicationInsights.AspNetCore.dll/netstandard2.0/PublicAPI.Unshipped.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Microsoft.ApplicationInsights.AspNetCore.JavaScriptSnippet.ScriptBody.get -> string |
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
.publicApi/Microsoft.ApplicationInsights.dll/net45/PublicAPI.Unshipped.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Microsoft.ApplicationInsights.Extensibility.Implementation.TelemetryExtensions | ||
static Microsoft.ApplicationInsights.Extensibility.Implementation.TelemetryExtensions.GetEnvelopeName(this Microsoft.ApplicationInsights.Channel.ITelemetry telemetry) -> string | ||
static Microsoft.ApplicationInsights.Extensibility.Implementation.TelemetryExtensions.TrySetEnvelopeName(this Microsoft.ApplicationInsights.Channel.ITelemetry telemetry, string envelopeName) -> bool |
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
.publicApi/Microsoft.ApplicationInsights.dll/net46/PublicAPI.Unshipped.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Microsoft.ApplicationInsights.Extensibility.Implementation.TelemetryExtensions | ||
static Microsoft.ApplicationInsights.Extensibility.Implementation.TelemetryExtensions.GetEnvelopeName(this Microsoft.ApplicationInsights.Channel.ITelemetry telemetry) -> string | ||
static Microsoft.ApplicationInsights.Extensibility.Implementation.TelemetryExtensions.TrySetEnvelopeName(this Microsoft.ApplicationInsights.Channel.ITelemetry telemetry, string envelopeName) -> bool |
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
.publicApi/Microsoft.ApplicationInsights.dll/netstandard1.3/PublicAPI.Unshipped.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Microsoft.ApplicationInsights.Extensibility.Implementation.TelemetryExtensions | ||
static Microsoft.ApplicationInsights.Extensibility.Implementation.TelemetryExtensions.GetEnvelopeName(this Microsoft.ApplicationInsights.Channel.ITelemetry telemetry) -> string | ||
static Microsoft.ApplicationInsights.Extensibility.Implementation.TelemetryExtensions.TrySetEnvelopeName(this Microsoft.ApplicationInsights.Channel.ITelemetry telemetry, string envelopeName) -> bool |
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
.publicApi/Microsoft.ApplicationInsights.dll/netstandard2.0/PublicAPI.Unshipped.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Microsoft.ApplicationInsights.Extensibility.Implementation.TelemetryExtensions | ||
static Microsoft.ApplicationInsights.Extensibility.Implementation.TelemetryExtensions.GetEnvelopeName(this Microsoft.ApplicationInsights.Channel.ITelemetry telemetry) -> string | ||
static Microsoft.ApplicationInsights.Extensibility.Implementation.TelemetryExtensions.TrySetEnvelopeName(this Microsoft.ApplicationInsights.Channel.ITelemetry telemetry, string envelopeName) -> bool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 88 additions & 0 deletions
88
...rosoft.ApplicationInsights.Tests/Extensibility/Implementation/TelemetryExtensionsTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
namespace Microsoft.ApplicationInsights.Extensibility.Implementation | ||
{ | ||
using Microsoft.ApplicationInsights.Channel; | ||
using Microsoft.ApplicationInsights.DataContracts; | ||
using Microsoft.ApplicationInsights.Extensibility; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using System; | ||
|
||
[TestClass] | ||
public class TelemetryExtensionsTests | ||
{ | ||
class NonSerializableTelemetry : ITelemetry | ||
{ | ||
public DateTimeOffset Timestamp { get; set; } | ||
|
||
public TelemetryContext Context { get; set; } | ||
|
||
public IExtension Extension { get; set; } | ||
public string Sequence { get; set; } | ||
|
||
public ITelemetry DeepClone() | ||
{ | ||
return new NonSerializableTelemetry(); | ||
} | ||
|
||
public void Sanitize() | ||
{} | ||
|
||
public void SerializeData(ISerializationWriter serializationWriter) | ||
{} | ||
} | ||
|
||
[TestMethod] | ||
public void CanSetEnvelopeNameForSupportedTypes() | ||
{ | ||
string testEnvelopeName = "Non_Standard*Envelope.Name"; | ||
|
||
var at = new AvailabilityTelemetry(); | ||
var dt = new DependencyTelemetry(); | ||
var et = new EventTelemetry(); | ||
var ext = new ExceptionTelemetry(); | ||
var mt = new MetricTelemetry(); | ||
var pvpt = new PageViewPerformanceTelemetry(); | ||
var pvt = new PageViewTelemetry(); | ||
var rt = new RequestTelemetry(); | ||
#pragma warning disable CS0618 // Type or member is obsolete | ||
var pct = new PerformanceCounterTelemetry(); | ||
var sst = new SessionStateTelemetry(); | ||
#pragma warning restore CS0618 // Type or member is obsolete | ||
|
||
Assert.IsTrue(at.TrySetEnvelopeName(testEnvelopeName)); | ||
Assert.IsTrue(dt.TrySetEnvelopeName(testEnvelopeName)); | ||
Assert.IsTrue(et.TrySetEnvelopeName(testEnvelopeName)); | ||
Assert.IsTrue(ext.TrySetEnvelopeName(testEnvelopeName)); | ||
Assert.IsTrue(mt.TrySetEnvelopeName(testEnvelopeName)); | ||
Assert.IsTrue(pvpt.TrySetEnvelopeName(testEnvelopeName)); | ||
Assert.IsTrue(pvt.TrySetEnvelopeName(testEnvelopeName)); | ||
Assert.IsTrue(rt.TrySetEnvelopeName(testEnvelopeName)); | ||
Assert.IsTrue(pct.TrySetEnvelopeName(testEnvelopeName)); | ||
Assert.IsTrue(sst.TrySetEnvelopeName(testEnvelopeName)); | ||
|
||
Assert.AreEqual(testEnvelopeName, at.GetEnvelopeName()); | ||
Assert.AreEqual(testEnvelopeName, dt.GetEnvelopeName()); | ||
Assert.AreEqual(testEnvelopeName, et.GetEnvelopeName()); | ||
Assert.AreEqual(testEnvelopeName, ext.GetEnvelopeName()); | ||
Assert.AreEqual(testEnvelopeName, mt.GetEnvelopeName()); | ||
Assert.AreEqual(testEnvelopeName, pvpt.GetEnvelopeName()); | ||
Assert.AreEqual(testEnvelopeName, pvt.GetEnvelopeName()); | ||
Assert.AreEqual(testEnvelopeName, rt.GetEnvelopeName()); | ||
Assert.AreEqual(testEnvelopeName, pct.Data.GetEnvelopeName()); | ||
Assert.AreEqual(testEnvelopeName, sst.Data.GetEnvelopeName()); | ||
} | ||
|
||
[TestMethod] | ||
public void TrySetEnvelopeNameReturnsFalseForUnsupportedTypes() | ||
{ | ||
var nst = new NonSerializableTelemetry(); | ||
Assert.IsFalse(nst.TrySetEnvelopeName("Any")); // Returns false, NonSerializableTelemetry does not implement IAiSerializableTelemetry | ||
} | ||
|
||
[TestMethod] | ||
public void GetEnvelopeNameReturnsDefaultForUnsupportedTypes() | ||
{ | ||
var nst = new NonSerializableTelemetry(); | ||
Assert.AreEqual("Event", nst.GetEnvelopeName()); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.