Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
212339c
1. Update protocol. 2.Finish most changes at the agent side. 3. Worki…
wu-sheng Mar 31, 2020
1322075
Clean the test issue. Agent and plugins are ready.
wu-sheng Mar 31, 2020
1e4a66c
Add IDManager for further refactor.
wu-sheng Mar 31, 2020
45220fe
1. Set up traffic for service and service instance. 2. Add ServiceIns…
wu-sheng Apr 1, 2020
f9b3b61
Merge branch 'master' into v8-core
wu-sheng Apr 1, 2020
a5e258f
Finish all new traffic objects and network alias metrics. Being to ad…
wu-sheng Apr 1, 2020
5509edb
Merge branch 'v8-core' of https://github.com/apache/skywalking into v…
wu-sheng Apr 1, 2020
469e75a
Set up network address alias and fix some listeners.
wu-sheng Apr 1, 2020
d40ecd3
Enhance protocol documentations.
wu-sheng Apr 1, 2020
78ca5f4
Update protocol
wu-sheng Apr 1, 2020
8a6813e
Remove all register related interfaces and DAOs. Will try to implemen…
wu-sheng Apr 2, 2020
fe99646
Make topology query pass compling
wu-sheng Apr 2, 2020
bda811c
Make core compiling passed.
wu-sheng Apr 2, 2020
b84bb39
Make more modules compiling passed.
wu-sheng Apr 2, 2020
9abd257
More backend modules compiling passed. Several left.
wu-sheng Apr 3, 2020
3afa320
`mvn clean compile` passed!
wu-sheng Apr 4, 2020
16c8a78
Push more codes.
wu-sheng Apr 4, 2020
9975943
Package succesfuly with UT passed.
wu-sheng Apr 4, 2020
ce52703
Make project bootstrap successfully.
wu-sheng Apr 4, 2020
bc1f8dc
Fix format.
wu-sheng Apr 4, 2020
37ac99f
Make analysis and ES persistent good.
wu-sheng Apr 5, 2020
821c4a9
Fix model format.
wu-sheng Apr 5, 2020
dc8725b
Fix 2 bugs.
wu-sheng Apr 5, 2020
baf05c9
Fix several bugs in query stage and ID(user reserved ID) rule conflict.
wu-sheng Apr 5, 2020
3722d51
Merge branch 'master' into v8-core
wu-sheng Apr 5, 2020
4870e99
Make service topology works.
wu-sheng Apr 6, 2020
3186e21
Fix topology ID issue.
wu-sheng Apr 6, 2020
0e8abd7
Make topology and trace back to work.
wu-sheng Apr 6, 2020
d1fcb1a
Fix topology node type.
wu-sheng Apr 6, 2020
01625a3
Fix MySQL and H2 storage implementation.
wu-sheng Apr 6, 2020
8054779
Update e2e submodule and remove component name.
wu-sheng Apr 6, 2020
baf6f1a
Revert wrong update.
wu-sheng Apr 6, 2020
adeacdf
Fix one test case.
wu-sheng Apr 6, 2020
195c8a0
Fix query.
wu-sheng Apr 6, 2020
f11a746
Fix ID conflicts.
wu-sheng Apr 6, 2020
affba6b
Fix format.
wu-sheng Apr 6, 2020
25db06f
Fix format.
wu-sheng Apr 6, 2020
009eaaa
Fix test case.
wu-sheng Apr 6, 2020
cb37045
Fix ManagementServiceGrpc handler issue.
wu-sheng Apr 6, 2020
ddcd190
Try update nodejs version.
wu-sheng Apr 6, 2020
aa24974
Update doc.
wu-sheng Apr 6, 2020
9ae7372
upgrade the agent test tool
dmsolr Apr 6, 2020
a93ccb6
update expectedData.yaml
dmsolr Apr 6, 2020
d6a8a2e
Update expected data files.
wu-sheng Apr 7, 2020
c39929d
Polish topology query a little
wu-sheng Apr 7, 2020
7be6a5b
Remove influxdb, lua agent and PHP agent from e2e tests. No need to d…
wu-sheng Apr 7, 2020
c7a6e01
Try fix simple E2E case
kezhenxu94 Apr 7, 2020
f296edd
Fix service, instance and network alias entities serialize bug
wu-sheng Apr 7, 2020
c32f114
Merge branch 'v8-core' of https://github.com/apache/skywalking into v…
wu-sheng Apr 7, 2020
dd0e9ee
Make elasticsearch 7 startup.
wu-sheng Apr 7, 2020
c0825df
Fix an instance traffic persistent error.
wu-sheng Apr 7, 2020
01c4f23
Change the service ID generation rule for uninstrumentation proxy case.
wu-sheng Apr 7, 2020
4e6b216
1. Support the service update in case the service has no traffic in t…
wu-sheng Apr 7, 2020
c674098
Fix tests.
wu-sheng Apr 7, 2020
53034af
Try fix storage E2E case
kezhenxu94 Apr 7, 2020
ba7b261
Try fix storage E2E case
kezhenxu94 Apr 7, 2020
7becd65
Fix base unit tests
kezhenxu94 Apr 7, 2020
8bbb5c2
Format properties name and add test for instance properties in AgentD…
wu-sheng Apr 8, 2020
5f18b3b
Fix instance traffic field, properties, can't be updated in the mysql…
wu-sheng Apr 8, 2020
bb85985
Fix simple case again
kezhenxu94 Apr 8, 2020
dd39d75
Fix attribute names in test (os_name, host_name, etc.) to accord the …
kezhenxu94 Apr 8, 2020
7ab6471
Fix following bugs.
wu-sheng Apr 8, 2020
ec4c0fb
Fix wrong service name in the instance topology node.
wu-sheng Apr 8, 2020
dfb6b5e
Update UI.
wu-sheng Apr 8, 2020
a02b0ef
Merge branch 'master' into v8-core
wu-sheng Apr 8, 2020
6d74e21
Fix gateway case
kezhenxu94 Apr 8, 2020
cd27dd5
Fix wrong time format in the trace list.
wu-sheng Apr 8, 2020
6e357cc
Merge branch 'v8-core' of https://github.com/apache/skywalking into v…
wu-sheng Apr 8, 2020
d85760a
Fix unit test
kezhenxu94 Apr 8, 2020
b146259
Fix segment analysis
wu-sheng Apr 9, 2020
b1ad74a
Merge branch 'v8-core' of https://github.com/apache/skywalking into v…
wu-sheng Apr 9, 2020
6fd0df9
fix profile e2e test
Apr 9, 2020
8e18566
Fix cluster case and remove reboot codes and docker-compose.yml
kezhenxu94 Apr 9, 2020
9ec9883
1. Support un-tracing when backend is unavailable.
wu-sheng Apr 9, 2020
aea5940
Support KEEP_TRACING config in agent. And fix the test cases.
wu-sheng Apr 9, 2020
91a1e9f
Fix tests passed by activating KEEP_TRACING.
wu-sheng Apr 9, 2020
6bedce2
Remove month level verification of TTL
kezhenxu94 Apr 9, 2020
fa1702a
Some miss changed docs
kezhenxu94 Apr 9, 2020
0b637a3
Update document and configuration to follow v8
wu-sheng Apr 10, 2020
8f6fa9f
Fix a typo
wu-sheng Apr 10, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/e2e.cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
strategy:
matrix:
coordinator: ['zk']
storage: ['mysql', 'es6', 'es7', 'influxdb']
storage: ['mysql', 'es6', 'es7'] #TODO: 'influxdb'
env:
SW_COORDINATOR: ${{ matrix.coordinator }}
SW_STORAGE: ${{ matrix.storage }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/e2e.php.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ jobs:
run: make docker
- name: Copy dist package
run: cp -R dist test/e2e/
- name: PHP
run: ./mvnw --batch-mode -f test/e2e/pom.xml -am -DfailIfNoTests=false verify -Dit.test=org.apache.skywalking.e2e.PHPE2E
# TODO, PHP hasn't followed the v3 protocol
# - name: PHP
# run: ./mvnw --batch-mode -f test/e2e/pom.xml -am -DfailIfNoTests=false verify -Dit.test=org.apache.skywalking.e2e.PHPE2E
- uses: actions/upload-artifact@v1
if: failure()
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.profiling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
timeout-minutes: 90
strategy:
matrix:
storage: ['h2', 'mysql', 'es6', 'es7', 'influxdb']
storage: ['h2', 'mysql', 'es6', 'es7'] #TODO: 'influxdb'
env:
SW_STORAGE: ${{ matrix.storage }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.storages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
timeout-minutes: 90
strategy:
matrix:
storage: ['mysql', 'es6', 'es7', 'influxdb']
storage: ['mysql', 'es6', 'es7'] #TODO: 'influxdb'
env:
SW_STORAGE: ${{ matrix.storage }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.ttl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
timeout-minutes: 90
strategy:
matrix:
storage: ['es6', 'es7', 'influxdb']
storage: ['es6', 'es7'] #TODO: 'influxdb'
env:
SW_STORAGE: ${{ matrix.storage }}
steps:
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
timeout-minutes: 90
strategy:
matrix:
case: [auth, compatibility, ssl]
case: [auth, ssl]
env:
SW_SIMPLE_CASE: ${{ matrix.case }}
steps:
Expand All @@ -58,7 +58,7 @@ jobs:
path: logs

FeatureGroup02:
name: Agent Reboot & Lua Nginx
name: Lua Nginx
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
Expand All @@ -72,10 +72,9 @@ jobs:
run: make docker
- name: Copy dist package
run: cp -R dist test/e2e/
- name: Nginx Lua
run: ./mvnw --batch-mode -f test/e2e/pom.xml -am -DfailIfNoTests=false verify -Dit.test=org.apache.skywalking.e2e.LuaE2E
- name: Agent Reboot
run: ./mvnw --batch-mode -f test/e2e/pom.xml -am -DfailIfNoTests=false verify -Dit.test=org.apache.skywalking.e2e.AgentRebootE2E
# TODO, LUA hasn't followed the v3 protocol
# - name: Nginx Lua
# run: ./mvnw --batch-mode -f test/e2e/pom.xml -am -DfailIfNoTests=false verify -Dit.test=org.apache.skywalking.e2e.LuaE2E
- uses: actions/upload-artifact@v1
if: failure()
with:
Expand Down Expand Up @@ -103,4 +102,4 @@ jobs:
if: failure()
with:
name: logs
path: logs
path: logs
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,16 @@ including
1. Envoy gRPC Access Log Service (ALS) format in Istio controlled service mesh.
1. Istio telemetry format.
1. Envoy Metrics Service format.
1. Zipkin v1/v2 format.
1. Jaeger gRPC format.

1. Zipkin v1/v2 and Jaeger gRPC format with limited topology and metrics analysis.(Experimental)

# Document
- [8.x Documentation, dev version](docs/README.md).
- [7.0.0 Documentation](https://github.com/apache/skywalking/blob/v7.0.0/docs/README.md).
- [6.6 Documentation](https://github.com/apache/skywalking/blob/v6.6.0/docs/README.md).
- [6.5 Documentation](https://github.com/apache/skywalking/blob/v6.6.0/docs/README.md).
[8.x dev](docs/README.md) | [7.0](https://github.com/apache/skywalking/blob/v7.0.0/docs/README.md) | [6.6](https://github.com/apache/skywalking/blob/v6.6.0/docs/README.md), [6.5](https://github.com/apache/skywalking/blob/v6.5.0/docs/README.md).

The documentation links works after the official release.
NOTICE, SkyWalking 8.0+ uses [v3 protocols](docs/en/protocols/README.md). They are incompatible with previous released.

# Downloads
Please head to the [releases page](http://skywalking.apache.org/downloads/) to download a release of Apache SkyWalking.


# Code of conduct
This project adheres to the Contributor Covenant [code of conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code.
Please follow the [REPORTING GUIDELINES](CODE_OF_CONDUCT.md#reporting-guidelines) to report unacceptable behavior.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public class SkywalkingSpanBuilder implements Tracer.SpanBuilder {
private boolean isExit = false;
private int port;
private String peer;
private String componentName;
private boolean isError = false;
private long startTime;

Expand Down Expand Up @@ -73,9 +72,7 @@ public Tracer.SpanBuilder addReference(String referenceType, SpanContext referen

@Override
public Tracer.SpanBuilder withTag(String key, String value) {
if (Tags.COMPONENT.getKey().equals(key)) {
componentName = value;
} else if (Tags.SPAN_KIND.getKey().equals(key)) {
if (Tags.SPAN_KIND.getKey().equals(key)) {
if (Tags.SPAN_KIND_CLIENT.equals(value) || Tags.SPAN_KIND_PRODUCER.equals(value)) {
isEntry = false;
isExit = true;
Expand Down Expand Up @@ -167,18 +164,10 @@ public String getPeer() {
return peer;
}

public String getComponentName() {
return componentName;
}

public boolean isError() {
return isError;
}

public long getStartTime() {
return startTime;
}

/**
* All the following methods are needed for activation.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static void initialize(Properties properties, Class<?> rootConfigType) th
}

private static void initNextLevel(Properties properties, Class<?> recentConfigType,
ConfigDesc parentDesc) throws IllegalArgumentException, IllegalAccessException {
ConfigDesc parentDesc) throws IllegalArgumentException, IllegalAccessException {
for (Field field : recentConfigType.getFields()) {
if (Modifier.isPublic(field.getModifiers()) && Modifier.isStatic(field.getModifiers())) {
String configKey = (parentDesc + "." + field.getName()).toLowerCase();
Expand Down Expand Up @@ -73,6 +73,12 @@ private static void initNextLevel(Properties properties, Class<?> recentConfigTy
*/
String value = properties.getProperty(configKey);
// Convert the value into real type
final Length lengthDefine = field.getAnnotation(Length.class);
if (lengthDefine != null) {
if (value != null && value.length() > lengthDefine.value()) {
value = value.substring(0, lengthDefine.value());
}
}
Object convertedValue = convertToTypicalType(type, value);
if (convertedValue != null) {
field.set(null, convertedValue);
Expand Down Expand Up @@ -133,7 +139,7 @@ private static Object convertToTypicalType(Type type, String value) {
* @param valueType value type of the map
*/
private static void setForMapType(String configKey, Map<Object, Object> map, Properties properties,
final Type keyType, final Type valueType) {
final Type keyType, final Type valueType) {

Objects.requireNonNull(configKey);
Objects.requireNonNull(map);
Expand All @@ -145,7 +151,8 @@ private static void setForMapType(String configKey, Map<Object, Object> map, Pro
properties.forEach((propertyKey, propertyValue) -> {
String propertyStringKey = propertyKey.toString();
if (propertyStringKey.startsWith(prefix) && propertyStringKey.endsWith(suffix)) {
String itemKey = propertyStringKey.substring(prefix.length(), propertyStringKey.length() - suffix.length());
String itemKey = propertyStringKey.substring(
prefix.length(), propertyStringKey.length() - suffix.length());
Object keyObj;
Object valueObj;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,19 @@
*
*/

package org.apache.skywalking.oap.server.receiver.trace.provider.parser;
package org.apache.skywalking.apm.util;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
* The segment source.
* The length rule of the target field.
*/
public enum SegmentSource {
/**
* From the client side agent.
*/
Agent,
/**
* From the buffer file, because the last time register has not be successful.
*/
Buffer
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Length {
int value();
}

Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

package org.apache.skywalking.apm.network.trace.component.command;

import org.apache.skywalking.apm.network.common.Command;
import org.apache.skywalking.apm.network.common.KeyStringValuePair;
import org.apache.skywalking.apm.network.common.v3.Command;
import org.apache.skywalking.apm.network.common.v3.KeyStringValuePair;

public abstract class BaseCommand {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@

package org.apache.skywalking.apm.network.trace.component.command;

import org.apache.skywalking.apm.network.common.Command;
import org.apache.skywalking.apm.network.common.v3.Command;

public class CommandDeserializer {

public static BaseCommand deserialize(final Command command) {
final String commandName = command.getCommand();
if (ServiceResetCommand.NAME.equals(commandName)) {
return ServiceResetCommand.DESERIALIZER.deserialize(command);
} else if (ProfileTaskCommand.NAME.equals(commandName)) {
if (ProfileTaskCommand.NAME.equals(commandName)) {
return ProfileTaskCommand.DESERIALIZER.deserialize(command);
}
throw new UnsupportedCommandException(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

package org.apache.skywalking.apm.network.trace.component.command;

import org.apache.skywalking.apm.network.common.Command;
import org.apache.skywalking.apm.network.common.v3.Command;

public interface Deserializable<T extends BaseCommand> {
T deserialize(Command command);
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

package org.apache.skywalking.apm.network.trace.component.command;

import org.apache.skywalking.apm.network.common.Command;
import org.apache.skywalking.apm.network.common.KeyStringValuePair;
import org.apache.skywalking.apm.network.common.v3.Command;
import org.apache.skywalking.apm.network.common.v3.KeyStringValuePair;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

package org.apache.skywalking.apm.network.trace.component.command;

import org.apache.skywalking.apm.network.common.Command;
import org.apache.skywalking.apm.network.common.v3.Command;

public interface Serializable {
Command.Builder serialize();
Expand Down
Loading