-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Delete `ISkyWalkingClient` interface * Use segment protocol V2 * Forget the old api. All context apis will be overwritten. * Add segments define * Add some apis * Add carrierParser * Add SegmentContextAccessor API * Add SampledDelegate interface * Add thread-safe SamplerChainBuilder * Add SegmentContextFactory * Add ITracingContext Interface * Refactoring the core API for tracing context * remove utils package * Resolve issue #57 : Provide percentage-based sampling * Refactor HttpClient Tracing * Fix header carrier * Add async exitSpan sample * Add Task.WhenAll sample * Refactor EntityFrameworkCore tracing * Refactor SqlClient & CAP Tracing * Refactor Asp.Net tracing * Remove outdated APIs
- Loading branch information
1 parent
91ab544
commit 2f24067
Showing
152 changed files
with
2,748 additions
and
4,038 deletions.
There are no files selected for viewing
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
17 changes: 17 additions & 0 deletions
17
sample/SkyWalking.Sample.Backend/Controllers/DelayController.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,17 @@ | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
namespace SkyWalking.Sample.Backend.Controllers | ||
{ | ||
[Route("api/[controller]")] | ||
public class DelayController : Controller | ||
{ | ||
// GET | ||
[HttpGet("{delay}")] | ||
public async Task<string> Get(int delay) | ||
{ | ||
await Task.Delay(delay); | ||
return $"delay {delay}ms"; | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
sample/SkyWalking.Sample.Backend/Sampling/CustomSamplingInterceptor.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,14 @@ | ||
using SkyWalking.Tracing; | ||
|
||
namespace SkyWalking.Sample.Backend.Sampling | ||
{ | ||
public class CustomSamplingInterceptor : ISamplingInterceptor | ||
{ | ||
public int Priority { get; } = 0; | ||
|
||
public bool Invoke(SamplingContext samplingContext, Sampler next) | ||
{ | ||
return next(samplingContext); | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
} | ||
}, | ||
"SkyWalking": { | ||
"ApplicationCode": "asp-net-core-frontend" | ||
"ServiceName": "asp-net-core-frontend" | ||
} | ||
} | ||
|
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,41 @@ | ||
/* | ||
* Licensed to the OpenSkywalking under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The OpenSkywalking licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
namespace SkyWalking.Common | ||
{ | ||
public static class Components | ||
{ | ||
public static readonly StringOrIntValue ASPNETCORE= new StringOrIntValue("AspNetCore"); | ||
|
||
public static readonly StringOrIntValue HTTPCLIENT = new StringOrIntValue("HttpClient"); | ||
|
||
public static readonly StringOrIntValue ENTITYFRAMEWORKCORE = new StringOrIntValue("EntityFrameworkCore"); | ||
|
||
public static readonly StringOrIntValue SQLCLIENT = new StringOrIntValue("SqlClient"); | ||
|
||
public static readonly StringOrIntValue CAP = new StringOrIntValue("CAP"); | ||
|
||
public static readonly StringOrIntValue ENTITYFRAMEWORKCORE_SQLITE = new StringOrIntValue("EntityFrameworkCore.Sqlite"); | ||
|
||
public static readonly StringOrIntValue POMELO_ENTITYFRAMEWORKCORE_MYSQL = new StringOrIntValue("Pomelo.EntityFrameworkCore.MySql"); | ||
|
||
public static readonly StringOrIntValue NPGSQL_ENTITYFRAMEWORKCORE_POSTGRESQL = new StringOrIntValue("Npgsql.EntityFrameworkCore.PostgreSQL"); | ||
|
||
public static readonly StringOrIntValue ASPNET = new StringOrIntValue("AspNet"); | ||
} | ||
} |
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
* | ||
*/ | ||
|
||
namespace SkyWalking | ||
namespace SkyWalking.Common | ||
{ | ||
public struct NullableValue | ||
{ | ||
|
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
59 changes: 0 additions & 59 deletions
59
src/SkyWalking.Abstractions/Components/ComponentsDefine.cs
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
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
Oops, something went wrong.