You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2020/01/13 14:01:26 UTC
[GitHub] [skywalking] arugal opened a new pull request #4228: [WIP] Support
Browser protocol at OAP
arugal opened a new pull request #4228: [WIP] Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228
Please answer these questions before submitting pull request
- Why submit this pull request?
- [ ] Bug fix
- [x] New feature provided
- [ ] Improve performance
- Related issues
#4166
___
### Several keys
1. [x] A new receiver module is required.
1. [x] Register for the endpoint(pagePath) is the first priority work.
1. [x] The browser-related sources should be new and separated too all related sources. OAL and antlr should be changed too.
### Metrics are following
> 1. PV for every page(endpoint), version(instance) and service
1. service_page_pv
1. service_version_page_pv
> 2. The error rate for every page.
1. service_page_error_rate
1. service_version_page_error_rate
> 4. Error logs for every `BrowserErrorLog`, with rate sampling.
1. BrowserErrorLogListener
1. BrowserErrorLogSampler (Sample by `BrowserPerfData#uniqueId` hashCode)
> 5. Avg value of all fields in PerfDetail.
1. service_*_avg
1. service_*_percentile
1. service_page_*_avg
1. service_page_*_percentile
1. service_version_*_avg
1. service_version_*_percentile
1. service_version_page_*_avg
1. service_version_page_*_percentile
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] kezhenxu94 commented on a change in pull request
#4228: Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r395662701
##########
File path: test/e2e/e2e-test/src/test/java/org/apache/skywalking/e2e/browser/BrowserE2E.java
##########
@@ -0,0 +1,353 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.e2e.browser;
+
+import io.grpc.ManagedChannel;
+import io.grpc.internal.DnsNameResolverProvider;
+import io.grpc.netty.NettyChannelBuilder;
+import io.grpc.stub.StreamObserver;
+import java.util.List;
+import java.util.UUID;
+import java.util.concurrent.CountDownLatch;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.skywalking.apm.network.common.Commands;
+import org.apache.skywalking.apm.network.common.KeyIntValuePair;
+import org.apache.skywalking.apm.network.common.ServiceType;
+import org.apache.skywalking.apm.network.language.agent.BrowserErrorLog;
+import org.apache.skywalking.apm.network.language.agent.BrowserPerfData;
+import org.apache.skywalking.apm.network.language.agent.BrowserPerfServiceGrpc;
+import org.apache.skywalking.apm.network.language.agent.ErrorCategory;
+import org.apache.skywalking.apm.network.register.v2.RegisterGrpc;
+import org.apache.skywalking.apm.network.register.v2.ServiceInstance;
+import org.apache.skywalking.apm.network.register.v2.ServiceInstanceRegisterMapping;
+import org.apache.skywalking.apm.network.register.v2.ServiceInstances;
+import org.apache.skywalking.apm.network.register.v2.ServiceRegisterMapping;
+import org.apache.skywalking.apm.network.register.v2.Services;
+import org.apache.skywalking.e2e.annotation.ContainerHostAndPort;
+import org.apache.skywalking.e2e.annotation.DockerCompose;
+import org.apache.skywalking.e2e.annotation.DockerContainer;
+import org.apache.skywalking.e2e.base.SkyWalkingE2E;
+import org.apache.skywalking.e2e.base.SkyWalkingTestAdapter;
+import org.apache.skywalking.e2e.base.TrafficController;
+import org.apache.skywalking.e2e.common.HostAndPort;
+import org.apache.skywalking.e2e.retryable.RetryableTest;
+import org.apache.skywalking.e2e.service.Service;
+import org.apache.skywalking.e2e.service.ServicesMatcher;
+import org.apache.skywalking.e2e.service.ServicesQuery;
+import org.apache.skywalking.e2e.service.endpoint.Endpoint;
+import org.apache.skywalking.e2e.service.endpoint.EndpointQuery;
+import org.apache.skywalking.e2e.service.endpoint.Endpoints;
+import org.apache.skywalking.e2e.service.endpoint.EndpointsMatcher;
+import org.apache.skywalking.e2e.service.instance.Instance;
+import org.apache.skywalking.e2e.service.instance.Instances;
+import org.apache.skywalking.e2e.service.instance.InstancesMatcher;
+import org.apache.skywalking.e2e.service.instance.InstancesQuery;
+import org.junit.jupiter.api.BeforeAll;
+import org.testcontainers.containers.ContainerState;
+import org.testcontainers.containers.DockerComposeContainer;
+
+import static java.util.Objects.nonNull;
+import static org.apache.skywalking.e2e.metrics.BrowserMetricsQuery.ALL_BROWSER_METRICS;
+import static org.apache.skywalking.e2e.metrics.BrowserMetricsQuery.ALL_BROWSER_PAGE_METRICS;
+import static org.apache.skywalking.e2e.metrics.BrowserMetricsQuery.ALL_BROWSER_PAGE_MULTIPLE_LINEAR_METRICS;
+import static org.apache.skywalking.e2e.metrics.BrowserMetricsQuery.ALL_BROWSER_SINGLE_VERSION_METRICS;
+import static org.apache.skywalking.e2e.metrics.MetricsMatcher.verifyMetrics;
+import static org.apache.skywalking.e2e.metrics.MetricsMatcher.verifyPercentileMetrics;
+import static org.apache.skywalking.e2e.utils.Times.now;
+import static org.apache.skywalking.e2e.utils.Yamls.load;
+
+@Slf4j
+@SkyWalkingE2E
+public class BrowserE2E extends SkyWalkingTestAdapter {
+
+ private static final int MAX_INBOUND_MESSAGE_SIZE = 1024 * 1024 * 50;
+
+ private static final String BROWSER_NAME = "e2e";
+
+ private static final String BROWSER_SINGLE_VERSION_NAME = "v1.0.0";
+
+ @SuppressWarnings("unused")
+ @DockerCompose({
+ "docker/browser/docker-compose.${SW_STORAGE}.yml",
+ })
+ protected DockerComposeContainer<?> compose;
+
+ @SuppressWarnings("unused")
+ @ContainerHostAndPort(name = "ui", port = 8080)
+ private HostAndPort swWebappHostPort;
+
+ @SuppressWarnings("unused")
+ @ContainerHostAndPort(name = "oap", port = 11800)
+ private HostAndPort oapHostPort;
+
+ @SuppressWarnings("unused")
+ @DockerContainer("oap")
+ private ContainerState oapContainer;
+
+ private RegisterGrpc.RegisterBlockingStub registerStub;
+
+ private BrowserPerfServiceGrpc.BrowserPerfServiceStub browserPerfServiceStub;
+
+ private volatile int browserId;
+
+ private volatile int browserSingleVersionId;
+
+ @BeforeAll
+ public void setUp() {
+ queryClient(swWebappHostPort);
+
+ final ManagedChannel channel =
+ NettyChannelBuilder.forAddress(oapHostPort.host(), oapHostPort.port())
+ .nameResolverFactory(new DnsNameResolverProvider())
+ .maxInboundMessageSize(MAX_INBOUND_MESSAGE_SIZE)
+ .usePlaintext()
+ .build();
+
+ registerStub = RegisterGrpc.newBlockingStub(channel);
+ browserPerfServiceStub = BrowserPerfServiceGrpc.newStub(channel);
+
+ register();
+ generateTraffic();
+ }
+
+ @RetryableTest
+ void verify() throws Exception {
+ final List<Service> services = graphql.browserServices(new ServicesQuery().start(startTime).end(now()));
+ LOGGER.info("services: {}", services);
+
+ load("expected/browser/services.yml")
+ .as(ServicesMatcher.class).verify(services);
+
+ for (Service service : services) {
+ LOGGER.info("verifying service version: {}", service);
+ // service metrics
+ verifyBrowserMetrics(service);
+
+ // service version
+ verifyBrowserSingleVersion(service);
+
+ // service page path
+ verifyBrowserPagePath(service);
+ }
+ }
+
+ private void verifyBrowserMetrics(final Service service) throws Exception {
+ for (String metricName : ALL_BROWSER_METRICS) {
+ verifyMetrics(graphql, metricName, service.getKey(), startTime);
+ }
+ }
+
+ private Instances verifyBrowserSingleVersion(final Service service) throws Exception {
+ Instances instances = graphql.instances(
+ new InstancesQuery().serviceId(service.getKey()).start(startTime).end(now())
+ );
+ LOGGER.info("instances: {}", instances);
+ load("expected/browser/version.yml").as(InstancesMatcher.class).verify(instances);
+ // service version metrics
+ for (Instance instance : instances.getInstances()) {
+ verifyBrowserSingleVersionMetrics(instance);
+ }
+ return instances;
+ }
+
+ private void verifyBrowserSingleVersionMetrics(Instance instance) throws Exception {
+ for (String metricName : ALL_BROWSER_SINGLE_VERSION_METRICS) {
+ verifyMetrics(graphql, metricName, instance.getKey(), startTime);
+ }
+ }
+
+ private Endpoints verifyBrowserPagePath(final Service service) throws Exception {
+ Endpoints endpoints = graphql.endpoints(new EndpointQuery().serviceId(String.valueOf(service.getKey())));
+ LOGGER.info("endpoints: {}", endpoints);
+ load("expected/browser/pagePath.yml").as(EndpointsMatcher.class).verify(endpoints);
+ // service page metrics
+ for (Endpoint endpoint : endpoints.getEndpoints()) {
+ verifyBrowserPagePathMetrics(endpoint);
+ }
+ return endpoints;
+ }
+
+ private void verifyBrowserPagePathMetrics(Endpoint endpoint) throws Exception {
+ for (String metricName : ALL_BROWSER_PAGE_METRICS) {
+ verifyMetrics(graphql, metricName, endpoint.getKey(), startTime);
+ }
+
+ for (String metricName : ALL_BROWSER_PAGE_MULTIPLE_LINEAR_METRICS) {
+ verifyPercentileMetrics(graphql, metricName, endpoint.getKey(), startTime);
+ }
+ }
+
+ private void generateTraffic() {
+ trafficController = TrafficController.builder()
+ .sender(this::sendBrowserData)
+ .build()
+ .start();
+ }
+
+ private boolean sendBrowserData() {
+ try {
+ BrowserPerfData.Builder perfBuilder = BrowserPerfData.newBuilder()
+ .setServiceId(browserId)
+ .setServiceVersionId(browserSingleVersionId)
+ .setPagePath("/e2e-browser")
+ .setRedirectTime(10)
+ .setDnsTime(10)
+ .setReqTime(10)
+ .setDomAnalysisTime(10)
+ .setDomReadyTime(10)
+ .setBlankTime(10);
+ sendBrowserPerfData(perfBuilder.build());
+
+ for (ErrorCategory category : ErrorCategory.values()) {
+ if (category == ErrorCategory.UNRECOGNIZED) {
+ continue;
+ }
+ BrowserErrorLog.Builder errorLogBuilder = BrowserErrorLog.newBuilder()
+ .setUniqueId(UUID.randomUUID().toString())
+ .setServiceId(browserId)
+ .setServiceVersionId(browserSingleVersionId)
+ .setPagePath("/e2e-browser")
+ .setCategory(category)
+ .setMessage("test")
+ .setLine(1)
+ .setCol(1)
+ .setStack("e2e")
+ .setErrorUrl("/e2e/browser");
+ if (category == ErrorCategory.js) {
+ errorLogBuilder.setFirstReportedError(true);
+ }
+ sendBrowserErrorLog(errorLogBuilder.build());
+ }
+ return true;
+ } catch (Throwable e) {
+ LOGGER.warn(e.getMessage(), e);
+ return false;
+ }
+ }
+
+ private void sendBrowserPerfData(BrowserPerfData browserPerfData) throws InterruptedException {
+ final CountDownLatch latch = new CountDownLatch(1);
+
+ browserPerfServiceStub.collectPerfData(browserPerfData, new StreamObserver<Commands>() {
+ @Override
+ public void onNext(Commands commands) {
+
+ }
+
+ @Override
+ public void onError(Throwable throwable) {
+ throwable.printStackTrace();
+ latch.countDown();
+ }
+
+ @Override
+ public void onCompleted() {
+ latch.countDown();
+ }
+ });
+ latch.await();
+ }
+
+ private void sendBrowserErrorLog(BrowserErrorLog browserErrorLog) throws InterruptedException {
+ final CountDownLatch latch = new CountDownLatch(1);
+
+ StreamObserver<BrowserErrorLog> collectStream = browserPerfServiceStub.collectErrorLogs(
+ new StreamObserver<Commands>() {
+ @Override
+ public void onNext(Commands commands) {
+
+ }
+
+ @Override
+ public void onError(Throwable throwable) {
+ throwable.printStackTrace();
+ latch.countDown();
+ }
+
+ @Override
+ public void onCompleted() {
+ latch.countDown();
+ }
+ });
+ collectStream.onNext(browserErrorLog);
+ collectStream.onCompleted();
+ latch.await();
+ }
+
+ private void register() {
+ int retryIndex = 0;
+ while (browserId == 0 || browserSingleVersionId == 0) {
+ try {
+ if (browserId == 0) {
+ browserId = registerBrowser();
+ }
+ if (browserId > 0) {
+ browserSingleVersionId = registerBrowserSingleVersion(browserId);
+ }
+ if (browserId > 0 && browserSingleVersionId > 0) {
+ break;
+ }
+ } catch (Throwable e) {
+ if (++retryIndex % 5 == 0) {
+ LOGGER.error(e.getMessage(), e);
+ }
+ }
+ try {
+ Thread.sleep(1000);
+ } catch (InterruptedException e) {
+ // ignore
+ }
+ }
+ }
Review comment:
this should be a test case too, verifying that registering works, and order the cases, place this at the 1st, and the others that depend on this after that, as for ordering cases, refer to `AgentRebootE2E`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379509831
##########
File path: test/e2e/e2e-base/src/main/java/org/apache/skywalking/e2e/metrics/MetricsMatcher.java
##########
@@ -64,15 +72,23 @@ public static void verifyMetrics(SimpleQueryClient queryClient, String metricNam
}
public static void verifyPercentileMetrics(SimpleQueryClient queryClient, String metricName, String id,
- final LocalDateTime minutesAgo, long retryInterval, Runnable generateTraffic) throws Exception {
+ final LocalDateTime minutesAgo, long retryInterval, Runnable generateTraffic) throws Exception {
+ verifyPercentileMetrics(queryClient, metricName, id, minutesAgo, LocalDateTime.now(ZoneOffset.UTC).plusMinutes(1), retryInterval, generateTraffic);
Review comment:
Convenient debug, set end time according to local TZ.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] Fine0830 commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
Fine0830 commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r373828732
##########
File path: oap-server/server-bootstrap/src/main/resources/browser_analysis.oal
##########
@@ -0,0 +1,87 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF 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.
+*
+*/
+
+// Browser service
+browser_redirect_avg = from(BrowserPerfDetail.redirectTime).longAvg();
+browser_dns_avg = from(BrowserPerfDetail.dnsTime).longAvg();
+browser_req_avg = from(BrowserPerfDetail.reqTime).longAvg();
+browser_dom_analysis_avg = from(BrowserPerfDetail.domAnalysisTime).longAvg();
+browser_dom_ready_avg = from(BrowserPerfDetail.domReadyTime).longAvg();
+browser_blank_avg = from(BrowserPerfDetail.blankTime).longAvg();
+
+// Multiple values including p50, p75, p90, p95, p99
+browser_redirect_percentile = from(BrowserPerfDetail.redirectTime).percentile(10);
+browser_dns_percentile = from(BrowserPerfDetail.dnsTime).percentile(10);
+browser_req_percentile = from(BrowserPerfDetail.reqTime).percentile(10);
+browser_dom_analysis_percentile = from(BrowserPerfDetail.domAnalysisTime).percentile(10);
+browser_dom_ready_percentile = from(BrowserPerfDetail.domReadyTime).percentile(10);
+browser_blank_percentile = from(BrowserPerfDetail.blankTime).percentile(10);
Review comment:
I don't think we need those metrics. service page metrics are enough.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-584504175
Please review @wu-sheng @Fine0830.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-587246744
> @arugal Have you finished the changes?
Yes.
> Then we will prepare the release once the profile and InfluxDB features are ready.
Two very powerful features. I will update `browser-e2e` after nfluxDB features merge.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] Fine0830 commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
Fine0830 commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r373831280
##########
File path: oap-server/server-bootstrap/src/main/resources/browser_analysis.oal
##########
@@ -0,0 +1,87 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF 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.
+*
+*/
+
+// Browser service
+browser_redirect_avg = from(BrowserPerfDetail.redirectTime).longAvg();
+browser_dns_avg = from(BrowserPerfDetail.dnsTime).longAvg();
+browser_req_avg = from(BrowserPerfDetail.reqTime).longAvg();
+browser_dom_analysis_avg = from(BrowserPerfDetail.domAnalysisTime).longAvg();
+browser_dom_ready_avg = from(BrowserPerfDetail.domReadyTime).longAvg();
+browser_blank_avg = from(BrowserPerfDetail.blankTime).longAvg();
+
+// Multiple values including p50, p75, p90, p95, p99
+browser_redirect_percentile = from(BrowserPerfDetail.redirectTime).percentile(10);
+browser_dns_percentile = from(BrowserPerfDetail.dnsTime).percentile(10);
+browser_req_percentile = from(BrowserPerfDetail.reqTime).percentile(10);
+browser_dom_analysis_percentile = from(BrowserPerfDetail.domAnalysisTime).percentile(10);
+browser_dom_ready_percentile = from(BrowserPerfDetail.domReadyTime).percentile(10);
+browser_blank_percentile = from(BrowserPerfDetail.blankTime).percentile(10);
+
+// Browser service page
+browser_page_pv = from(BrowserPagePathPerfDetail.count).sum();
+browser_page_error_rate = from(BrowserPagePathPerfDetail.*).percent(status == false);
+
Review comment:
We need to sort errors and calculate errors sum for different catalogs. Will need all of errors sum. Please add metics for those.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379416559
##########
File path: test/e2e/e2e-browser/e2e-browser-es/src/test/java/org/apache/skywalking/e2e/ESWithBrowserPerfITCase.java
##########
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ */
+
+package org.apache.skywalking.e2e;
+
+import lombok.extern.slf4j.Slf4j;
+import org.apache.skywalking.e2e.browser.BrowserPerfITCase;
+
+@Slf4j
+public class ESWithBrowserPerfITCase extends BrowserPerfITCase {
Review comment:
Storage should be based on backend storage settings, why test case cares about this? Especially, there is nothing different with `BrowserPerfITCase`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/036aee8d2cfd83afecfc43b5e5d7b8e288122efb?src=pr&el=desc) will **decrease** coverage by `0.63%`.
> The diff coverage is `1.13%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
=========================================
- Coverage 25.14% 24.5% -0.64%
=========================================
Files 1211 1251 +40
Lines 28078 28817 +739
Branches 3864 3952 +88
=========================================
+ Hits 7059 7061 +2
- Misses 20370 21107 +737
Partials 649 649
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...ing/oap/server/core/source/DefaultScopeDefine.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvc291cmNlL0RlZmF1bHRTY29wZURlZmluZS5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...he/skywalking/oal/rt/output/DispatcherContext.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9vYWwtcnQvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FsL3J0L291dHB1dC9EaXNwYXRjaGVyQ29udGV4dC5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...pache/skywalking/oal/rt/parser/AnalysisResult.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9vYWwtcnQvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FsL3J0L3BhcnNlci9BbmFseXNpc1Jlc3VsdC5qYXZh) | `59.25% <ø> (ø)` | :arrow_up: |
| [...receiver/trace/provider/parser/SegmentParseV2.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL1NlZ21lbnRQYXJzZVYyLmphdmE=) | `0% <ø> (ø)` | :arrow_up: |
| [...r/parser/listener/endpoint/TraceSourceBuilder.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL2xpc3RlbmVyL2VuZHBvaW50L1RyYWNlU291cmNlQnVpbGRlci5qYXZh) | `0% <ø> (ø)` | |
| [...ing/oap/server/core/source/SourceReceiverImpl.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvc291cmNlL1NvdXJjZVJlY2VpdmVySW1wbC5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...arch/ZipkinStorageModuleElasticsearchProvider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItc3RvcmFnZS1wbHVnaW4vc3RvcmFnZS16aXBraW4tcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvc3RvcmFnZS9wbHVnaW4vemlwa2luL2VsYXN0aWNzZWFyY2gvWmlwa2luU3RvcmFnZU1vZHVsZUVsYXN0aWNzZWFyY2hQcm92aWRlci5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...ovider/handler/v6/grpc/RegisterServiceHandler.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctcmVnaXN0ZXItcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvcmVnaXN0ZXIvcHJvdmlkZXIvaGFuZGxlci92Ni9ncnBjL1JlZ2lzdGVyU2VydmljZUhhbmRsZXIuamF2YQ==) | `0% <ø> (ø)` | :arrow_up: |
| [...arch/JaegerStorageModuleElasticsearchProvider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItc3RvcmFnZS1wbHVnaW4vc3RvcmFnZS1qYWVnZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvc3RvcmFnZS9wbHVnaW4vamFlZ2VyL2VsYXN0aWNzZWFyY2gvSmFlZ2VyU3RvcmFnZU1vZHVsZUVsYXN0aWNzZWFyY2hQcm92aWRlci5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...e/skywalking/oap/server/core/oal/rt/OALEngine.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvb2FsL3J0L09BTEVuZ2luZS5qYXZh) | `0% <0%> (ø)` | |
| ... and [101 more](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [036aee8...7678939](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r368230350
##########
File path: oap-server/oal-grammar/src/main/antlr4/org/apache/skywalking/oal/rt/grammar/OALLexer.g4
##########
@@ -44,6 +44,12 @@ SRC_SERVICE_INSTANCE_CLR_GC: 'ServiceInstanceCLRGC';
SRC_SERVICE_INSTANCE_CLR_THREAD: 'ServiceInstanceCLRThread';
SRC_ENVOY_INSTANCE_METRIC: 'EnvoyInstanceMetric';
+// Browser keywords
+SRC_BROWSER_SERVICE_PERF_DETAIL: 'ServicePerfDetail';
+SRC_BROWSER_SERVICE_PAGE_PATH_PERF_DETAIL: 'ServicePagePathPerfDetail';
+SRC_BROWSER_SERVICE_VERSION_PERF_DETAIL: 'ServiceVersionPerfDetail';
+SRC_BROWSER_SERVICE_VERSION_PAGE_PATH_PERF_DETAIL: 'ServiceVersionPagePathPerfDetail';
Review comment:
All these should be named `Browser*`. `ServiceVersion` should be `BrowserSingleVersion*`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r372364704
##########
File path: oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/browser/source/BrowserPagePathPerfDetail.java
##########
@@ -0,0 +1,60 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.oap.server.core.browser.source;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.apache.skywalking.oap.server.core.Const;
+import org.apache.skywalking.oap.server.core.source.ScopeDeclaration;
+import org.apache.skywalking.oap.server.core.source.ScopeDefaultColumn;
+import org.apache.skywalking.oap.server.core.source.Source;
+
+import static org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.BROWSER_PAGE_PATH_CATALOG_NAME;
+import static org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.BROWSER_PAGE_PATH_PERF_DETAIL;
+
+/**
+ * @author zhangwei
+ */
+@ScopeDeclaration(id = BROWSER_PAGE_PATH_PERF_DETAIL, name = "BrowserPagePathPerfDetail", catalog = BROWSER_PAGE_PATH_CATALOG_NAME)
+@ScopeDefaultColumn.VirtualColumnDefinition(fieldName = "entityId", columnName = "entity_id", isID = true, type = String.class)
+public class BrowserPagePathPerfDetail extends Source {
Review comment:
`BrowserPagePathPerfDetail`-> `BrowserAppPagePerf`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/2e9f0016332ec4d3d79393897c7985eda2376fd6?src=pr&el=desc) will **decrease** coverage by `0.62%`.
> The diff coverage is `1.13%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
==========================================
- Coverage 25.55% 24.92% -0.63%
==========================================
Files 1245 1285 +40
Lines 28961 29700 +739
Branches 3973 4061 +88
==========================================
+ Hits 7402 7404 +2
- Misses 20869 21606 +737
Partials 690 690
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...ver/tool/profile/core/mock/MockSourceReceiver.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItdG9vbHMvcHJvZmlsZS1leHBvcnRlci90b29sLXByb2ZpbGUtc25hcHNob3Qtc2VydmVyLW1vY2svc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci90b29sL3Byb2ZpbGUvY29yZS9tb2NrL01vY2tTb3VyY2VSZWNlaXZlci5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...ing/oap/server/core/source/DefaultScopeDefine.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvc291cmNlL0RlZmF1bHRTY29wZURlZmluZS5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...he/skywalking/oal/rt/output/DispatcherContext.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9vYWwtcnQvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FsL3J0L291dHB1dC9EaXNwYXRjaGVyQ29udGV4dC5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...pache/skywalking/oal/rt/parser/AnalysisResult.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9vYWwtcnQvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FsL3J0L3BhcnNlci9BbmFseXNpc1Jlc3VsdC5qYXZh) | `59.25% <ø> (ø)` | :arrow_up: |
| [...receiver/trace/provider/parser/SegmentParseV2.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL1NlZ21lbnRQYXJzZVYyLmphdmE=) | `0% <ø> (ø)` | :arrow_up: |
| [...r/parser/listener/endpoint/TraceSourceBuilder.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL2xpc3RlbmVyL2VuZHBvaW50L1RyYWNlU291cmNlQnVpbGRlci5qYXZh) | `0% <ø> (ø)` | |
| [...ing/oap/server/core/source/SourceReceiverImpl.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvc291cmNlL1NvdXJjZVJlY2VpdmVySW1wbC5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...arch/ZipkinStorageModuleElasticsearchProvider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItc3RvcmFnZS1wbHVnaW4vc3RvcmFnZS16aXBraW4tcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvc3RvcmFnZS9wbHVnaW4vemlwa2luL2VsYXN0aWNzZWFyY2gvWmlwa2luU3RvcmFnZU1vZHVsZUVsYXN0aWNzZWFyY2hQcm92aWRlci5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...ovider/handler/v6/grpc/RegisterServiceHandler.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctcmVnaXN0ZXItcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvcmVnaXN0ZXIvcHJvdmlkZXIvaGFuZGxlci92Ni9ncnBjL1JlZ2lzdGVyU2VydmljZUhhbmRsZXIuamF2YQ==) | `0% <ø> (ø)` | :arrow_up: |
| [...arch/JaegerStorageModuleElasticsearchProvider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItc3RvcmFnZS1wbHVnaW4vc3RvcmFnZS1qYWVnZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvc3RvcmFnZS9wbHVnaW4vamFlZ2VyL2VsYXN0aWNzZWFyY2gvSmFlZ2VyU3RvcmFnZU1vZHVsZUVsYXN0aWNzZWFyY2hQcm92aWRlci5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| ... and [102 more](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [2e9f001...14708d8](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-581134796
The metrics summary by review comments.
```
// browser app
browser_app_pv
browser_app_error_rate
browser_app_error_sum
// browser app single version
browser_app_single_version_page_pv
browser_app_single_version_page_error_rate
// browser app page
browser_app_page_pv
browser_app_page_error_rate
browser_app_page_error_sum
browser_app_page_ajax_error_sum
browsre_app_page_resource_error_sum
browsre_app_page_vue_error_sum
browsre_app_page_promise_error_sum
browser_app_page_js_error_sum
browser_app_page_unknown_error_sum
browser_app_page_redirect_avg
browser_app_page_dns_avg
browser_app_page_req_avg
browser_app_page_dom_analysis_avg
browser_app_page_dom_ready_avg
browser_app_page_blank_avg
browser_app_page_redirect_percentile
browser_app_page_dns_percentile
browser_app_page_req_percentile
browser_app_page_dom_analysis_percentile
browser_app_page_dom_ready_percentile
browser_app_page_blank_percentile
```
> We should add error rate ranking for versions in service.
The sort will be implemented in the `query-plugin`.
> We need to sort errors and calculate errors sum for different catalogs.
Please provide all known value for the `BrowserErrorLog#catalog` @Fine0830 . I suggest to change the [BrowserErrorLog#catalog](https://github.com/apache/skywalking-data-collect-protocol/blob/eebd016e32b0808416923acf04dcd31d9eb86c09/browser/BrowserPerf.proto#L49) to an enum.
@wu-sheng @Fine0830 Please confirm :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] kezhenxu94 commented on a change in pull request
#4228: Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r395136584
##########
File path: test/e2e/e2e-test/src/test/java/org/apache/skywalking/e2e/ClusterE2E.java
##########
@@ -122,18 +123,18 @@ void topology() throws Exception {
verifyServiceRelationMetrics(topology.getCalls());
final String clientId = topology.getNodes()
- .stream()
- .filter(n -> n.getName().equals(providerName))
- .findFirst()
- .orElseThrow(NullPointerException::new)
- .getId();
+ .stream()
+ .filter(n -> n.getName().equals(providerName))
+ .findFirst()
+ .orElseThrow(NullPointerException::new)
+ .getId();
Review comment:
revert these, and format the ones in `BrowserE2E`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] kezhenxu94 commented on a change in pull request
#4228: Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r395664837
##########
File path: test/e2e/e2e-test/src/test/java/org/apache/skywalking/e2e/browser/BrowserE2E.java
##########
@@ -0,0 +1,353 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.e2e.browser;
+
+import io.grpc.ManagedChannel;
+import io.grpc.internal.DnsNameResolverProvider;
+import io.grpc.netty.NettyChannelBuilder;
+import io.grpc.stub.StreamObserver;
+import java.util.List;
+import java.util.UUID;
+import java.util.concurrent.CountDownLatch;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.skywalking.apm.network.common.Commands;
+import org.apache.skywalking.apm.network.common.KeyIntValuePair;
+import org.apache.skywalking.apm.network.common.ServiceType;
+import org.apache.skywalking.apm.network.language.agent.BrowserErrorLog;
+import org.apache.skywalking.apm.network.language.agent.BrowserPerfData;
+import org.apache.skywalking.apm.network.language.agent.BrowserPerfServiceGrpc;
+import org.apache.skywalking.apm.network.language.agent.ErrorCategory;
+import org.apache.skywalking.apm.network.register.v2.RegisterGrpc;
+import org.apache.skywalking.apm.network.register.v2.ServiceInstance;
+import org.apache.skywalking.apm.network.register.v2.ServiceInstanceRegisterMapping;
+import org.apache.skywalking.apm.network.register.v2.ServiceInstances;
+import org.apache.skywalking.apm.network.register.v2.ServiceRegisterMapping;
+import org.apache.skywalking.apm.network.register.v2.Services;
+import org.apache.skywalking.e2e.annotation.ContainerHostAndPort;
+import org.apache.skywalking.e2e.annotation.DockerCompose;
+import org.apache.skywalking.e2e.annotation.DockerContainer;
+import org.apache.skywalking.e2e.base.SkyWalkingE2E;
+import org.apache.skywalking.e2e.base.SkyWalkingTestAdapter;
+import org.apache.skywalking.e2e.base.TrafficController;
+import org.apache.skywalking.e2e.common.HostAndPort;
+import org.apache.skywalking.e2e.retryable.RetryableTest;
+import org.apache.skywalking.e2e.service.Service;
+import org.apache.skywalking.e2e.service.ServicesMatcher;
+import org.apache.skywalking.e2e.service.ServicesQuery;
+import org.apache.skywalking.e2e.service.endpoint.Endpoint;
+import org.apache.skywalking.e2e.service.endpoint.EndpointQuery;
+import org.apache.skywalking.e2e.service.endpoint.Endpoints;
+import org.apache.skywalking.e2e.service.endpoint.EndpointsMatcher;
+import org.apache.skywalking.e2e.service.instance.Instance;
+import org.apache.skywalking.e2e.service.instance.Instances;
+import org.apache.skywalking.e2e.service.instance.InstancesMatcher;
+import org.apache.skywalking.e2e.service.instance.InstancesQuery;
+import org.junit.jupiter.api.BeforeAll;
+import org.testcontainers.containers.ContainerState;
+import org.testcontainers.containers.DockerComposeContainer;
+
+import static java.util.Objects.nonNull;
+import static org.apache.skywalking.e2e.metrics.BrowserMetricsQuery.ALL_BROWSER_METRICS;
+import static org.apache.skywalking.e2e.metrics.BrowserMetricsQuery.ALL_BROWSER_PAGE_METRICS;
+import static org.apache.skywalking.e2e.metrics.BrowserMetricsQuery.ALL_BROWSER_PAGE_MULTIPLE_LINEAR_METRICS;
+import static org.apache.skywalking.e2e.metrics.BrowserMetricsQuery.ALL_BROWSER_SINGLE_VERSION_METRICS;
+import static org.apache.skywalking.e2e.metrics.MetricsMatcher.verifyMetrics;
+import static org.apache.skywalking.e2e.metrics.MetricsMatcher.verifyPercentileMetrics;
+import static org.apache.skywalking.e2e.utils.Times.now;
+import static org.apache.skywalking.e2e.utils.Yamls.load;
+
+@Slf4j
+@SkyWalkingE2E
+public class BrowserE2E extends SkyWalkingTestAdapter {
+
+ private static final int MAX_INBOUND_MESSAGE_SIZE = 1024 * 1024 * 50;
+
+ private static final String BROWSER_NAME = "e2e";
+
+ private static final String BROWSER_SINGLE_VERSION_NAME = "v1.0.0";
+
+ @SuppressWarnings("unused")
+ @DockerCompose({
+ "docker/browser/docker-compose.${SW_STORAGE}.yml",
+ })
+ protected DockerComposeContainer<?> compose;
+
+ @SuppressWarnings("unused")
+ @ContainerHostAndPort(name = "ui", port = 8080)
+ private HostAndPort swWebappHostPort;
+
+ @SuppressWarnings("unused")
+ @ContainerHostAndPort(name = "oap", port = 11800)
+ private HostAndPort oapHostPort;
+
+ @SuppressWarnings("unused")
+ @DockerContainer("oap")
+ private ContainerState oapContainer;
+
+ private RegisterGrpc.RegisterBlockingStub registerStub;
+
+ private BrowserPerfServiceGrpc.BrowserPerfServiceStub browserPerfServiceStub;
+
+ private volatile int browserId;
+
+ private volatile int browserSingleVersionId;
+
+ @BeforeAll
+ public void setUp() {
+ queryClient(swWebappHostPort);
+
+ final ManagedChannel channel =
+ NettyChannelBuilder.forAddress(oapHostPort.host(), oapHostPort.port())
+ .nameResolverFactory(new DnsNameResolverProvider())
+ .maxInboundMessageSize(MAX_INBOUND_MESSAGE_SIZE)
+ .usePlaintext()
+ .build();
+
+ registerStub = RegisterGrpc.newBlockingStub(channel);
+ browserPerfServiceStub = BrowserPerfServiceGrpc.newStub(channel);
+
+ register();
+ generateTraffic();
+ }
+
+ @RetryableTest
+ void verify() throws Exception {
+ final List<Service> services = graphql.browserServices(new ServicesQuery().start(startTime).end(now()));
+ LOGGER.info("services: {}", services);
+
+ load("expected/browser/services.yml")
+ .as(ServicesMatcher.class).verify(services);
Review comment:
```suggestion
load("expected/browser/services.yml").as(ServicesMatcher.class).verify(services);
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] kezhenxu94 commented on a change in pull request
#4228: Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r395664418
##########
File path: test/e2e/e2e-test/src/test/java/org/apache/skywalking/e2e/browser/BrowserE2E.java
##########
@@ -0,0 +1,353 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.e2e.browser;
+
+import io.grpc.ManagedChannel;
+import io.grpc.internal.DnsNameResolverProvider;
+import io.grpc.netty.NettyChannelBuilder;
+import io.grpc.stub.StreamObserver;
+import java.util.List;
+import java.util.UUID;
+import java.util.concurrent.CountDownLatch;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.skywalking.apm.network.common.Commands;
+import org.apache.skywalking.apm.network.common.KeyIntValuePair;
+import org.apache.skywalking.apm.network.common.ServiceType;
+import org.apache.skywalking.apm.network.language.agent.BrowserErrorLog;
+import org.apache.skywalking.apm.network.language.agent.BrowserPerfData;
+import org.apache.skywalking.apm.network.language.agent.BrowserPerfServiceGrpc;
+import org.apache.skywalking.apm.network.language.agent.ErrorCategory;
+import org.apache.skywalking.apm.network.register.v2.RegisterGrpc;
+import org.apache.skywalking.apm.network.register.v2.ServiceInstance;
+import org.apache.skywalking.apm.network.register.v2.ServiceInstanceRegisterMapping;
+import org.apache.skywalking.apm.network.register.v2.ServiceInstances;
+import org.apache.skywalking.apm.network.register.v2.ServiceRegisterMapping;
+import org.apache.skywalking.apm.network.register.v2.Services;
+import org.apache.skywalking.e2e.annotation.ContainerHostAndPort;
+import org.apache.skywalking.e2e.annotation.DockerCompose;
+import org.apache.skywalking.e2e.annotation.DockerContainer;
+import org.apache.skywalking.e2e.base.SkyWalkingE2E;
+import org.apache.skywalking.e2e.base.SkyWalkingTestAdapter;
+import org.apache.skywalking.e2e.base.TrafficController;
+import org.apache.skywalking.e2e.common.HostAndPort;
+import org.apache.skywalking.e2e.retryable.RetryableTest;
+import org.apache.skywalking.e2e.service.Service;
+import org.apache.skywalking.e2e.service.ServicesMatcher;
+import org.apache.skywalking.e2e.service.ServicesQuery;
+import org.apache.skywalking.e2e.service.endpoint.Endpoint;
+import org.apache.skywalking.e2e.service.endpoint.EndpointQuery;
+import org.apache.skywalking.e2e.service.endpoint.Endpoints;
+import org.apache.skywalking.e2e.service.endpoint.EndpointsMatcher;
+import org.apache.skywalking.e2e.service.instance.Instance;
+import org.apache.skywalking.e2e.service.instance.Instances;
+import org.apache.skywalking.e2e.service.instance.InstancesMatcher;
+import org.apache.skywalking.e2e.service.instance.InstancesQuery;
+import org.junit.jupiter.api.BeforeAll;
+import org.testcontainers.containers.ContainerState;
+import org.testcontainers.containers.DockerComposeContainer;
+
+import static java.util.Objects.nonNull;
+import static org.apache.skywalking.e2e.metrics.BrowserMetricsQuery.ALL_BROWSER_METRICS;
+import static org.apache.skywalking.e2e.metrics.BrowserMetricsQuery.ALL_BROWSER_PAGE_METRICS;
+import static org.apache.skywalking.e2e.metrics.BrowserMetricsQuery.ALL_BROWSER_PAGE_MULTIPLE_LINEAR_METRICS;
+import static org.apache.skywalking.e2e.metrics.BrowserMetricsQuery.ALL_BROWSER_SINGLE_VERSION_METRICS;
+import static org.apache.skywalking.e2e.metrics.MetricsMatcher.verifyMetrics;
+import static org.apache.skywalking.e2e.metrics.MetricsMatcher.verifyPercentileMetrics;
+import static org.apache.skywalking.e2e.utils.Times.now;
+import static org.apache.skywalking.e2e.utils.Yamls.load;
+
+@Slf4j
+@SkyWalkingE2E
+public class BrowserE2E extends SkyWalkingTestAdapter {
+
+ private static final int MAX_INBOUND_MESSAGE_SIZE = 1024 * 1024 * 50;
+
+ private static final String BROWSER_NAME = "e2e";
+
+ private static final String BROWSER_SINGLE_VERSION_NAME = "v1.0.0";
+
+ @SuppressWarnings("unused")
+ @DockerCompose({
+ "docker/browser/docker-compose.${SW_STORAGE}.yml",
+ })
+ protected DockerComposeContainer<?> compose;
+
+ @SuppressWarnings("unused")
+ @ContainerHostAndPort(name = "ui", port = 8080)
+ private HostAndPort swWebappHostPort;
+
+ @SuppressWarnings("unused")
+ @ContainerHostAndPort(name = "oap", port = 11800)
+ private HostAndPort oapHostPort;
+
+ @SuppressWarnings("unused")
+ @DockerContainer("oap")
+ private ContainerState oapContainer;
+
+ private RegisterGrpc.RegisterBlockingStub registerStub;
+
+ private BrowserPerfServiceGrpc.BrowserPerfServiceStub browserPerfServiceStub;
+
+ private volatile int browserId;
+
+ private volatile int browserSingleVersionId;
+
+ @BeforeAll
+ public void setUp() {
+ queryClient(swWebappHostPort);
+
+ final ManagedChannel channel =
+ NettyChannelBuilder.forAddress(oapHostPort.host(), oapHostPort.port())
+ .nameResolverFactory(new DnsNameResolverProvider())
+ .maxInboundMessageSize(MAX_INBOUND_MESSAGE_SIZE)
+ .usePlaintext()
+ .build();
+
+ registerStub = RegisterGrpc.newBlockingStub(channel);
+ browserPerfServiceStub = BrowserPerfServiceGrpc.newStub(channel);
+
+ register();
+ generateTraffic();
+ }
+
+ @RetryableTest
+ void verify() throws Exception {
Review comment:
rename this, because the test framework will automatically convert the method name `camelCaseMethodName` to `verify camel case method name`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/381a2cfd29d524ae9878d6c0210757096a34cf5a?src=pr&el=desc) will **decrease** coverage by `0.04%`.
> The diff coverage is `0%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
==========================================
- Coverage 25.53% 25.48% -0.05%
==========================================
Files 1217 1217
Lines 27605 27659 +54
Branches 3788 3793 +5
==========================================
Hits 7049 7049
- Misses 19922 19976 +54
Partials 634 634
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...erformance/decorator/BrowserPerfDataDecorator.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9wZXJmb3JtYW5jZS9kZWNvcmF0b3IvQnJvd3NlclBlcmZEYXRhRGVjb3JhdG9yLmphdmE=) | `0% <ø> (ø)` | :arrow_up: |
| [...rformance/standardization/PagePathIdExchanger.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9wZXJmb3JtYW5jZS9zdGFuZGFyZGl6YXRpb24vUGFnZVBhdGhJZEV4Y2hhbmdlci5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...ider/parser/performance/BrowserPerfDataParser.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9wZXJmb3JtYW5jZS9Ccm93c2VyUGVyZkRhdGFQYXJzZXIuamF2YQ==) | `0% <ø> (ø)` | :arrow_up: |
| [.../errorlog/standardization/PagePathIdExchanger.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9lcnJvcmxvZy9zdGFuZGFyZGl6YXRpb24vUGFnZVBhdGhJZEV4Y2hhbmdlci5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...erver/core/browser/source/BrowserErrorTraffic.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvYnJvd3Nlci9zb3VyY2UvQnJvd3NlckVycm9yVHJhZmZpYy5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...rrorlog/MultiScopesBrowserAppErrorLogListener.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9lcnJvcmxvZy9saXN0ZW5lci9lcnJvcmxvZy9NdWx0aVNjb3Blc0Jyb3dzZXJBcHBFcnJvckxvZ0xpc3RlbmVyLmphdmE=) | `0% <ø> (ø)` | :arrow_up: |
| [...e/listener/inventory/BrowserHeartbeatListener.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9wZXJmb3JtYW5jZS9saXN0ZW5lci9pbnZlbnRvcnkvQnJvd3NlckhlYXJ0YmVhdExpc3RlbmVyLmphdmE=) | `0% <ø> (ø)` | :arrow_up: |
| [...performance/MultiScopesBrowserAppPerfListener.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9wZXJmb3JtYW5jZS9saXN0ZW5lci9wZXJmb3JtYW5jZS9NdWx0aVNjb3Blc0Jyb3dzZXJBcHBQZXJmTGlzdGVuZXIuamF2YQ==) | `0% <ø> (ø)` | :arrow_up: |
| [...rovider/parser/errorlog/BrowserErrorLogParser.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9lcnJvcmxvZy9Ccm93c2VyRXJyb3JMb2dQYXJzZXIuamF2YQ==) | `0% <ø> (ø)` | :arrow_up: |
| [...r/errorlog/decorator/BrowserErrorLogDecorator.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9lcnJvcmxvZy9kZWNvcmF0b3IvQnJvd3NlckVycm9yTG9nRGVjb3JhdG9yLmphdmE=) | `0% <ø> (ø)` | :arrow_up: |
| ... and [7 more](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [381a2cf...6ed4a77](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r372358784
##########
File path: oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/oal/rt/OALEngineService.java
##########
@@ -0,0 +1,84 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.oap.server.core.oal.rt;
+
+import lombok.extern.slf4j.Slf4j;
+import org.apache.skywalking.oap.server.core.CoreModule;
+import org.apache.skywalking.oap.server.core.analysis.StreamAnnotationListener;
+import org.apache.skywalking.oap.server.core.source.SourceReceiver;
+import org.apache.skywalking.oap.server.library.module.ModuleManager;
+import org.apache.skywalking.oap.server.library.module.ModuleStartException;
+import org.apache.skywalking.oap.server.library.module.Service;
+
+import java.lang.reflect.Constructor;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ *
+ * @author zhangwei
+ */
+@Slf4j
+public class OALEngineService implements Service {
+
+ private final Map<OALEngine.Group, OALEngine> engineMap = new HashMap<>();
+ private final ModuleManager moduleManager;
+
+ public OALEngineService(ModuleManager moduleManager) {
+ this.moduleManager = moduleManager;
+ }
+
+ public void activate(OALEngine.Group group) throws ModuleStartException {
+ activate(group, OALEngineService.class.getClassLoader());
+ }
+
+ public void activate(OALEngine.Group group, ClassLoader classLoader) throws ModuleStartException {
Review comment:
Who will provide an external ClassLoader?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/50404493a3fbc1383511722a05a5fcaf825f9d2c?src=pr&el=desc) will **increase** coverage by `0.1%`.
> The diff coverage is `84.61%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
=========================================
+ Coverage 26.26% 26.36% +0.1%
=========================================
Files 1189 1189
Lines 25945 25944 -1
Branches 3687 3687
=========================================
+ Hits 6815 6841 +26
+ Misses 18525 18498 -27
Partials 605 605
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...ng/oap/server/core/alarm/provider/RunningRule.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItYWxhcm0tcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvY29yZS9hbGFybS9wcm92aWRlci9SdW5uaW5nUnVsZS5qYXZh) | `74% <84.61%> (-0.84%)` | :arrow_down: |
| [...king/apm/agent/core/remote/GRPCChannelManager.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcmVtb3RlL0dSUENDaGFubmVsTWFuYWdlci5qYXZh) | `67.94% <0%> (+1.28%)` | :arrow_up: |
| [...m/agent/core/remote/TraceSegmentServiceClient.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcmVtb3RlL1RyYWNlU2VnbWVudFNlcnZpY2VDbGllbnQuamF2YQ==) | `82.35% <0%> (+1.47%)` | :arrow_up: |
| [.../core/remote/ServiceAndEndpointRegisterClient.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcmVtb3RlL1NlcnZpY2VBbmRFbmRwb2ludFJlZ2lzdGVyQ2xpZW50LmphdmE=) | `31.46% <0%> (+3.37%)` | :arrow_up: |
| [.../agent/core/profile/ProfileTaskChannelService.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcHJvZmlsZS9Qcm9maWxlVGFza0NoYW5uZWxTZXJ2aWNlLmphdmE=) | `36.78% <0%> (+8.04%)` | :arrow_up: |
| [...alking/apm/agent/core/remote/AgentIDDecorator.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcmVtb3RlL0FnZW50SUREZWNvcmF0b3IuamF2YQ==) | `85.71% <0%> (+17.85%)` | :arrow_up: |
| [...ache/skywalking/apm/agent/core/jvm/JVMService.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvanZtL0pWTVNlcnZpY2UuamF2YQ==) | `77.04% <0%> (+18.03%)` | :arrow_up: |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [5040449...62e81ae](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379369588
##########
File path: oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/browser/manual/BrowserErrorTrafficRecord.java
##########
@@ -0,0 +1,129 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.oap.server.core.browser.manual;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.apache.skywalking.apm.util.StringUtil;
+import org.apache.skywalking.oap.server.core.Const;
+import org.apache.skywalking.oap.server.core.analysis.Stream;
+import org.apache.skywalking.oap.server.core.analysis.record.Record;
+import org.apache.skywalking.oap.server.core.analysis.worker.RecordStreamProcessor;
+import org.apache.skywalking.oap.server.core.source.DefaultScopeDefine;
+import org.apache.skywalking.oap.server.core.storage.StorageBuilder;
+import org.apache.skywalking.oap.server.core.storage.annotation.Column;
+import org.apache.skywalking.oap.server.library.util.CollectionUtils;
+
+import java.util.Base64;
+import java.util.HashMap;
+import java.util.Map;
+
+@Stream(name = BrowserErrorTrafficRecord.INDEX_NAME, scopeId = DefaultScopeDefine.BROWSER_ERROR_TRAFFIC, builder = BrowserErrorTrafficRecord.Builder.class, processor = RecordStreamProcessor.class)
+public class BrowserErrorTrafficRecord extends Record {
Review comment:
As a record type, this should be in the disable oal too. Make sense?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> :exclamation: No coverage uploaded for pull request base (`master@e86fd78`). [Click here to learn what that means](https://docs.codecov.io/docs/error-reference#section-missing-base-commit).
> The diff coverage is `0%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
=========================================
Coverage ? 25.71%
=========================================
Files ? 1212
Lines ? 27353
Branches ? 3750
=========================================
Hits ? 7035
Misses ? 19701
Partials ? 617
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...g/listener/errorlog/ErrorTrafficSourceBuilder.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9lcnJvcmxvZy9saXN0ZW5lci9lcnJvcmxvZy9FcnJvclRyYWZmaWNTb3VyY2VCdWlsZGVyLmphdmE=) | `0% <ø> (ø)` | |
| [...r/browser/provider/BrowserServiceModuleConfig.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL0Jyb3dzZXJTZXJ2aWNlTW9kdWxlQ29uZmlnLmphdmE=) | `0% <ø> (ø)` | |
| [...tandardization/BrowserPerfDataStandardization.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9wZXJmb3JtYW5jZS9zdGFuZGFyZGl6YXRpb24vQnJvd3NlclBlcmZEYXRhU3RhbmRhcmRpemF0aW9uLmphdmE=) | `0% <ø> (ø)` | |
| [...ier/browser/provider/parser/BrowserDataSource.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9Ccm93c2VyRGF0YVNvdXJjZS5qYXZh) | `0% <ø> (ø)` | |
| [...er/errorlog/decorator/BrowserErrorLogCoreInfo.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9lcnJvcmxvZy9kZWNvcmF0b3IvQnJvd3NlckVycm9yTG9nQ29yZUluZm8uamF2YQ==) | `0% <ø> (ø)` | |
| [...tandardization/BrowserErrorLogStandardization.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9lcnJvcmxvZy9zdGFuZGFyZGl6YXRpb24vQnJvd3NlckVycm9yTG9nU3RhbmRhcmRpemF0aW9uLmphdmE=) | `0% <ø> (ø)` | |
| [...errorlog/BrowserErrorLogParserListenerManager.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9lcnJvcmxvZy9Ccm93c2VyRXJyb3JMb2dQYXJzZXJMaXN0ZW5lck1hbmFnZXIuamF2YQ==) | `0% <ø> (ø)` | |
| [.../server/recevier/browser/module/BrowserModule.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL21vZHVsZS9Ccm93c2VyTW9kdWxlLmphdmE=) | `0% <ø> (ø)` | |
| [...erformance/decorator/BrowserPerfDataDecorator.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9wZXJmb3JtYW5jZS9kZWNvcmF0b3IvQnJvd3NlclBlcmZEYXRhRGVjb3JhdG9yLmphdmE=) | `0% <ø> (ø)` | |
| [...rformance/standardization/PagePathIdExchanger.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9wZXJmb3JtYW5jZS9zdGFuZGFyZGl6YXRpb24vUGFnZVBhdGhJZEV4Y2hhbmdlci5qYXZh) | `0% <ø> (ø)` | |
| ... and [15 more](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [e86fd78...ac327f4](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379404199
##########
File path: docs/en/setup/README.md
##########
@@ -25,6 +25,12 @@ You can go to their project repositories for additional info about guides and re
- [SkyAPM GO2Sky](https://github.com/SkyAPM/go2sky). See GO2Sky project document for more details.
+## Browser agent
+
+- Activate the [browser-receiver](backend/backend-receivers.md#browser-receiver) following the document.
+
+- [Browser Js Client](https://github.com/apache/skywalking-client-js). See `skywalking-client-js` project document for more details.
Review comment:
done
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379715955
##########
File path: test/e2e/e2e-base/src/main/java/org/apache/skywalking/e2e/metrics/MetricsMatcher.java
##########
@@ -64,15 +72,23 @@ public static void verifyMetrics(SimpleQueryClient queryClient, String metricNam
}
public static void verifyPercentileMetrics(SimpleQueryClient queryClient, String metricName, String id,
- final LocalDateTime minutesAgo, long retryInterval, Runnable generateTraffic) throws Exception {
+ final LocalDateTime minutesAgo, long retryInterval, Runnable generateTraffic) throws Exception {
+ verifyPercentileMetrics(queryClient, metricName, id, minutesAgo, LocalDateTime.now(ZoneOffset.UTC).plusMinutes(1), retryInterval, generateTraffic);
Review comment:
I get it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] Fine0830 commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
Fine0830 commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r373830591
##########
File path: oap-server/server-bootstrap/src/main/resources/browser_analysis.oal
##########
@@ -0,0 +1,87 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF 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.
+*
+*/
+
+// Browser service
Review comment:
We should add error rate ranking for versions in service.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/cf0d621cf759d6495694cc8ca124a50bb8cdb16e?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `n/a`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
=======================================
Coverage 26.35% 26.35%
=======================================
Files 1189 1189
Lines 25924 25924
Branches 3685 3685
=======================================
Hits 6832 6832
Misses 18486 18486
Partials 606 606
```
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [cf0d621...6403925](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> :exclamation: No coverage uploaded for pull request base (`master@63e1881`). [Click here to learn what that means](https://docs.codecov.io/docs/error-reference#section-missing-base-commit).
> The diff coverage is `13.54%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
=========================================
Coverage ? 26.54%
=========================================
Files ? 1182
Lines ? 25589
Branches ? 3630
=========================================
Hits ? 6793
Misses ? 18197
Partials ? 599
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...erver/receiver/jvm/provider/JVMModuleProvider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctanZtLXJlY2VpdmVyLXBsdWdpbi9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL3JlY2VpdmVyL2p2bS9wcm92aWRlci9KVk1Nb2R1bGVQcm92aWRlci5qYXZh) | `0% <ø> (ø)` | |
| [.../provider/parser/SegmentParserListenerManager.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL1NlZ21lbnRQYXJzZXJMaXN0ZW5lck1hbmFnZXIuamF2YQ==) | `0% <ø> (ø)` | |
| [...iver/register/provider/RegisterModuleProvider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctcmVnaXN0ZXItcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvcmVnaXN0ZXIvcHJvdmlkZXIvUmVnaXN0ZXJNb2R1bGVQcm92aWRlci5qYXZh) | `0% <ø> (ø)` | |
| [...lking/oap/server/core/query/TraceQueryService.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvcXVlcnkvVHJhY2VRdWVyeVNlcnZpY2UuamF2YQ==) | `0% <ø> (ø)` | |
| [...ce/provider/parser/decorator/SegmentDecorator.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL2RlY29yYXRvci9TZWdtZW50RGVjb3JhdG9yLmphdmE=) | `0% <0%> (ø)` | |
| [...ser/listener/endpoint/MultiScopesSpanListener.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL2xpc3RlbmVyL2VuZHBvaW50L011bHRpU2NvcGVzU3Bhbkxpc3RlbmVyLmphdmE=) | `0% <0%> (ø)` | |
| [...receiver/trace/provider/parser/SegmentParseV2.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL1NlZ21lbnRQYXJzZVYyLmphdmE=) | `0% <0%> (ø)` | |
| [...apache/skywalking/apm/network/ProtocolVersion.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXByb3RvY29sL2FwbS1uZXR3b3JrL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL2FwbS9uZXR3b3JrL1Byb3RvY29sVmVyc2lvbi5qYXZh) | `0% <0%> (ø)` | |
| [.../provider/parser/decorator/ReferenceDecorator.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL2RlY29yYXRvci9SZWZlcmVuY2VEZWNvcmF0b3IuamF2YQ==) | `0% <0%> (ø)` | |
| [...trace/provider/parser/decorator/SpanDecorator.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL2RlY29yYXRvci9TcGFuRGVjb3JhdG9yLmphdmE=) | `0% <0%> (ø)` | |
| ... and [5 more](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [63e1881...5bf6342](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/036aee8d2cfd83afecfc43b5e5d7b8e288122efb?src=pr&el=desc) will **decrease** coverage by `0.61%`.
> The diff coverage is `1.13%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
==========================================
- Coverage 25.14% 24.52% -0.62%
==========================================
Files 1211 1251 +40
Lines 28078 28817 +739
Branches 3864 3952 +88
==========================================
+ Hits 7059 7068 +9
- Misses 20370 21100 +730
Partials 649 649
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...ing/oap/server/core/source/DefaultScopeDefine.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvc291cmNlL0RlZmF1bHRTY29wZURlZmluZS5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...he/skywalking/oal/rt/output/DispatcherContext.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9vYWwtcnQvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FsL3J0L291dHB1dC9EaXNwYXRjaGVyQ29udGV4dC5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...pache/skywalking/oal/rt/parser/AnalysisResult.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9vYWwtcnQvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FsL3J0L3BhcnNlci9BbmFseXNpc1Jlc3VsdC5qYXZh) | `59.25% <ø> (ø)` | :arrow_up: |
| [...receiver/trace/provider/parser/SegmentParseV2.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL1NlZ21lbnRQYXJzZVYyLmphdmE=) | `0% <ø> (ø)` | :arrow_up: |
| [...r/parser/listener/endpoint/TraceSourceBuilder.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL2xpc3RlbmVyL2VuZHBvaW50L1RyYWNlU291cmNlQnVpbGRlci5qYXZh) | `0% <ø> (ø)` | |
| [...ing/oap/server/core/source/SourceReceiverImpl.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvc291cmNlL1NvdXJjZVJlY2VpdmVySW1wbC5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...arch/ZipkinStorageModuleElasticsearchProvider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItc3RvcmFnZS1wbHVnaW4vc3RvcmFnZS16aXBraW4tcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvc3RvcmFnZS9wbHVnaW4vemlwa2luL2VsYXN0aWNzZWFyY2gvWmlwa2luU3RvcmFnZU1vZHVsZUVsYXN0aWNzZWFyY2hQcm92aWRlci5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...ovider/handler/v6/grpc/RegisterServiceHandler.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctcmVnaXN0ZXItcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvcmVnaXN0ZXIvcHJvdmlkZXIvaGFuZGxlci92Ni9ncnBjL1JlZ2lzdGVyU2VydmljZUhhbmRsZXIuamF2YQ==) | `0% <ø> (ø)` | :arrow_up: |
| [...arch/JaegerStorageModuleElasticsearchProvider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItc3RvcmFnZS1wbHVnaW4vc3RvcmFnZS1qYWVnZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvc3RvcmFnZS9wbHVnaW4vamFlZ2VyL2VsYXN0aWNzZWFyY2gvSmFlZ2VyU3RvcmFnZU1vZHVsZUVsYXN0aWNzZWFyY2hQcm92aWRlci5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...e/skywalking/oap/server/core/oal/rt/OALEngine.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvb2FsL3J0L09BTEVuZ2luZS5qYXZh) | `0% <0%> (ø)` | |
| ... and [100 more](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [036aee8...8cc8882](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] Fine0830 commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
Fine0830 commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r373832544
##########
File path: oap-server/server-bootstrap/src/main/resources/browser_analysis.oal
##########
@@ -0,0 +1,87 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF 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.
+*
+*/
+
+// Browser service
+browser_redirect_avg = from(BrowserPerfDetail.redirectTime).longAvg();
+browser_dns_avg = from(BrowserPerfDetail.dnsTime).longAvg();
+browser_req_avg = from(BrowserPerfDetail.reqTime).longAvg();
+browser_dom_analysis_avg = from(BrowserPerfDetail.domAnalysisTime).longAvg();
+browser_dom_ready_avg = from(BrowserPerfDetail.domReadyTime).longAvg();
+browser_blank_avg = from(BrowserPerfDetail.blankTime).longAvg();
+
+// Multiple values including p50, p75, p90, p95, p99
+browser_redirect_percentile = from(BrowserPerfDetail.redirectTime).percentile(10);
+browser_dns_percentile = from(BrowserPerfDetail.dnsTime).percentile(10);
+browser_req_percentile = from(BrowserPerfDetail.reqTime).percentile(10);
+browser_dom_analysis_percentile = from(BrowserPerfDetail.domAnalysisTime).percentile(10);
+browser_dom_ready_percentile = from(BrowserPerfDetail.domReadyTime).percentile(10);
+browser_blank_percentile = from(BrowserPerfDetail.blankTime).percentile(10);
+
+// Browser service page
+browser_page_pv = from(BrowserPagePathPerfDetail.count).sum();
+browser_page_error_rate = from(BrowserPagePathPerfDetail.*).percent(status == false);
+
+browser_page_redirect_avg = from(BrowserPagePathPerfDetail.redirectTime).longAvg();
+browser_page_dns_avg = from(BrowserPagePathPerfDetail.dnsTime).longAvg();
+browser_page_req_avg = from(BrowserPagePathPerfDetail.reqTime).longAvg();
+browser_page_dom_analysis_avg = from(BrowserPagePathPerfDetail.domAnalysisTime).longAvg();
+browser_page_dom_ready_avg = from(BrowserPagePathPerfDetail.domReadyTime).longAvg();
+browser_page_blank_avg = from(BrowserPagePathPerfDetail.blankTime).longAvg();
+
+// Multiple values including p50, p75, p90, p95, p99
+browser_page_redirect_percentile = from(BrowserPagePathPerfDetail.redirectTime).percentile(10);
+browser_page_dns_percentile = from(BrowserPagePathPerfDetail.dnsTime).percentile(10);
+browser_page_req_percentile = from(BrowserPagePathPerfDetail.reqTime).percentile(10);
+browser_page_dom_analysis_percentile = from(BrowserPagePathPerfDetail.domAnalysisTime).percentile(10);
+browser_page_dom_ready_percentile = from(BrowserPagePathPerfDetail.domReadyTime).percentile(10);
+browser_page_blank_percentile = from(BrowserPagePathPerfDetail.blankTime).percentile(10);
+
+// Browser service version
Review comment:
As per service version dimension, will calculate all of errors sum and different catalogs sum.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-579752222
### Metrics are following
> 1. PV for every page(endpoint), version(instance) and service
1. **ADD**, browser_app_pv for global.
1. browser_page_pv
1. browser_single_version_page_pv
> 2. The error rate for every page.
1. **ADD**, browser_app_error_rate for global.
1. browser_page_error_rate
1. browser_single_version_page_error_rate
> 5. Avg value of all fields in PerfDetail.
1. browser_*_percentile
1. browser_*_avg
1. browser_*_percentile
Are above three global metrics?
_____
# Naming
1. BROWSER, global metrics for browser performance, like All in service metrics.
1. BROWSER_APP_*, service level metrics.
1. BROWSER_APP_SINGLE_VERSION_*, service instance level metrics
1. BROWSER_APP_PAGE_*, for every single page.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] kezhenxu94 commented on a change in pull request
#4228: Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r395134701
##########
File path: test/e2e/e2e-test/src/test/java/org/apache/skywalking/e2e/browser/BrowserE2E.java
##########
@@ -0,0 +1,352 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.e2e.browser;
+
+import io.grpc.ManagedChannel;
+import io.grpc.internal.DnsNameResolverProvider;
+import io.grpc.netty.NettyChannelBuilder;
+import io.grpc.stub.StreamObserver;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.skywalking.apm.network.common.Commands;
+import org.apache.skywalking.apm.network.common.KeyIntValuePair;
+import org.apache.skywalking.apm.network.common.ServiceType;
+import org.apache.skywalking.apm.network.language.agent.BrowserErrorLog;
+import org.apache.skywalking.apm.network.language.agent.BrowserPerfData;
+import org.apache.skywalking.apm.network.language.agent.BrowserPerfServiceGrpc;
+import org.apache.skywalking.apm.network.language.agent.ErrorCategory;
+import org.apache.skywalking.apm.network.register.v2.RegisterGrpc;
+import org.apache.skywalking.apm.network.register.v2.ServiceInstance;
+import org.apache.skywalking.apm.network.register.v2.ServiceInstanceRegisterMapping;
+import org.apache.skywalking.apm.network.register.v2.ServiceInstances;
+import org.apache.skywalking.apm.network.register.v2.ServiceRegisterMapping;
+import org.apache.skywalking.apm.network.register.v2.Services;
+import org.apache.skywalking.e2e.annotation.ContainerHostAndPort;
+import org.apache.skywalking.e2e.annotation.DockerCompose;
+import org.apache.skywalking.e2e.annotation.DockerContainer;
+import org.apache.skywalking.e2e.base.SkyWalkingE2E;
+import org.apache.skywalking.e2e.base.SkyWalkingTestAdapter;
+import org.apache.skywalking.e2e.base.TrafficController;
+import org.apache.skywalking.e2e.common.HostAndPort;
+import org.apache.skywalking.e2e.retryable.RetryableTest;
+import org.apache.skywalking.e2e.service.Service;
+import org.apache.skywalking.e2e.service.ServicesMatcher;
+import org.apache.skywalking.e2e.service.ServicesQuery;
+import org.apache.skywalking.e2e.service.endpoint.Endpoint;
+import org.apache.skywalking.e2e.service.endpoint.EndpointQuery;
+import org.apache.skywalking.e2e.service.endpoint.Endpoints;
+import org.apache.skywalking.e2e.service.endpoint.EndpointsMatcher;
+import org.apache.skywalking.e2e.service.instance.Instance;
+import org.apache.skywalking.e2e.service.instance.Instances;
+import org.apache.skywalking.e2e.service.instance.InstancesMatcher;
+import org.apache.skywalking.e2e.service.instance.InstancesQuery;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.MethodOrderer;
+import org.junit.jupiter.api.TestMethodOrder;
+import org.testcontainers.containers.ContainerState;
+import org.testcontainers.containers.DockerComposeContainer;
+
+import java.util.List;
+import java.util.UUID;
+import java.util.concurrent.CountDownLatch;
+
+import static java.util.Objects.nonNull;
+import static org.apache.skywalking.e2e.metrics.BrowserMetricsQuery.ALL_BROWSER_METRICS;
+import static org.apache.skywalking.e2e.metrics.BrowserMetricsQuery.ALL_BROWSER_PAGE_METRICS;
+import static org.apache.skywalking.e2e.metrics.BrowserMetricsQuery.ALL_BROWSER_PAGE_MULTIPLE_LINEAR_METRICS;
+import static org.apache.skywalking.e2e.metrics.BrowserMetricsQuery.ALL_BROWSER_SINGLE_VERSION_METRICS;
+import static org.apache.skywalking.e2e.metrics.MetricsMatcher.verifyMetrics;
+import static org.apache.skywalking.e2e.metrics.MetricsMatcher.verifyPercentileMetrics;
+import static org.apache.skywalking.e2e.utils.Times.now;
+import static org.apache.skywalking.e2e.utils.Yamls.load;
+
+@Slf4j
+@SkyWalkingE2E
+@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
Review comment:
Based on the tests, you don't need this
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r372360241
##########
File path: oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/source/DefaultScopeDefine.java
##########
@@ -71,16 +71,28 @@
public static final int PROFILE_TASK_LOG = 27;
public static final int PROFILE_TASK_SEGMENT_SNAPSHOT = 28;
+ // browser
+ public static final int BROWSER_PERF_DATA = 40;
Review comment:
`BROWSER_` -> `BROWSER_APP_`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/da1729705a106e7243b1738fa4fc2d8b1c65a5d1?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `n/a`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
=======================================
Coverage 26.41% 26.41%
=======================================
Files 1211 1211
Lines 26388 26388
Branches 3745 3745
=======================================
Hits 6970 6970
Misses 18799 18799
Partials 619 619
```
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [da17297...47b4eb8](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> :exclamation: No coverage uploaded for pull request base (`master@0804f61`). [Click here to learn what that means](https://docs.codecov.io/docs/error-reference#section-missing-base-commit).
> The diff coverage is `14.1%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
=========================================
Coverage ? 26.14%
=========================================
Files ? 1198
Lines ? 26026
Branches ? 3683
=========================================
Hits ? 6804
Misses ? 18619
Partials ? 603
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...ng/apm/plugin/grpc/v1/OperationNameFormatUtil.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLXNkay1wbHVnaW4vZ3JwYy0xLngtcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL2FwbS9wbHVnaW4vZ3JwYy92MS9PcGVyYXRpb25OYW1lRm9ybWF0VXRpbC5qYXZh) | `0% <ø> (ø)` | |
| [...lking/oap/query/graphql/resolver/ProfileQuery.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcXVlcnktcGx1Z2luL3F1ZXJ5LWdyYXBocWwtcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9xdWVyeS9ncmFwaHFsL3Jlc29sdmVyL1Byb2ZpbGVRdWVyeS5qYXZh) | `0% <0%> (ø)` | |
| [...g/apm/plugin/grpc/v1/client/TracingClientCall.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLXNkay1wbHVnaW4vZ3JwYy0xLngtcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL2FwbS9wbHVnaW4vZ3JwYy92MS9jbGllbnQvVHJhY2luZ0NsaWVudENhbGwuamF2YQ==) | `0% <0%> (ø)` | |
| [...1/server/AbstractServerImplBuilderInterceptor.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLXNkay1wbHVnaW4vZ3JwYy0xLngtcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL2FwbS9wbHVnaW4vZ3JwYy92MS9zZXJ2ZXIvQWJzdHJhY3RTZXJ2ZXJJbXBsQnVpbGRlckludGVyY2VwdG9yLmphdmE=) | `0% <0%> (ø)` | |
| [...s/interceptor/RequestMappingMethodInterceptor.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLXNkay1wbHVnaW4vc3ByaW5nLXBsdWdpbnMvbXZjLWFubm90YXRpb24tY29tbW9ucy9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9hcG0vcGx1Z2luL3NwcmluZy9tdmMvY29tbW9ucy9pbnRlcmNlcHRvci9SZXF1ZXN0TWFwcGluZ01ldGhvZEludGVyY2VwdG9yLmphdmE=) | `0% <0%> (ø)` | |
| [.../skywalking/apm/plugin/avro/SWClientRPCPlugin.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLXNkay1wbHVnaW4vYXZyby1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL3BsdWdpbi9hdnJvL1NXQ2xpZW50UlBDUGx1Z2luLmphdmE=) | `0% <0%> (ø)` | |
| [...ugin/grpc/v1/server/TracingServerCallListener.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLXNkay1wbHVnaW4vZ3JwYy0xLngtcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL2FwbS9wbHVnaW4vZ3JwYy92MS9zZXJ2ZXIvVHJhY2luZ1NlcnZlckNhbGxMaXN0ZW5lci5qYXZh) | `0% <0%> (ø)` | |
| [...plugin/grpc/v1/client/AbstractStubInterceptor.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLXNkay1wbHVnaW4vZ3JwYy0xLngtcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL2FwbS9wbHVnaW4vZ3JwYy92MS9jbGllbnQvQWJzdHJhY3RTdHViSW50ZXJjZXB0b3IuamF2YQ==) | `0% <0%> (ø)` | |
| [...ywalking/apm/plugin/avro/ResponderInterceptor.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLXNkay1wbHVnaW4vYXZyby1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL3BsdWdpbi9hdnJvL1Jlc3BvbmRlckludGVyY2VwdG9yLmphdmE=) | `0% <0%> (ø)` | |
| [...g/apm/plugin/grpc/v1/server/TracingServerCall.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLXNkay1wbHVnaW4vZ3JwYy0xLngtcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL2FwbS9wbHVnaW4vZ3JwYy92MS9zZXJ2ZXIvVHJhY2luZ1NlcnZlckNhbGwuamF2YQ==) | `0% <0%> (ø)` | |
| ... and [14 more](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [0804f61...aadc206](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379403998
##########
File path: oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/browser/manual/BrowserErrorTrafficRecord.java
##########
@@ -0,0 +1,129 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.oap.server.core.browser.manual;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.apache.skywalking.apm.util.StringUtil;
+import org.apache.skywalking.oap.server.core.Const;
+import org.apache.skywalking.oap.server.core.analysis.Stream;
+import org.apache.skywalking.oap.server.core.analysis.record.Record;
+import org.apache.skywalking.oap.server.core.analysis.worker.RecordStreamProcessor;
+import org.apache.skywalking.oap.server.core.source.DefaultScopeDefine;
+import org.apache.skywalking.oap.server.core.storage.StorageBuilder;
+import org.apache.skywalking.oap.server.core.storage.annotation.Column;
+import org.apache.skywalking.oap.server.library.util.CollectionUtils;
+
+import java.util.Base64;
+import java.util.HashMap;
+import java.util.Map;
+
+@Stream(name = BrowserErrorTrafficRecord.INDEX_NAME, scopeId = DefaultScopeDefine.BROWSER_ERROR_TRAFFIC, builder = BrowserErrorTrafficRecord.Builder.class, processor = RecordStreamProcessor.class)
+public class BrowserErrorTrafficRecord extends Record {
Review comment:
done
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-581134796
The metrics summary by review comments.
```
// browser app
browser_app_pv
browser_app_error_rate
browser_app_error_sum
// browser app single version
browser_app_single_version_page_pv
browser_app_single_version_page_error_rate
// browser app page
browser_app_page_pv
browser_app_page_error_rate
browser_app_page_error_sum
browser_app_page_redirect_avg
browser_app_page_dns_avg
browser_app_page_req_avg
browser_app_page_dom_analysis_avg
browser_app_page_dom_ready_avg
browser_app_page_blank_avg
browser_app_page_redirect_percentile
browser_app_page_dns_percentile
browser_app_page_req_percentile
browser_app_page_dom_analysis_percentile
browser_app_page_dom_ready_percentile
browser_app_page_blank_percentile
```
> We should add error rate ranking for versions in service.
The sort will be implemented in the `query-plugin`.
> We need to sort errors and calculate errors sum for different catalogs.
Please provide all known value for the `BrowserErrorLog#catalog` @Fine0830 . I suggest to change the [BrowserErrorLog#catalog](https://github.com/apache/skywalking-data-collect-protocol/blob/eebd016e32b0808416923acf04dcd31d9eb86c09/browser/BrowserPerf.proto#L49) to an enum.
@wu-sheng @Fine0830 Please confirm :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-585183984
I mean, `jsErrorPv` is not clear for its purpose. So I suggest changing it named as `firstReportedError`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r395643702
##########
File path: test/e2e/e2e-test/src/test/java/org/apache/skywalking/e2e/ClusterE2E.java
##########
@@ -122,18 +123,18 @@ void topology() throws Exception {
verifyServiceRelationMetrics(topology.getCalls());
final String clientId = topology.getNodes()
- .stream()
- .filter(n -> n.getName().equals(providerName))
- .findFirst()
- .orElseThrow(NullPointerException::new)
- .getId();
+ .stream()
+ .filter(n -> n.getName().equals(providerName))
+ .findFirst()
+ .orElseThrow(NullPointerException::new)
+ .getId();
Review comment:
done
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r376390816
##########
File path: oap-server/server-receiver-plugin/skywalking-browser-receiver-plugin/src/main/java/org/apache/skywalking/oap/server/recevier/browser/provider/parser/errorlog/listener/record/BrowserErrorLogRecordListener.java
##########
@@ -0,0 +1,106 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.oap.server.recevier.browser.provider.parser.errorlog.listener.record;
+
+import org.apache.skywalking.oap.server.core.CoreModule;
+import org.apache.skywalking.oap.server.core.browser.source.BrowserErrorLog;
+import org.apache.skywalking.oap.server.core.source.SourceReceiver;
+import org.apache.skywalking.oap.server.library.module.ModuleManager;
+import org.apache.skywalking.oap.server.recevier.browser.provider.BrowserServiceModuleConfig;
+import org.apache.skywalking.oap.server.recevier.browser.provider.parser.errorlog.decorator.BrowserErrorLogCoreInfo;
+import org.apache.skywalking.oap.server.recevier.browser.provider.parser.errorlog.decorator.BrowserErrorLogDecorator;
+import org.apache.skywalking.oap.server.recevier.browser.provider.parser.errorlog.listener.BrowserErrorLogListener;
+import org.apache.skywalking.oap.server.recevier.browser.provider.parser.errorlog.listener.BrowserErrorLogListenerFactory;
+
+/**
+ * Process error record.
+ *
+ * @author zhangwei
+ */
+public class BrowserErrorLogRecordListener implements BrowserErrorLogListener {
+
+ private final SourceReceiver sourceReceiver;
+ private final BrowserErrorLog browserErrorLog;
+ private BrowserErrorLogRecordSampler sampler;
+ private SAMPLE_STATUS sampleStatus = SAMPLE_STATUS.UNKNOWN;
+
+ private BrowserErrorLogRecordListener(ModuleManager moduleManager, BrowserErrorLogRecordSampler sampler) {
+ sourceReceiver = moduleManager.find(CoreModule.NAME).provider().getService(SourceReceiver.class);
+ browserErrorLog = new BrowserErrorLog();
+ this.sampler = sampler;
+ }
+
+ @Override
+ public void build() {
+ filter(() -> sourceReceiver.receive(browserErrorLog));
+ }
+
+ @Override
+ public void parse(BrowserErrorLogDecorator decorator, BrowserErrorLogCoreInfo coreInfo) {
+ filter(coreInfo.getUniqueId(), () -> {
+ browserErrorLog.setUniqueId(coreInfo.getUniqueId());
+ browserErrorLog.setServiceId(coreInfo.getServiceId());
+ browserErrorLog.setServiceVersionId(coreInfo.getServiceVersionId());
+ browserErrorLog.setPagePathId(coreInfo.getPagePathId());
+ browserErrorLog.setPagePath(decorator.getPagePath());
+ browserErrorLog.setTime(decorator.getTime());
+ browserErrorLog.setTimeBucket(coreInfo.getMinuteTimeBucket());
+ browserErrorLog.setCategory(coreInfo.getCategory());
+ browserErrorLog.setDataBinary(decorator.toByteArray());
+ });
+ }
+
+ private void filter(Runnable runnable) {
+ filter(null, runnable);
+ }
+
+ private void filter(String uniqueId, Runnable runnable) {
+ if (sampleStatus.equals(SAMPLE_STATUS.IGNORE)) {
+ return;
+ }
+ if (sampleStatus.equals(SAMPLE_STATUS.UNKNOWN)) {
+ if (sampler.shouldSample(uniqueId.hashCode())) {
Review comment:
If `uniqueId` == null, this seems a NPE?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-581134796
The metrics summary by review comments.
```
// browser app
browser_app_pv
browser_app_error_rate
browser_app_error_sum
// browser app single version
browser_app_single_version_page_pv
browser_app_single_version_page_error_rate
// browser app page
browser_app_page_pv
browser_app_page_error_rate
browser_app_page_error_sum
browser_app_page_redirect_avg
browser_app_page_dns_avg
browser_app_page_req_avg
browser_app_page_dom_analysis_avg
browser_app_page_dom_ready_avg
browser_app_page_blank_avg
browser_app_page_redirect_percentile
browser_app_page_dns_percentile
browser_app_page_req_percentile
browser_app_page_dom_analysis_percentile
browser_app_page_dom_ready_percentile
browser_app_page_blank_percentile
```
> We should add error rate ranking for versions in service.
The sort will be implemented in the `query-plugin`.
> We need to sort errors and calculate errors sum for different catalogs.
Please provide all known value for the `BrowserErrorLog#catalog` @Fine0830 . I suggest to change the `BrowserErrorLog#catalog` to an enum.
@wu-sheng @Fine0830 please confirm :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379339284
##########
File path: docs/en/setup/README.md
##########
@@ -25,6 +25,12 @@ You can go to their project repositories for additional info about guides and re
- [SkyAPM GO2Sky](https://github.com/SkyAPM/go2sky). See GO2Sky project document for more details.
+## Browser agent
+
+- Activate the [browser-receiver](backend/backend-receivers.md#browser-receiver) following the document.
Review comment:
I think `receiver-browser` should be activated by default, right? Even the UI is not ready, but it should be there because this will be a part of UI when it is ready.
Change this to `Find browser-receiver setup in the backend receiver doc.` as the 2nd point.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379412514
##########
File path: oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/browser/source/BrowserAppErrorTraffic.java
##########
@@ -0,0 +1,52 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.oap.server.core.browser.source;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.apache.skywalking.oap.server.core.source.ScopeDeclaration;
+import org.apache.skywalking.oap.server.core.source.ScopeDefaultColumn;
+import org.apache.skywalking.oap.server.core.source.Source;
+
+import static org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.BROWSER_APP_ERROR_TRAFFIC;
+import static org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.SERVICE_CATALOG_NAME;
+
+@ScopeDeclaration(id = BROWSER_APP_ERROR_TRAFFIC, name = "BrowserAppErrorTraffic", catalog = SERVICE_CATALOG_NAME)
+@ScopeDefaultColumn.VirtualColumnDefinition(fieldName = "entityId", columnName = "entity_id", isID = true, type = String.class)
+public class BrowserAppErrorTraffic extends Source {
Review comment:
Just for confirmation, is this source forwarding to OAL and manual record entity at the same time?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-587010494
@arugal Have you finished the changes?
I talked with @Fine0830 today. She is working on the profile UI, so she has limited time on this one. We may need to consider to move this to 7.1.0. @Fine0830 If this is your decision, please confirm and notify at the mail list. Then we will prepare the release once the profile and InfluxDB features are ready.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r368230521
##########
File path: oap-server/server-alarm-plugin/src/main/java/org/apache/skywalking/oap/server/core/alarm/provider/NotifyHandler.java
##########
@@ -82,6 +84,38 @@ public NotifyHandler(AlarmRulesWatcher alarmRulesWatcher) {
endpointMetaInAlarm.setName(textName);
metaInAlarm = endpointMetaInAlarm;
+ } else if (DefaultScopeDefine.inServicePageCatalog(scope)) {
+ String metricsId = meta.getId();
+ String[] ids = metricsId.split(Const.ID_SPLIT);
+ int serviceId = Integer.parseInt(ids[0]);
+ int pagePathId = Integer.parseInt(ids[1]);
Review comment:
ID1 should not be used in this way. If this is page related alert, then id0=pageId, which is unique, so don't worry about it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] Fine0830 commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
Fine0830 commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-587319701
> @arugal Have you finished the changes?
>
> I talked with @Fine0830 today. She is working on the profile UI, so she has limited time on this one. We may need to consider to move this to 7.1.0. @Fine0830 If this is your decision, please confirm and notify at the mail list. Then we will prepare the release once the profile and InfluxDB features are ready.
OK. I will do that at the mail list.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379420025
##########
File path: .github/workflows/e2e.yaml
##########
@@ -118,3 +118,19 @@ jobs:
run: export E2E_VERSION=jdk8-1.3 && bash -x test/e2e/run.sh e2e-profile/e2e-profile-test-runner --storage=elasticsearch
- name: Profile Tests ES7(JDK8)
run: export E2E_VERSION=jdk8-1.3 DIST_PACKAGE=apache-skywalking-apm-bin-es7.tar.gz ES_VERSION=7.4.2 && bash -x test/e2e/run.sh e2e-profile/e2e-profile-test-runner --storage=elasticsearch
+
+ Browser:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v1
+ with:
+ submodules: true
+ - name: Set environment
+ run: export MAVEN_OPTS='-Dmaven.repo.local=~/.m2/repository -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:-UseGCOverheadLimit -Xmx3g'
+ - name: Compile & Install Test Codes
+ run: |
+ ./mvnw checkstyle:check apache-rat:check
+ ./mvnw -Dcheckstyle.skip -Drat.skip -T2 -Dmaven.compile.fork -Dmaven.compiler.maxmem=3072 -DskipTests clean install
+ ./mvnw -f test/e2e/pom.xml -pl e2e-base clean install
+ - name: Browser Tests ES6(JDK8)
+ run: export E2E_VERSION=jdk8-1.3 && bash -x test/e2e/run.sh e2e-browser/e2e-browser-es
Review comment:
Please add the tests for different storage. And browser e2e tests should be in an separated `e2e-browser-perf.yaml` file.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-584024143
@Fine0830 Currently, we used to ask `browser_app_error_rate` as a metrics, including `error_rate` of single version and page. But in the latest protocol change, we support multiple logs for a single one page, https://github.com/apache/skywalking-data-collect-protocol/blob/master/browser/BrowserPerf.proto#L34
This protocol can't support to calculate error_rate, because if the client-js reports logs for one page in multiple times, the error rate will be over 100%. Such as one `collectPerfData` report means 1 PV, but n* `collectErrorLogs` reports, the error rate will be n/1.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379436664
##########
File path: test/e2e/e2e-base/src/main/java/org/apache/skywalking/e2e/metrics/MetricsMatcher.java
##########
@@ -64,15 +72,23 @@ public static void verifyMetrics(SimpleQueryClient queryClient, String metricNam
}
public static void verifyPercentileMetrics(SimpleQueryClient queryClient, String metricName, String id,
- final LocalDateTime minutesAgo, long retryInterval, Runnable generateTraffic) throws Exception {
+ final LocalDateTime minutesAgo, long retryInterval, Runnable generateTraffic) throws Exception {
+ verifyPercentileMetrics(queryClient, metricName, id, minutesAgo, LocalDateTime.now(ZoneOffset.UTC).plusMinutes(1), retryInterval, generateTraffic);
Review comment:
Why change it? Please give me more details?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] Fine0830 commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
Fine0830 commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-585121955
I add `jsErrorPv` in error log protocol to mark. @arugal You need update the protocol as well.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] Fine0830 commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
Fine0830 commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-584998594
@wu-sheng For error logs, if backend can't cache/persistent the context, how do we query error details. Error details are needed to analyse code error location.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-584024909
And for `collectErrorLogs`, there are logs from further requests on that page.
@Fine0830 Please indicate your idea of success/error rate principle, and how should we calculate those.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/7509a1e6fcc7b634823d5d13933b63c340b2a865?src=pr&el=desc) will **decrease** coverage by `<.01%`.
> The diff coverage is `n/a`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
==========================================
- Coverage 26.27% 26.26% -0.01%
==========================================
Files 1189 1189
Lines 25945 25945
Branches 3687 3687
==========================================
- Hits 6816 6815 -1
- Misses 18524 18525 +1
Partials 605 605
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...king/apm/agent/core/remote/GRPCChannelManager.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcmVtb3RlL0dSUENDaGFubmVsTWFuYWdlci5qYXZh) | `66.66% <0%> (-1.29%)` | :arrow_down: |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [7509a1e...5040449](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r368230557
##########
File path: oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/source/DefaultScopeDefine.java
##########
@@ -71,16 +71,28 @@
public static final int PROFILE_TASK_LOG = 27;
public static final int PROFILE_TASK_SEGMENT_SNAPSHOT = 28;
+ // browser
+ public static final int BROWSER_PERF_DATA = 40;
+ public static final int SERVICE_PERF_DETAIL = 41;
+ public static final int SERVICE_PAGE_PATH_PERF_DETAIL = 42;
+ public static final int SERVICE_VERSION_PERF_DETAIL = 43;
+ public static final int SERVICE_VERSION_PAGE_PATH_PERF_DETAIL = 44;
Review comment:
`SERVICE_` should be renamed to `BROWSER_`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> :exclamation: No coverage uploaded for pull request base (`master@cf0d621`). [Click here to learn what that means](https://docs.codecov.io/docs/error-reference#section-missing-base-commit).
> The diff coverage is `n/a`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
=========================================
Coverage ? 26.35%
=========================================
Files ? 1189
Lines ? 25934
Branches ? 3687
=========================================
Hits ? 6834
Misses ? 18495
Partials ? 605
```
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [cf0d621...6403925](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/eb1eb97339ddc4ac86349ea5bf9537fc1ca3e9d2?src=pr&el=desc) will **decrease** coverage by `0.24%`.
> The diff coverage is `17.28%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
==========================================
- Coverage 26.52% 26.27% -0.25%
==========================================
Files 1184 1189 +5
Lines 25622 25945 +323
Branches 3630 3687 +57
==========================================
+ Hits 6795 6816 +21
- Misses 18228 18524 +296
- Partials 599 605 +6
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...walking/apm/agent/core/context/trace/ExitSpan.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvY29udGV4dC90cmFjZS9FeGl0U3Bhbi5qYXZh) | `53.57% <ø> (ø)` | :arrow_up: |
| [...alking/apm/agent/core/context/trace/LocalSpan.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvY29udGV4dC90cmFjZS9Mb2NhbFNwYW4uamF2YQ==) | `0% <ø> (ø)` | :arrow_up: |
| [...ing/oap/server/core/source/DefaultScopeDefine.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvc291cmNlL0RlZmF1bHRTY29wZURlZmluZS5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...alking/apm/agent/core/context/trace/EntrySpan.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvY29udGV4dC90cmFjZS9FbnRyeVNwYW4uamF2YQ==) | `54.83% <ø> (ø)` | :arrow_up: |
| [.../commands/executor/ProfileTaskCommandExecutor.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvY29tbWFuZHMvZXhlY3V0b3IvUHJvZmlsZVRhc2tDb21tYW5kRXhlY3V0b3IuamF2YQ==) | `0% <0%> (ø)` | :arrow_up: |
| [.../apm/agent/core/profile/TracingThreadSnapshot.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcHJvZmlsZS9UcmFjaW5nVGhyZWFkU25hcHNob3QuamF2YQ==) | `0% <0%> (ø)` | |
| [...gent/core/profile/ProfileTaskExecutionContext.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcHJvZmlsZS9Qcm9maWxlVGFza0V4ZWN1dGlvbkNvbnRleHQuamF2YQ==) | `0% <0%> (ø)` | :arrow_up: |
| [...le/provider/handler/ProfileTaskServiceHandler.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctcHJvZmlsZS1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNlaXZlci9wcm9maWxlL3Byb3ZpZGVyL2hhbmRsZXIvUHJvZmlsZVRhc2tTZXJ2aWNlSGFuZGxlci5qYXZh) | `0% <0%> (ø)` | :arrow_up: |
| [...alking/oap/server/core/command/CommandService.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvY29tbWFuZC9Db21tYW5kU2VydmljZS5qYXZh) | `0% <0%> (ø)` | :arrow_up: |
| [...walking/apm/agent/core/profile/ThreadProfiler.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcHJvZmlsZS9UaHJlYWRQcm9maWxlci5qYXZh) | `0% <0%> (ø)` | |
| ... and [25 more](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [eb1eb97...7509a1e](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r376395370
##########
File path: oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/browser/source/BrowserAppPageErrorLog.java
##########
@@ -0,0 +1,52 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.oap.server.core.browser.source;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.apache.skywalking.oap.server.core.source.ScopeDeclaration;
+import org.apache.skywalking.oap.server.core.source.ScopeDefaultColumn;
+import org.apache.skywalking.oap.server.core.source.Source;
+
+import static org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.BROWSER_APP_PAGE_ERROR_LOG;
+import static org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.ENDPOINT_CATALOG_NAME;
+
+/**
+ * @author zhangwei
+ */
+@ScopeDeclaration(id = BROWSER_APP_PAGE_ERROR_LOG, name = "BrowserAppPageErrorLog", catalog = ENDPOINT_CATALOG_NAME)
+@ScopeDefaultColumn.VirtualColumnDefinition(fieldName = "entityId", columnName = "entity_id", isID = true, type = String.class)
+public class BrowserAppPageErrorLog extends Source {
+
+ @Override
+ public int scope() {
+ return BROWSER_APP_PAGE_ERROR_LOG;
+ }
+
+ @Override
+ public String getEntityId() {
+ return String.valueOf(id);
+ }
+
+
+ @Getter @Setter private int id;
+ @Getter @Setter private int serviceId;
+ @Getter private final int count = 1;
Review comment:
Same as above, could be > 1
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r376380480
##########
File path: oap-server/server-bootstrap/src/main/resources/browser_analysis.oal
##########
@@ -16,72 +16,34 @@
*
*/
-// Browser service
-browser_redirect_avg = from(BrowserPerfDetail.redirectTime).longAvg();
-browser_dns_avg = from(BrowserPerfDetail.dnsTime).longAvg();
-browser_req_avg = from(BrowserPerfDetail.reqTime).longAvg();
-browser_dom_analysis_avg = from(BrowserPerfDetail.domAnalysisTime).longAvg();
-browser_dom_ready_avg = from(BrowserPerfDetail.domReadyTime).longAvg();
-browser_blank_avg = from(BrowserPerfDetail.blankTime).longAvg();
-
-// Multiple values including p50, p75, p90, p95, p99
-browser_redirect_percentile = from(BrowserPerfDetail.redirectTime).percentile(10);
-browser_dns_percentile = from(BrowserPerfDetail.dnsTime).percentile(10);
-browser_req_percentile = from(BrowserPerfDetail.reqTime).percentile(10);
-browser_dom_analysis_percentile = from(BrowserPerfDetail.domAnalysisTime).percentile(10);
-browser_dom_ready_percentile = from(BrowserPerfDetail.domReadyTime).percentile(10);
-browser_blank_percentile = from(BrowserPerfDetail.blankTime).percentile(10);
-
-// Browser service page
-browser_page_pv = from(BrowserPagePathPerfDetail.count).sum();
-browser_page_error_rate = from(BrowserPagePathPerfDetail.*).percent(status == false);
-
-browser_page_redirect_avg = from(BrowserPagePathPerfDetail.redirectTime).longAvg();
-browser_page_dns_avg = from(BrowserPagePathPerfDetail.dnsTime).longAvg();
-browser_page_req_avg = from(BrowserPagePathPerfDetail.reqTime).longAvg();
-browser_page_dom_analysis_avg = from(BrowserPagePathPerfDetail.domAnalysisTime).longAvg();
-browser_page_dom_ready_avg = from(BrowserPagePathPerfDetail.domReadyTime).longAvg();
-browser_page_blank_avg = from(BrowserPagePathPerfDetail.blankTime).longAvg();
-
-// Multiple values including p50, p75, p90, p95, p99
-browser_page_redirect_percentile = from(BrowserPagePathPerfDetail.redirectTime).percentile(10);
-browser_page_dns_percentile = from(BrowserPagePathPerfDetail.dnsTime).percentile(10);
-browser_page_req_percentile = from(BrowserPagePathPerfDetail.reqTime).percentile(10);
-browser_page_dom_analysis_percentile = from(BrowserPagePathPerfDetail.domAnalysisTime).percentile(10);
-browser_page_dom_ready_percentile = from(BrowserPagePathPerfDetail.domReadyTime).percentile(10);
-browser_page_blank_percentile = from(BrowserPagePathPerfDetail.blankTime).percentile(10);
-
-// Browser service version
-browser_single_version_redirect_avg = from(BrowserSingleVersionPerfDetail.redirectTime).longAvg();
-browser_single_version_dns_avg = from(BrowserSingleVersionPerfDetail.dnsTime).longAvg();
-browser_single_version_req_avg = from(BrowserSingleVersionPerfDetail.reqTime).longAvg();
-browser_single_version_dom_analysis_avg = from(BrowserSingleVersionPerfDetail.domAnalysisTime).longAvg();
-browser_single_version_dom_ready_avg = from(BrowserSingleVersionPerfDetail.domReadyTime).longAvg();
-browser_single_version_blank_avg = from(BrowserSingleVersionPerfDetail.blankTime).longAvg();
-
-// Multiple values including p50, p75, p90, p95, p99
-browser_single_version_redirect_percentile = from(BrowserSingleVersionPerfDetail.redirectTime).percentile(10);
-browser_single_version_dns_percentile = from(BrowserSingleVersionPerfDetail.dnsTime).percentile(10);
-browser_single_version_req_percentile = from(BrowserSingleVersionPerfDetail.reqTime).percentile(10);
-browser_single_version_dom_analysis_percentile = from(BrowserSingleVersionPerfDetail.domAnalysisTime).percentile(10);
-browser_single_version_dom_ready_percentile = from(BrowserSingleVersionPerfDetail.domReadyTime).percentile(10);
-browser_single_version_blank_percentile = from(BrowserSingleVersionPerfDetail.blankTime).percentile(10);
-
-// Browser service version page
-browser_single_version_page_pv = from(BrowserSingleVersionPagePathPerfDetail.count).sum();
-browser_single_version_page_error_rate = from(BrowserSingleVersionPagePathPerfDetail.*).percent(status == false);
-
-browser_single_version_page_redirect_avg = from(BrowserSingleVersionPagePathPerfDetail.redirectTime).longAvg();
-browser_single_version_page_dns_avg = from(BrowserSingleVersionPagePathPerfDetail.dnsTime).longAvg();
-browser_single_version_page_req_avg = from(BrowserSingleVersionPagePathPerfDetail.reqTime).longAvg();
-browser_single_version_page_dom_analysis_avg = from(BrowserSingleVersionPagePathPerfDetail.domAnalysisTime).longAvg();
-browser_single_version_page_dom_ready_avg = from(BrowserSingleVersionPagePathPerfDetail.domReadyTime).longAvg();
-browser_single_version_page_blank_avg = from(BrowserSingleVersionPagePathPerfDetail.blankTime).longAvg();
-
-// Multiple values including p50, p75, p90, p95, p99
-browser_single_version_page_redirect_percentile = from(BrowserSingleVersionPagePathPerfDetail.redirectTime).percentile(10);
-browser_single_version_page_dns_percentile = from(BrowserSingleVersionPagePathPerfDetail.dnsTime).percentile(10);
-browser_single_version_page_req_percentile = from(BrowserSingleVersionPagePathPerfDetail.reqTime).percentile(10);
-browser_single_version_page_dom_analysis_percentile = from(BrowserSingleVersionPagePathPerfDetail.domAnalysisTime).percentile(10);
-browser_single_version_page_dom_ready_percentile = from(BrowserSingleVersionPagePathPerfDetail.domReadyTime).percentile(10);
-browser_single_version_page_blank_percentile = from(BrowserSingleVersionPagePathPerfDetail.blankTime).percentile(10);
\ No newline at end of file
+// browser app
+browser_app_pv = from(BrowserAppPerf.count).sum();
+// browser_app_error_sum = from(BrowserAppErrorLog.count).sum();
Review comment:
Remove unless OAL.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-587321726
I just changed the milestone, FYI @apache/skywalking-committers
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379827368
##########
File path: test/e2e/e2e-base/src/main/java/org/apache/skywalking/e2e/metrics/MetricsMatcher.java
##########
@@ -64,15 +72,23 @@ public static void verifyMetrics(SimpleQueryClient queryClient, String metricNam
}
public static void verifyPercentileMetrics(SimpleQueryClient queryClient, String metricName, String id,
- final LocalDateTime minutesAgo, long retryInterval, Runnable generateTraffic) throws Exception {
+ final LocalDateTime minutesAgo, long retryInterval, Runnable generateTraffic) throws Exception {
+ verifyPercentileMetrics(queryClient, metricName, id, minutesAgo, LocalDateTime.now(ZoneOffset.UTC).plusMinutes(1), retryInterval, generateTraffic);
Review comment:
Has been rollback.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379407019
##########
File path: oap-server/server-bootstrap/src/main/resources/browser_analysis.oal
##########
@@ -0,0 +1,56 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF 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.
+*
+*/
+
+// browser app
+browser_app_pv = from(BrowserAppPerf.count).sum();
+browser_app_error_rate = from(BrowserAppPerf.*).percent(status == false)
+browser_app_error_sum = from(BrowserAppErrorTraffic.count).sum();
+
+// browser app single version
+browser_app_single_version_pv = from(BrowserAppSingleVersionPerf.count).sum();
+browser_app_single_version_error_rate = from(BrowserAppSingleVersionPerf.*).percent(status == false)
+
+// browser app page
+browser_app_page_pv = from(BrowserAppPagePerf.count).sum();
+browser_app_page_error_rate = from(BrowserAppPagePerf.*).percent(status == false)
+browser_app_page_error_sum = from(BrowserAppPageErrorTraffic.count).sum();
+
+browser_app_page_ajax_error_sum = from(BrowserAppPageErrorTraffic.count).filter(category == BrowserErrorCategory.AJAX).sum();
+browsre_app_page_resource_error_sum = from(BrowserAppPageErrorTraffic.count).filter(category == BrowserErrorCategory.RESOURCE).sum();
+browsre_app_page_vue_error_sum = from(BrowserAppPageErrorTraffic.count).filter(category == BrowserErrorCategory.VUE).sum();
+browsre_app_page_promise_error_sum = from(BrowserAppPageErrorTraffic.count).filter(category == BrowserErrorCategory.PROMISE).sum();
+browser_app_page_js_error_sum = from(BrowserAppPageErrorTraffic.count).filter(category == BrowserErrorCategory.JS).sum();
+browser_app_page_unknown_error_sum = from(BrowserAppPageErrorTraffic.count).filter(category == BrowserErrorCategory.UNKNOWN).sum();
+
+browser_app_page_redirect_avg = from(BrowserAppPagePerf.redirectTime).longAvg();
+browser_app_page_dns_avg = from(BrowserAppPagePerf.dnsTime).longAvg();
+browser_app_page_req_avg = from(BrowserAppPagePerf.reqTime).longAvg();
+browser_app_page_dom_analysis_avg = from(BrowserAppPagePerf.domAnalysisTime).longAvg();
+browser_app_page_dom_ready_avg = from(BrowserAppPagePerf.domReadyTime).longAvg();
+browser_app_page_blank_avg = from(BrowserAppPagePerf.blankTime).longAvg();
+
+browser_app_page_redirect_percentile = from(BrowserAppPagePerf.redirectTime).percentile(10);
+browser_app_page_dns_percentile = from(BrowserAppPagePerf.dnsTime).percentile(10);
+browser_app_page_req_percentile = from(BrowserAppPagePerf.reqTime).percentile(10);
+browser_app_page_dom_analysis_percentile = from(BrowserAppPagePerf.domAnalysisTime).percentile(10);
+browser_app_page_dom_ready_percentile = from(BrowserAppPagePerf.domReadyTime).percentile(10);
+browser_app_page_blank_percentile = from(BrowserAppPagePerf.blankTime).percentile(10);
+
+// Disable unnecessary hard core stream, targeting @Stream#name
+/////////
+// disable(browser_error_traffic)
Review comment:
This requires the antlr change. `browser_error_traffic` should be a source.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379514119
##########
File path: test/e2e/e2e-base/src/main/java/org/apache/skywalking/e2e/metrics/MetricsMatcher.java
##########
@@ -64,15 +72,23 @@ public static void verifyMetrics(SimpleQueryClient queryClient, String metricNam
}
public static void verifyPercentileMetrics(SimpleQueryClient queryClient, String metricName, String id,
- final LocalDateTime minutesAgo, long retryInterval, Runnable generateTraffic) throws Exception {
+ final LocalDateTime minutesAgo, long retryInterval, Runnable generateTraffic) throws Exception {
+ verifyPercentileMetrics(queryClient, metricName, id, minutesAgo, LocalDateTime.now(ZoneOffset.UTC).plusMinutes(1), retryInterval, generateTraffic);
Review comment:
My point is, if you want to change, why don't change the existing method? Instead, you add a new method.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] Fine0830 edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
Fine0830 edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-584989598
> @Fine0830 It is easy to say like that. Please take a look at the protocol, how to implement that? JS error has never been reported, we received error logs which you confirmed could be multiple.
Probably, there are some gaps. It is definitive that client-js reports logs for one page in multiple times. There is a common scene.
When user load one page, page report resource errors, then user continue view the page for a few minutes, finally user click one button, page report js errors.
For the scene, when client-js catch errors and report to server at once. It's impossible to get all the errors at once, as user need to trigger events.
Let's talk about JS error rate, we need to calculate PV.
`JS error rate = PV(pv with JS error in specified time) / PV (total PV in specified time)`
For PV with JS error in specified time, If server can't know which errors belong to which PV now, we can add a parameter to mark in error logs. After this, PV with JS error will be calculate. I think it is easy to calculate total PV in specified time.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379416071
##########
File path: test/e2e/e2e-base/src/main/java/org/apache/skywalking/e2e/metrics/MetricsMatcher.java
##########
@@ -64,15 +72,23 @@ public static void verifyMetrics(SimpleQueryClient queryClient, String metricNam
}
public static void verifyPercentileMetrics(SimpleQueryClient queryClient, String metricName, String id,
- final LocalDateTime minutesAgo, long retryInterval, Runnable generateTraffic) throws Exception {
+ final LocalDateTime minutesAgo, long retryInterval, Runnable generateTraffic) throws Exception {
+ verifyPercentileMetrics(queryClient, metricName, id, minutesAgo, LocalDateTime.now(ZoneOffset.UTC).plusMinutes(1), retryInterval, generateTraffic);
Review comment:
Why use UTC TZ specifically? Could you explain?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r368230531
##########
File path: oap-server/server-alarm-plugin/src/main/java/org/apache/skywalking/oap/server/core/alarm/provider/NotifyHandler.java
##########
@@ -82,6 +84,38 @@ public NotifyHandler(AlarmRulesWatcher alarmRulesWatcher) {
endpointMetaInAlarm.setName(textName);
metaInAlarm = endpointMetaInAlarm;
+ } else if (DefaultScopeDefine.inServicePageCatalog(scope)) {
+ String metricsId = meta.getId();
+ String[] ids = metricsId.split(Const.ID_SPLIT);
+ int serviceId = Integer.parseInt(ids[0]);
+ int pagePathId = Integer.parseInt(ids[1]);
+ ServiceInventory serviceInventory = serviceInventoryCache.get(serviceId);
+ EndpointInventory endpointInventory = endpointInventoryCache.get(pagePathId);
+
+ ServicePageMetaInAlarm servicePageMetaInAlarm = new ServicePageMetaInAlarm();
+ servicePageMetaInAlarm.setMetricsName(meta.getMetricsName());
+ servicePageMetaInAlarm.setServiceId(serviceId);
+ servicePageMetaInAlarm.setPagePathId(pagePathId);
+
+ String textName = endpointInventory.getName() + " in " + serviceInventory.getName();
+ servicePageMetaInAlarm.setName(textName);
+ metaInAlarm = servicePageMetaInAlarm;
+ } else if (DefaultScopeDefine.inServiceVersionCatalog(scope)) {
+ String metricsId = meta.getId();
+ String[] ids = metricsId.split(Const.ID_SPLIT);
+ int serviceVersionId = Integer.parseInt(ids[0]);
+ int pagePathId = Integer.parseInt(ids[1]);
Review comment:
Same issue here about `id1`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/dbb68f1926885c5aef4bc933e74276859ac724a7?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `n/a`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
=======================================
Coverage 26.35% 26.35%
=======================================
Files 1211 1211
Lines 26352 26352
Branches 3734 3734
=======================================
Hits 6945 6945
Misses 18794 18794
Partials 613 613
```
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [dbb68f1...fd431ee](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> :exclamation: No coverage uploaded for pull request base (`master@63e1881`). [Click here to learn what that means](https://docs.codecov.io/docs/error-reference#section-missing-base-commit).
> The diff coverage is `10.68%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
=========================================
Coverage ? 26.52%
=========================================
Files ? 1184
Lines ? 25622
Branches ? 3630
=========================================
Hits ? 6795
Misses ? 18228
Partials ? 599
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [.../skywalking/oap/server/core/alarm/MetaInAlarm.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvYWxhcm0vTWV0YUluQWxhcm0uamF2YQ==) | `0% <ø> (ø)` | |
| [...erver/receiver/jvm/provider/JVMModuleProvider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctanZtLXJlY2VpdmVyLXBsdWdpbi9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL3JlY2VpdmVyL2p2bS9wcm92aWRlci9KVk1Nb2R1bGVQcm92aWRlci5qYXZh) | `0% <ø> (ø)` | |
| [...lking/oap/server/core/query/TraceQueryService.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvcXVlcnkvVHJhY2VRdWVyeVNlcnZpY2UuamF2YQ==) | `0% <ø> (ø)` | |
| [.../provider/parser/SegmentParserListenerManager.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL1NlZ21lbnRQYXJzZXJMaXN0ZW5lck1hbmFnZXIuamF2YQ==) | `0% <ø> (ø)` | |
| [...iver/register/provider/RegisterModuleProvider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctcmVnaXN0ZXItcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvcmVnaXN0ZXIvcHJvdmlkZXIvUmVnaXN0ZXJNb2R1bGVQcm92aWRlci5qYXZh) | `0% <ø> (ø)` | |
| [...trace/provider/parser/decorator/SpanDecorator.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL2RlY29yYXRvci9TcGFuRGVjb3JhdG9yLmphdmE=) | `0% <0%> (ø)` | |
| [.../standardization/SegmentStandardizationWorker.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL3N0YW5kYXJkaXphdGlvbi9TZWdtZW50U3RhbmRhcmRpemF0aW9uV29ya2VyLmphdmE=) | `0% <0%> (ø)` | |
| [...ce/provider/parser/decorator/SegmentDecorator.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL2RlY29yYXRvci9TZWdtZW50RGVjb3JhdG9yLmphdmE=) | `0% <0%> (ø)` | |
| [.../oap/server/core/alarm/provider/NotifyHandler.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItYWxhcm0tcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvY29yZS9hbGFybS9wcm92aWRlci9Ob3RpZnlIYW5kbGVyLmphdmE=) | `59.25% <0%> (ø)` | |
| [...r/receiver/trace/provider/TraceModuleProvider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvVHJhY2VNb2R1bGVQcm92aWRlci5qYXZh) | `0% <0%> (ø)` | |
| ... and [10 more](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [63e1881...eb1eb97](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> :exclamation: No coverage uploaded for pull request base (`master@63e1881`). [Click here to learn what that means](https://docs.codecov.io/docs/error-reference#section-missing-base-commit).
> The diff coverage is `10.68%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
=========================================
Coverage ? 26.52%
=========================================
Files ? 1184
Lines ? 25622
Branches ? 3630
=========================================
Hits ? 6795
Misses ? 18228
Partials ? 599
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [.../skywalking/oap/server/core/alarm/MetaInAlarm.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvYWxhcm0vTWV0YUluQWxhcm0uamF2YQ==) | `0% <ø> (ø)` | |
| [...erver/receiver/jvm/provider/JVMModuleProvider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctanZtLXJlY2VpdmVyLXBsdWdpbi9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL3JlY2VpdmVyL2p2bS9wcm92aWRlci9KVk1Nb2R1bGVQcm92aWRlci5qYXZh) | `0% <ø> (ø)` | |
| [...lking/oap/server/core/query/TraceQueryService.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvcXVlcnkvVHJhY2VRdWVyeVNlcnZpY2UuamF2YQ==) | `0% <ø> (ø)` | |
| [.../provider/parser/SegmentParserListenerManager.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL1NlZ21lbnRQYXJzZXJMaXN0ZW5lck1hbmFnZXIuamF2YQ==) | `0% <ø> (ø)` | |
| [...iver/register/provider/RegisterModuleProvider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctcmVnaXN0ZXItcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvcmVnaXN0ZXIvcHJvdmlkZXIvUmVnaXN0ZXJNb2R1bGVQcm92aWRlci5qYXZh) | `0% <ø> (ø)` | |
| [...trace/provider/parser/decorator/SpanDecorator.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL2RlY29yYXRvci9TcGFuRGVjb3JhdG9yLmphdmE=) | `0% <0%> (ø)` | |
| [.../standardization/SegmentStandardizationWorker.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL3N0YW5kYXJkaXphdGlvbi9TZWdtZW50U3RhbmRhcmRpemF0aW9uV29ya2VyLmphdmE=) | `0% <0%> (ø)` | |
| [...ce/provider/parser/decorator/SegmentDecorator.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL2RlY29yYXRvci9TZWdtZW50RGVjb3JhdG9yLmphdmE=) | `0% <0%> (ø)` | |
| [.../oap/server/core/alarm/provider/NotifyHandler.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItYWxhcm0tcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvY29yZS9hbGFybS9wcm92aWRlci9Ob3RpZnlIYW5kbGVyLmphdmE=) | `59.25% <0%> (ø)` | |
| [...r/receiver/trace/provider/TraceModuleProvider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvVHJhY2VNb2R1bGVQcm92aWRlci5qYXZh) | `0% <0%> (ø)` | |
| ... and [10 more](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [63e1881...eb1eb97](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-600960744
@arugal e2e conflict, please follow the way. Feel free to ping @kezhenxu94 if you are facing any issue.
BTW, this PR will be hold until the @Fine0830 agent side is ready. So right now, there is no milestone for now.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r368214206
##########
File path: oap-server/server-alarm-plugin/src/main/java/org/apache/skywalking/oap/server/core/alarm/provider/NotifyHandler.java
##########
@@ -82,6 +82,12 @@ public NotifyHandler(AlarmRulesWatcher alarmRulesWatcher) {
endpointMetaInAlarm.setName(textName);
metaInAlarm = endpointMetaInAlarm;
+ } else if (DefaultScopeDefine.inServicePageCatalog(scope)) {
+ // TODO handler service page path catalog
+ return;
+ } else if (DefaultScopeDefine.inServiceVersionCatalog(scope)) {
+ // TODO handler service version page path catalog
Review comment:
Done.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/9987689b2cc5c476a5fecacd848d45d7db442857?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `n/a`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
=======================================
Coverage 26.35% 26.35%
=======================================
Files 1211 1211
Lines 26347 26347
Branches 3734 3734
=======================================
Hits 6945 6945
Misses 18789 18789
Partials 613 613
```
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [9987689...da17297](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r366874814
##########
File path: oap-server/server-bootstrap/src/main/resources/browser_analysis.oal
##########
@@ -0,0 +1,87 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF 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.
+*
+*/
+
+// Browser service
+service_redirect_avg = from(ServicePerfDetail.redirectTime).longAvg();
+service_dns_avg = from(ServicePerfDetail.dnsTime).longAvg();
+service_req_avg = from(ServicePerfDetail.reqTime).longAvg();
+service_dom_analysis_avg = from(ServicePerfDetail.domAnalysisTime).longAvg();
+service_dom_ready_avg = from(ServicePerfDetail.domReadyTime).longAvg();
+service_blank_avg = from(ServicePerfDetail.blankTime).longAvg();
+
+// Multiple values including p50, p75, p90, p95, p99
+service_redirect_percentile = from(ServicePerfDetail.redirectTime).percentile(10);
+service_dns_percentile = from(ServicePerfDetail.dnsTime).percentile(10);
+service_req_percentile = from(ServicePerfDetail.reqTime).percentile(10);
+service_dom_analysis_percentile = from(ServicePerfDetail.domAnalysisTime).percentile(10);
+service_dom_ready_percentile = from(ServicePerfDetail.domReadyTime).percentile(10);
+service_blank_percentile = from(ServicePerfDetail.blankTime).percentile(10);
+
+// Browser service page
+service_page_pv = from(ServicePagePathPerfDetail.count).sum();
+service_page_error_rate = from(ServicePagePathPerfDetail.*).percent(status == false);
+
+service_page_redirect_avg = from(ServicePagePathPerfDetail.redirectTime).longAvg();
+service_page_dns_avg = from(ServicePagePathPerfDetail.dnsTime).longAvg();
+service_page_req_avg = from(ServicePagePathPerfDetail.reqTime).longAvg();
+service_page_dom_analysis_avg = from(ServicePagePathPerfDetail.domAnalysisTime).longAvg();
+service_page_dom_ready_avg = from(ServicePagePathPerfDetail.domReadyTime).longAvg();
+service_page_blank_avg = from(ServicePagePathPerfDetail.blankTime).longAvg();
+
+// Multiple values including p50, p75, p90, p95, p99
+service_page_redirect_percentile = from(ServicePagePathPerfDetail.redirectTime).percentile(10);
+service_page_dns_percentile = from(ServicePagePathPerfDetail.dnsTime).percentile(10);
+service_page_req_percentile = from(ServicePagePathPerfDetail.reqTime).percentile(10);
+service_page_dom_analysis_percentile = from(ServicePagePathPerfDetail.domAnalysisTime).percentile(10);
+service_page_dom_ready_percentile = from(ServicePagePathPerfDetail.domReadyTime).percentile(10);
+service_page_blank_percentile = from(ServicePagePathPerfDetail.blankTime).percentile(10);
+
+// Browser service version
+service_version_redirect_avg = from(ServiceVersionPerfDetail.redirectTime).longAvg();
Review comment:
`service_version` -> `one_version_of_service_*`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r368230585
##########
File path: oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/source/DefaultScopeDefine.java
##########
@@ -71,16 +71,28 @@
public static final int PROFILE_TASK_LOG = 27;
public static final int PROFILE_TASK_SEGMENT_SNAPSHOT = 28;
+ // browser
+ public static final int BROWSER_PERF_DATA = 40;
+ public static final int SERVICE_PERF_DETAIL = 41;
+ public static final int SERVICE_PAGE_PATH_PERF_DETAIL = 42;
+ public static final int SERVICE_VERSION_PERF_DETAIL = 43;
+ public static final int SERVICE_VERSION_PAGE_PATH_PERF_DETAIL = 44;
+
/**
* Catalog of scope, the metrics processor could use this to group all generated metrics by oal rt.
*/
public static final String SERVICE_CATALOG_NAME = "SERVICE";
public static final String SERVICE_INSTANCE_CATALOG_NAME = "SERVICE_INSTANCE";
public static final String ENDPOINT_CATALOG_NAME = "ENDPOINT";
+ public static final String SERVICE_PAGE_PATH_CATALOG_NAME = "SERVICE_PAGE_PATH";
+ public static final String SERVICE_VERSION_PAGE_PATH_CATALOG_NAME = "SERVICE_VERSION_PAGE_PATH";
+
private static final Map<Integer, Boolean> SERVICE_CATALOG = new HashMap<>();
private static final Map<Integer, Boolean> SERVICE_INSTANCE_CATALOG = new HashMap<>();
private static final Map<Integer, Boolean> ENDPOINT_CATALOG = new HashMap<>();
+ private static final Map<Integer, Boolean> SERVICE_PAGE_PATH_CATALOG = new HashMap<>();
+ private static final Map<Integer, Boolean> SERVICE_VERSION_PAGE_PATH_CATALOG = new HashMap<>();
Review comment:
Same rename suggestion.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r368230959
##########
File path: oap-server/server-bootstrap/src/main/resources/official_analysis.oal
##########
@@ -102,3 +102,77 @@ envoy_parent_connections_used = from(EnvoyInstanceMetric.value).filter(metricNam
// disable(top_n_database_statement);
// disable(zipkin_span);
// disable(jaeger_span);
+
+
+// Browser metrics begin
Review comment:
@kezhenxu94 I want to discuss a thing with you. In @arugal prev PR, this part of OAL is separated in another OAL, I asked him to change like this. But in these days, I prefer his way more. If those are in another OAL file, then OAL engine could provide an API to activate some OAL files, such as from browser-receiver provider. This should make our document easier. What do you think? @arugal
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r368211223
##########
File path: oap-server/server-bootstrap/src/main/resources/official_analysis.oal
##########
@@ -102,3 +102,77 @@ envoy_parent_connections_used = from(EnvoyInstanceMetric.value).filter(metricNam
// disable(top_n_database_statement);
// disable(zipkin_span);
// disable(jaeger_span);
+
+
+// Browser metrics begin
Review comment:
@Fine0830 Please verify, do we really need all these percentiles? I think we shouldn't.
@Fine0830 After you are back from the vacation, please check which metrics we really require.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] Fine0830 edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
Fine0830 edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-585121955
I add `jsErrorPv` in error log protocol to mark. When `jsErrorPv` equal true in one error log, pv with JS error will be plus 1. @arugal You need to update the protocol as well.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] Fine0830 commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
Fine0830 commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r373833049
##########
File path: oap-server/server-bootstrap/src/main/resources/browser_analysis.oal
##########
@@ -0,0 +1,87 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF 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.
+*
+*/
+
+// Browser service
+browser_redirect_avg = from(BrowserPerfDetail.redirectTime).longAvg();
+browser_dns_avg = from(BrowserPerfDetail.dnsTime).longAvg();
+browser_req_avg = from(BrowserPerfDetail.reqTime).longAvg();
+browser_dom_analysis_avg = from(BrowserPerfDetail.domAnalysisTime).longAvg();
+browser_dom_ready_avg = from(BrowserPerfDetail.domReadyTime).longAvg();
+browser_blank_avg = from(BrowserPerfDetail.blankTime).longAvg();
+
+// Multiple values including p50, p75, p90, p95, p99
+browser_redirect_percentile = from(BrowserPerfDetail.redirectTime).percentile(10);
+browser_dns_percentile = from(BrowserPerfDetail.dnsTime).percentile(10);
+browser_req_percentile = from(BrowserPerfDetail.reqTime).percentile(10);
+browser_dom_analysis_percentile = from(BrowserPerfDetail.domAnalysisTime).percentile(10);
+browser_dom_ready_percentile = from(BrowserPerfDetail.domReadyTime).percentile(10);
+browser_blank_percentile = from(BrowserPerfDetail.blankTime).percentile(10);
+
+// Browser service page
+browser_page_pv = from(BrowserPagePathPerfDetail.count).sum();
+browser_page_error_rate = from(BrowserPagePathPerfDetail.*).percent(status == false);
+
+browser_page_redirect_avg = from(BrowserPagePathPerfDetail.redirectTime).longAvg();
+browser_page_dns_avg = from(BrowserPagePathPerfDetail.dnsTime).longAvg();
+browser_page_req_avg = from(BrowserPagePathPerfDetail.reqTime).longAvg();
+browser_page_dom_analysis_avg = from(BrowserPagePathPerfDetail.domAnalysisTime).longAvg();
+browser_page_dom_ready_avg = from(BrowserPagePathPerfDetail.domReadyTime).longAvg();
+browser_page_blank_avg = from(BrowserPagePathPerfDetail.blankTime).longAvg();
+
+// Multiple values including p50, p75, p90, p95, p99
+browser_page_redirect_percentile = from(BrowserPagePathPerfDetail.redirectTime).percentile(10);
+browser_page_dns_percentile = from(BrowserPagePathPerfDetail.dnsTime).percentile(10);
+browser_page_req_percentile = from(BrowserPagePathPerfDetail.reqTime).percentile(10);
+browser_page_dom_analysis_percentile = from(BrowserPagePathPerfDetail.domAnalysisTime).percentile(10);
+browser_page_dom_ready_percentile = from(BrowserPagePathPerfDetail.domReadyTime).percentile(10);
+browser_page_blank_percentile = from(BrowserPagePathPerfDetail.blankTime).percentile(10);
+
+// Browser service version
+browser_single_version_redirect_avg = from(BrowserSingleVersionPerfDetail.redirectTime).longAvg();
+browser_single_version_dns_avg = from(BrowserSingleVersionPerfDetail.dnsTime).longAvg();
+browser_single_version_req_avg = from(BrowserSingleVersionPerfDetail.reqTime).longAvg();
+browser_single_version_dom_analysis_avg = from(BrowserSingleVersionPerfDetail.domAnalysisTime).longAvg();
+browser_single_version_dom_ready_avg = from(BrowserSingleVersionPerfDetail.domReadyTime).longAvg();
+browser_single_version_blank_avg = from(BrowserSingleVersionPerfDetail.blankTime).longAvg();
+
+// Multiple values including p50, p75, p90, p95, p99
+browser_single_version_redirect_percentile = from(BrowserSingleVersionPerfDetail.redirectTime).percentile(10);
+browser_single_version_dns_percentile = from(BrowserSingleVersionPerfDetail.dnsTime).percentile(10);
+browser_single_version_req_percentile = from(BrowserSingleVersionPerfDetail.reqTime).percentile(10);
+browser_single_version_dom_analysis_percentile = from(BrowserSingleVersionPerfDetail.domAnalysisTime).percentile(10);
+browser_single_version_dom_ready_percentile = from(BrowserSingleVersionPerfDetail.domReadyTime).percentile(10);
+browser_single_version_blank_percentile = from(BrowserSingleVersionPerfDetail.blankTime).percentile(10);
+
+// Browser service version page
Review comment:
Please let version page metrics keep in line with service pages.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-581224216
Protocol PR merged.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/30ac5b0affa86617d717b7d2df22d460908949ee?src=pr&el=desc) will **decrease** coverage by `<.01%`.
> The diff coverage is `0%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
==========================================
- Coverage 25.53% 25.53% -0.01%
==========================================
Files 1217 1217
Lines 27600 27605 +5
Branches 3786 3788 +2
==========================================
Hits 7049 7049
- Misses 19917 19922 +5
Partials 634 634
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [.../listener/record/BrowserErrorLogRecordSampler.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9lcnJvcmxvZy9saXN0ZW5lci9yZWNvcmQvQnJvd3NlckVycm9yTG9nUmVjb3JkU2FtcGxlci5qYXZh) | `100% <ø> (ø)` | :arrow_up: |
| [...listener/record/BrowserErrorLogRecordListener.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9lcnJvcmxvZy9saXN0ZW5lci9yZWNvcmQvQnJvd3NlckVycm9yTG9nUmVjb3JkTGlzdGVuZXIuamF2YQ==) | `0% <0%> (ø)` | :arrow_up: |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [30ac5b0...381a2cf](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379366583
##########
File path: README.md
##########
@@ -27,6 +27,7 @@ The core features are following.
- Distributed tracing and context propagation
- Database access metrics. Detect slow database access statements(including SQL statements).
- Alarm
+- Browser performance monitoring
Review comment:
Add [WIP] as prefix.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575958653
> If those are in another OAL file, then OAL engine could provide an API to activate some OAL files, such as from browser-receiver provider.
Agree, users modify only the OAL files they need.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r372365553
##########
File path: oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/browser/source/BrowserPerfData.java
##########
@@ -0,0 +1,52 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.oap.server.core.browser.source;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.apache.skywalking.oap.server.core.source.ScopeDeclaration;
+import org.apache.skywalking.oap.server.core.source.Source;
+
+import static org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.BROWSER_PERF_DATA;
+
+/**
+ * @author zhangwei
+ */
+@ScopeDeclaration(id = BROWSER_PERF_DATA, name = "BrowserPerfData")
+public class BrowserPerfData extends Source {
Review comment:
`Browser`-> `BrowserApp`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r368230444
##########
File path: docs/en/setup/backend/backend-alarm.md
##########
@@ -85,7 +85,7 @@ Webhook requires the peer is a web container. The alarm message will send throug
- **scopeId**, **scope**. All scopes are defined in org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.
- **name**. Target scope entity name.
- **id0**. The ID of scope entity, matched the name.
-- **id1**. Not used today.
+- **id1**. The ID1 of scope entity.
Review comment:
`ID1` is designed for relationship alert. I think it is not related to this PR, right?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379404115
##########
File path: dist-material/application.yml
##########
@@ -151,6 +151,17 @@ receiver-jvm:
default:
receiver-clr:
default:
+#receiver-browser:
Review comment:
done
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r368211090
##########
File path: oap-server/server-alarm-plugin/src/main/java/org/apache/skywalking/oap/server/core/alarm/provider/NotifyHandler.java
##########
@@ -82,6 +82,12 @@ public NotifyHandler(AlarmRulesWatcher alarmRulesWatcher) {
endpointMetaInAlarm.setName(textName);
metaInAlarm = endpointMetaInAlarm;
+ } else if (DefaultScopeDefine.inServicePageCatalog(scope)) {
+ // TODO handler service page path catalog
+ return;
+ } else if (DefaultScopeDefine.inServiceVersionCatalog(scope)) {
+ // TODO handler service version page path catalog
Review comment:
If these are TODOs, why add this?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] Fine0830 commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
Fine0830 commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-584989598
> @Fine0830 It is easy to say like that. Please take a look at the protocol, how to implement that? JS error has never been reported, we received error logs which you confirmed could be multiple.
Probably, there are some gaps. It is definitive that client-js reports logs for one page in multiple times. There is a common scene.
When user load one page, page report resource errors, then user continue view the page for a few minutes, finally user click one button, page report js errors.
For the scene, when client-js catch errors and report to server at once. It's impossible to get all the errors at once, as user need to trigger events.
Let's talk about JS error rate, we need to calculate PV.
`JS error rate = PV(pv with JS error in specified time) / PV (total PV in specified time)`
For PV with JS error in specified time, If server can't know which errors belong to which PV now, we can add a parameter to mark. I think it is easy to calculate total PV in specified time.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379828498
##########
File path: oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/browser/source/BrowserAppErrorTraffic.java
##########
@@ -0,0 +1,52 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.oap.server.core.browser.source;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.apache.skywalking.oap.server.core.source.ScopeDeclaration;
+import org.apache.skywalking.oap.server.core.source.ScopeDefaultColumn;
+import org.apache.skywalking.oap.server.core.source.Source;
+
+import static org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.BROWSER_APP_ERROR_TRAFFIC;
+import static org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.SERVICE_CATALOG_NAME;
+
+@ScopeDeclaration(id = BROWSER_APP_ERROR_TRAFFIC, name = "BrowserAppErrorTraffic", catalog = SERVICE_CATALOG_NAME)
+@ScopeDefaultColumn.VirtualColumnDefinition(fieldName = "entityId", columnName = "entity_id", isID = true, type = String.class)
+public class BrowserAppErrorTraffic extends Source {
Review comment:
Only to OAL, record entity is generated by `BrowserErrorTraffic`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/124098bd67305020d295b5a79755bba21d4f1ae3?src=pr&el=desc) will **increase** coverage by `0.1%`.
> The diff coverage is `0%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
=========================================
+ Coverage 25.83% 25.93% +0.1%
=========================================
Files 1207 1204 -3
Lines 26334 26313 -21
Branches 3814 3811 -3
=========================================
+ Hits 6803 6825 +22
+ Misses 18927 18884 -43
Partials 604 604
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...king/oap/server/library/module/ModuleProvider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItbGlicmFyeS9saWJyYXJ5LW1vZHVsZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2xpYnJhcnkvbW9kdWxlL01vZHVsZVByb3ZpZGVyLmphdmE=) | `50% <ø> (ø)` | :arrow_up: |
| [...pache/skywalking/oal/rt/parser/AnalysisResult.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9vYWwtcnQvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FsL3J0L3BhcnNlci9BbmFseXNpc1Jlc3VsdC5qYXZh) | `61.53% <ø> (ø)` | :arrow_up: |
| [...alking/oap/server/core/oal/rt/OALEngineLoader.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvb2FsL3J0L09BTEVuZ2luZUxvYWRlci5qYXZh) | `0% <0%> (ø)` | :arrow_up: |
| [.../java/org/apache/skywalking/oal/rt/OALRuntime.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9vYWwtcnQvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FsL3J0L09BTFJ1bnRpbWUuamF2YQ==) | `0% <0%> (ø)` | |
| [...m/agent/core/remote/TraceSegmentServiceClient.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcmVtb3RlL1RyYWNlU2VnbWVudFNlcnZpY2VDbGllbnQuamF2YQ==) | `82.35% <0%> (+1.47%)` | :arrow_up: |
| [.../core/remote/ServiceAndEndpointRegisterClient.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcmVtb3RlL1NlcnZpY2VBbmRFbmRwb2ludFJlZ2lzdGVyQ2xpZW50LmphdmE=) | `31.46% <0%> (+3.37%)` | :arrow_up: |
| [...pm/agent/core/profile/ProfileTaskQueryService.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcHJvZmlsZS9Qcm9maWxlVGFza1F1ZXJ5U2VydmljZS5qYXZh) | `48.71% <0%> (+5.12%)` | :arrow_up: |
| [...alking/apm/agent/core/remote/AgentIDDecorator.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcmVtb3RlL0FnZW50SUREZWNvcmF0b3IuamF2YQ==) | `85.71% <0%> (+17.85%)` | :arrow_up: |
| [...ache/skywalking/apm/agent/core/jvm/JVMService.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvanZtL0pWTVNlcnZpY2UuamF2YQ==) | `77.04% <0%> (+18.03%)` | :arrow_up: |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [124098b...dd5e656](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379366744
##########
File path: dist-material/application.yml
##########
@@ -151,6 +151,17 @@ receiver-jvm:
default:
receiver-clr:
default:
+#receiver-browser:
Review comment:
Open as default
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/47b4eb80e5cf05a5066315d2fcf9d9907574d170?src=pr&el=desc) will **increase** coverage by `<.01%`.
> The diff coverage is `n/a`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
==========================================
+ Coverage 26.4% 26.41% +<.01%
==========================================
Files 1211 1211
Lines 26388 26388
Branches 3745 3745
==========================================
+ Hits 6968 6970 +2
+ Misses 18800 18799 -1
+ Partials 620 619 -1
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...ache/skywalking/apm/agent/core/jvm/JVMService.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvanZtL0pWTVNlcnZpY2UuamF2YQ==) | `83.6% <0%> (+3.27%)` | :arrow_up: |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [47b4eb8...6b5a733](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] Fine0830 edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
Fine0830 edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-584998594
@wu-sheng For error logs, if backend can't cache/persistent the context, how do we query error details? Error details are needed to analyse code error location.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] Fine0830 commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
Fine0830 commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r373832878
##########
File path: oap-server/server-bootstrap/src/main/resources/browser_analysis.oal
##########
@@ -0,0 +1,87 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF 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.
+*
+*/
+
+// Browser service
+browser_redirect_avg = from(BrowserPerfDetail.redirectTime).longAvg();
+browser_dns_avg = from(BrowserPerfDetail.dnsTime).longAvg();
+browser_req_avg = from(BrowserPerfDetail.reqTime).longAvg();
+browser_dom_analysis_avg = from(BrowserPerfDetail.domAnalysisTime).longAvg();
+browser_dom_ready_avg = from(BrowserPerfDetail.domReadyTime).longAvg();
+browser_blank_avg = from(BrowserPerfDetail.blankTime).longAvg();
+
+// Multiple values including p50, p75, p90, p95, p99
+browser_redirect_percentile = from(BrowserPerfDetail.redirectTime).percentile(10);
+browser_dns_percentile = from(BrowserPerfDetail.dnsTime).percentile(10);
+browser_req_percentile = from(BrowserPerfDetail.reqTime).percentile(10);
+browser_dom_analysis_percentile = from(BrowserPerfDetail.domAnalysisTime).percentile(10);
+browser_dom_ready_percentile = from(BrowserPerfDetail.domReadyTime).percentile(10);
+browser_blank_percentile = from(BrowserPerfDetail.blankTime).percentile(10);
+
+// Browser service page
+browser_page_pv = from(BrowserPagePathPerfDetail.count).sum();
+browser_page_error_rate = from(BrowserPagePathPerfDetail.*).percent(status == false);
+
+browser_page_redirect_avg = from(BrowserPagePathPerfDetail.redirectTime).longAvg();
+browser_page_dns_avg = from(BrowserPagePathPerfDetail.dnsTime).longAvg();
+browser_page_req_avg = from(BrowserPagePathPerfDetail.reqTime).longAvg();
+browser_page_dom_analysis_avg = from(BrowserPagePathPerfDetail.domAnalysisTime).longAvg();
+browser_page_dom_ready_avg = from(BrowserPagePathPerfDetail.domReadyTime).longAvg();
+browser_page_blank_avg = from(BrowserPagePathPerfDetail.blankTime).longAvg();
+
+// Multiple values including p50, p75, p90, p95, p99
+browser_page_redirect_percentile = from(BrowserPagePathPerfDetail.redirectTime).percentile(10);
+browser_page_dns_percentile = from(BrowserPagePathPerfDetail.dnsTime).percentile(10);
+browser_page_req_percentile = from(BrowserPagePathPerfDetail.reqTime).percentile(10);
+browser_page_dom_analysis_percentile = from(BrowserPagePathPerfDetail.domAnalysisTime).percentile(10);
+browser_page_dom_ready_percentile = from(BrowserPagePathPerfDetail.domReadyTime).percentile(10);
+browser_page_blank_percentile = from(BrowserPagePathPerfDetail.blankTime).percentile(10);
+
+// Browser service version
+browser_single_version_redirect_avg = from(BrowserSingleVersionPerfDetail.redirectTime).longAvg();
+browser_single_version_dns_avg = from(BrowserSingleVersionPerfDetail.dnsTime).longAvg();
+browser_single_version_req_avg = from(BrowserSingleVersionPerfDetail.reqTime).longAvg();
+browser_single_version_dom_analysis_avg = from(BrowserSingleVersionPerfDetail.domAnalysisTime).longAvg();
+browser_single_version_dom_ready_avg = from(BrowserSingleVersionPerfDetail.domReadyTime).longAvg();
+browser_single_version_blank_avg = from(BrowserSingleVersionPerfDetail.blankTime).longAvg();
+
+// Multiple values including p50, p75, p90, p95, p99
+browser_single_version_redirect_percentile = from(BrowserSingleVersionPerfDetail.redirectTime).percentile(10);
+browser_single_version_dns_percentile = from(BrowserSingleVersionPerfDetail.dnsTime).percentile(10);
+browser_single_version_req_percentile = from(BrowserSingleVersionPerfDetail.reqTime).percentile(10);
+browser_single_version_dom_analysis_percentile = from(BrowserSingleVersionPerfDetail.domAnalysisTime).percentile(10);
+browser_single_version_dom_ready_percentile = from(BrowserSingleVersionPerfDetail.domReadyTime).percentile(10);
+browser_single_version_blank_percentile = from(BrowserSingleVersionPerfDetail.blankTime).percentile(10);
+
Review comment:
Those metrics should be removed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r368230459
##########
File path: oap-server/server-alarm-plugin/src/main/java/org/apache/skywalking/oap/server/core/alarm/provider/AlarmMessageFormatter.java
##########
@@ -55,6 +55,9 @@ public AlarmMessageFormatter(String format) {
case "id":
valueFroms.add(ValueFrom.ID);
break;
+ case "id1":
+ valueFroms.add(ValueFrom.ID1);
Review comment:
Same question about `id1`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/901b4bb8b35ec251c0ddce071e1bab21e32e8fac&el=desc) will **not change** coverage by `%`.
> The diff coverage is `n/a`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
=======================================
Coverage 24.89% 24.89%
=======================================
Files 1284 1284
Lines 29634 29634
Branches 4041 4041
=======================================
Hits 7376 7376
Misses 21579 21579
Partials 679 679
```
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [901b4bb...901b4bb](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/30ac5b0affa86617d717b7d2df22d460908949ee?src=pr&el=desc) will **decrease** coverage by `<.01%`.
> The diff coverage is `0%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
==========================================
- Coverage 25.53% 25.53% -0.01%
==========================================
Files 1217 1217
Lines 27600 27605 +5
Branches 3786 3788 +2
==========================================
Hits 7049 7049
- Misses 19917 19922 +5
Partials 634 634
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [.../listener/record/BrowserErrorLogRecordSampler.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9lcnJvcmxvZy9saXN0ZW5lci9yZWNvcmQvQnJvd3NlckVycm9yTG9nUmVjb3JkU2FtcGxlci5qYXZh) | `100% <ø> (ø)` | :arrow_up: |
| [...listener/record/BrowserErrorLogRecordListener.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9lcnJvcmxvZy9saXN0ZW5lci9yZWNvcmQvQnJvd3NlckVycm9yTG9nUmVjb3JkTGlzdGVuZXIuamF2YQ==) | `0% <0%> (ø)` | :arrow_up: |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [30ac5b0...41dbb86](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] Fine0830 commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
Fine0830 commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-581205082
> The metrics summary by review comments.
>
> ```
> // browser app
> browser_app_pv
> browser_app_error_rate
> browser_app_error_sum
>
> // browser app single version
> browser_app_single_version_page_pv
> browser_app_single_version_page_error_rate
>
> // browser app page
> browser_app_page_pv
> browser_app_page_error_rate
> browser_app_page_error_sum
>
> browser_app_page_redirect_avg
> browser_app_page_dns_avg
> browser_app_page_req_avg
> browser_app_page_dom_analysis_avg
> browser_app_page_dom_ready_avg
> browser_app_page_blank_avg
>
> browser_app_page_redirect_percentile
> browser_app_page_dns_percentile
> browser_app_page_req_percentile
> browser_app_page_dom_analysis_percentile
> browser_app_page_dom_ready_percentile
> browser_app_page_blank_percentile
> ```
>
> > We should add error rate ranking for versions in service.
>
> The sort will be implemented in the `query-plugin`.
>
> > We need to sort errors and calculate errors sum for different catalogs.
>
> Please provide all known value for the `BrowserErrorLog#catalog` @Fine0830 . I suggest to change the [BrowserErrorLog#catalog](https://github.com/apache/skywalking-data-collect-protocol/blob/eebd016e32b0808416923acf04dcd31d9eb86c09/browser/BrowserPerf.proto#L49) to an enum.
>
> @wu-sheng @Fine0830 Please confirm :)
Here is error category. Probably values will increase in the future.
`enum ErrorsCategory {
AJAX_ERROR = 'ajaxError',
RESOURCE_ERROR = 'resourceError',
VUE_ERROR = 'vueError',
PROMISE_ERROR = 'promiseError',
JS_ERROR = 'jsError',
UNKNOW_ERROR = 'unknowError',
}`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/aadc20648d9bb6da91d7a2fe4363d2c8651638f6?src=pr&el=desc) will **decrease** coverage by `0.11%`.
> The diff coverage is `n/a`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
==========================================
- Coverage 26.14% 26.03% -0.12%
==========================================
Files 1198 1198
Lines 26026 26026
Branches 3683 3683
==========================================
- Hits 6804 6775 -29
- Misses 18619 18647 +28
- Partials 603 604 +1
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...ache/skywalking/apm/agent/core/jvm/JVMService.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvanZtL0pWTVNlcnZpY2UuamF2YQ==) | `57.37% <0%> (-19.68%)` | :arrow_down: |
| [...alking/apm/agent/core/remote/AgentIDDecorator.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcmVtb3RlL0FnZW50SUREZWNvcmF0b3IuamF2YQ==) | `67.85% <0%> (-17.86%)` | :arrow_down: |
| [.../agent/core/profile/ProfileTaskChannelService.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcHJvZmlsZS9Qcm9maWxlVGFza0NoYW5uZWxTZXJ2aWNlLmphdmE=) | `28.73% <0%> (-8.05%)` | :arrow_down: |
| [.../core/remote/ServiceAndEndpointRegisterClient.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcmVtb3RlL1NlcnZpY2VBbmRFbmRwb2ludFJlZ2lzdGVyQ2xpZW50LmphdmE=) | `28.08% <0%> (-3.38%)` | :arrow_down: |
| [...m/agent/core/remote/TraceSegmentServiceClient.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcmVtb3RlL1RyYWNlU2VnbWVudFNlcnZpY2VDbGllbnQuamF2YQ==) | `80.88% <0%> (-1.48%)` | :arrow_down: |
| [...king/apm/agent/core/remote/GRPCChannelManager.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcmVtb3RlL0dSUENDaGFubmVsTWFuYWdlci5qYXZh) | `66.66% <0%> (-1.29%)` | :arrow_down: |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [aadc206...c5df2e9](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] Fine0830 commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
Fine0830 commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-584514378
No, the value couldn't be more than 100%. JS error rate = PV(JS error in specified time) / PV (total PV in specified time).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379404246
##########
File path: docs/en/setup/README.md
##########
@@ -25,6 +25,12 @@ You can go to their project repositories for additional info about guides and re
- [SkyAPM GO2Sky](https://github.com/SkyAPM/go2sky). See GO2Sky project document for more details.
+## Browser agent
+
+- Activate the [browser-receiver](backend/backend-receivers.md#browser-receiver) following the document.
Review comment:
done
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/9c941bced90042d7610db4c76b913dd897d5a73e&el=desc) will **decrease** coverage by `0.62%`.
> The diff coverage is `1.13%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
==========================================
- Coverage 25.56% 24.93% -0.63%
==========================================
Files 1244 1284 +40
Lines 28950 29689 +739
Branches 3968 4056 +88
==========================================
+ Hits 7400 7402 +2
- Misses 20866 21603 +737
Partials 684 684
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [.../java/org/apache/skywalking/oal/rt/OALRuntime.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9vYWwtcnQvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FsL3J0L09BTFJ1bnRpbWUuamF2YQ==) | `0.00% <0.00%> (ø)` | |
| [...he/skywalking/oal/rt/output/DispatcherContext.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9vYWwtcnQvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FsL3J0L291dHB1dC9EaXNwYXRjaGVyQ29udGV4dC5qYXZh) | `0.00% <ø> (ø)` | |
| [...pache/skywalking/oal/rt/parser/AnalysisResult.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9vYWwtcnQvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FsL3J0L3BhcnNlci9BbmFseXNpc1Jlc3VsdC5qYXZh) | `59.25% <ø> (ø)` | |
| [.../apache/skywalking/oal/rt/parser/DeepAnalysis.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9vYWwtcnQvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FsL3J0L3BhcnNlci9EZWVwQW5hbHlzaXMuamF2YQ==) | `62.93% <0.00%> (-2.84%)` | :arrow_down: |
| [.../apache/skywalking/oap/server/core/CoreModule.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvQ29yZU1vZHVsZS5qYXZh) | `3.70% <0.00%> (-0.22%)` | :arrow_down: |
| [...skywalking/oap/server/core/CoreModuleProvider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvQ29yZU1vZHVsZVByb3ZpZGVyLmphdmE=) | `0.00% <0.00%> (ø)` | |
| [...rver/core/analysis/metrics/PVErrorRateMetrics.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvYW5hbHlzaXMvbWV0cmljcy9QVkVycm9yUmF0ZU1ldHJpY3MuamF2YQ==) | `0.00% <0.00%> (ø)` | |
| [...ore/analysis/metrics/expression/NotEqualMatch.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvYW5hbHlzaXMvbWV0cmljcy9leHByZXNzaW9uL05vdEVxdWFsTWF0Y2guamF2YQ==) | `0.00% <0.00%> (ø)` | |
| [...ver/core/browser/manual/BrowserErrorLogRecord.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvYnJvd3Nlci9tYW51YWwvQnJvd3NlckVycm9yTG9nUmVjb3JkLmphdmE=) | `0.00% <0.00%> (ø)` | |
| [...rowser/manual/BrowserErrorLogRecordDispatcher.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvYnJvd3Nlci9tYW51YWwvQnJvd3NlckVycm9yTG9nUmVjb3JkRGlzcGF0Y2hlci5qYXZh) | `0.00% <0.00%> (ø)` | |
| ... and [102 more](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [7d0ba6c...7d0ba6c](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r376389078
##########
File path: oap-server/server-receiver-plugin/skywalking-browser-receiver-plugin/src/main/java/org/apache/skywalking/oap/server/recevier/browser/provider/parser/errorlog/listener/errorlog/SourceBuilder.java
##########
@@ -0,0 +1,58 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.oap.server.recevier.browser.provider.parser.errorlog.listener.errorlog;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.apache.skywalking.oap.server.core.browser.source.BrowserAppErrorLog;
+import org.apache.skywalking.oap.server.core.browser.source.BrowserAppPageErrorLog;
+import org.apache.skywalking.oap.server.core.browser.source.BrowserErrorCategory;
+
+/**
+ * @author zhangwei
+ */
+@Setter
+@Getter
+class SourceBuilder {
Review comment:
There is already a `SourceBuilder`, please don't use duplicated name. Also, the existing one should be renamed to `Trace SourceBuilder`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r368290660
##########
File path: oap-server/server-bootstrap/src/main/resources/official_analysis.oal
##########
@@ -102,3 +102,77 @@ envoy_parent_connections_used = from(EnvoyInstanceMetric.value).filter(metricNam
// disable(top_n_database_statement);
// disable(zipkin_span);
// disable(jaeger_span);
+
+
+// Browser metrics begin
Review comment:
@arugal Sorry for requesting you to change back. Could you revert to your prev idea? And activate the OAL by the receiver? The current OAL file should be activated by the core module directly.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r376395189
##########
File path: oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/browser/source/BrowserAppErrorLog.java
##########
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.oap.server.core.browser.source;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.apache.skywalking.oap.server.core.source.ScopeDeclaration;
+import org.apache.skywalking.oap.server.core.source.ScopeDefaultColumn;
+import org.apache.skywalking.oap.server.core.source.Source;
+
+import static org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.BROWSER_APP_ERROR_LOG;
+import static org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.SERVICE_CATALOG_NAME;
+
+/**
+ * @author zhangwei
+ */
+@ScopeDeclaration(id = BROWSER_APP_ERROR_LOG, name = "BrowserAppErrorLog", catalog = SERVICE_CATALOG_NAME)
+@ScopeDefaultColumn.VirtualColumnDefinition(fieldName = "entityId", columnName = "entity_id", isID = true, type = String.class)
+public class BrowserAppErrorLog extends Source {
+
+ @Override
+ public int scope() {
+ return BROWSER_APP_ERROR_LOG;
+ }
+
+ @Override
+ public String getEntityId() {
+ return String.valueOf(id);
+ }
+
+ @Getter @Setter private int id;
+ @Getter private final int count = 1;
Review comment:
Log collect service is a streaming process mode, you should support that, so this `count` could be > 1.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> :exclamation: No coverage uploaded for pull request base (`master@8dcbb02`). [Click here to learn what that means](https://docs.codecov.io/docs/error-reference#section-missing-base-commit).
> The diff coverage is `n/a`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
=========================================
Coverage ? 26.23%
=========================================
Files ? 1190
Lines ? 25936
Branches ? 3682
=========================================
Hits ? 6805
Misses ? 18526
Partials ? 605
```
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [8dcbb02...1b7030a](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r376394875
##########
File path: oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/browser/source/BrowserAppPageErrorLog.java
##########
@@ -0,0 +1,52 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.oap.server.core.browser.source;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.apache.skywalking.oap.server.core.source.ScopeDeclaration;
+import org.apache.skywalking.oap.server.core.source.ScopeDefaultColumn;
+import org.apache.skywalking.oap.server.core.source.Source;
+
+import static org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.BROWSER_APP_PAGE_ERROR_LOG;
+import static org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.ENDPOINT_CATALOG_NAME;
+
+/**
+ * @author zhangwei
+ */
+@ScopeDeclaration(id = BROWSER_APP_PAGE_ERROR_LOG, name = "BrowserAppPageErrorLog", catalog = ENDPOINT_CATALOG_NAME)
+@ScopeDefaultColumn.VirtualColumnDefinition(fieldName = "entityId", columnName = "entity_id", isID = true, type = String.class)
+public class BrowserAppPageErrorLog extends Source {
Review comment:
Log -> Traffic too.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/08ef316dce5f19a0ff749271cbede8e6b9e1e59c?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `n/a`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
=======================================
Coverage 26.34% 26.34%
=======================================
Files 1210 1210
Lines 26347 26347
Branches 3733 3733
=======================================
Hits 6940 6940
Misses 18794 18794
Partials 613 613
```
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [08ef316...a45db8e](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379435243
##########
File path: test/e2e/e2e-base/src/main/java/org/apache/skywalking/e2e/metrics/MetricsMatcher.java
##########
@@ -64,15 +72,23 @@ public static void verifyMetrics(SimpleQueryClient queryClient, String metricNam
}
public static void verifyPercentileMetrics(SimpleQueryClient queryClient, String metricName, String id,
- final LocalDateTime minutesAgo, long retryInterval, Runnable generateTraffic) throws Exception {
+ final LocalDateTime minutesAgo, long retryInterval, Runnable generateTraffic) throws Exception {
+ verifyPercentileMetrics(queryClient, metricName, id, minutesAgo, LocalDateTime.now(ZoneOffset.UTC).plusMinutes(1), retryInterval, generateTraffic);
Review comment:
Before that was the UTC TZ, I just overload `verifyMetrics`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r376380061
##########
File path: oap-server/oal-grammar/src/main/antlr4/org/apache/skywalking/oal/rt/grammar/OALLexer.g4
##########
@@ -45,10 +45,11 @@ SRC_SERVICE_INSTANCE_CLR_THREAD: 'ServiceInstanceCLRThread';
SRC_ENVOY_INSTANCE_METRIC: 'EnvoyInstanceMetric';
// Browser keywords
-SRC_BROWSER_PERF_DETAIL: 'BrowserPerfDetail';
-SRC_BROWSER_PAGE_PATH_PERF_DETAIL: 'BrowserPagePathPerfDetail';
-SRC_BROWSER_SINGLE_VERSION_PERF_DETAIL: 'BrowserSingleVersionPerfDetail';
-SRC_BROWSER_SINGLE_VERSION_PAGE_PATH_PERF_DETAIL: 'BrowserSingleVersionPagePathPerfDetail';
+SRC_BROWSER_APP_PERF: 'BrowserAppPerf';
+SRC_BROWSER_APP_PAGE_PERF: 'BrowserAppPagePerf';
+SRC_BROWSER_APP_SINGLE_VERSION_PERF: 'BrowserAppSingleVersionPerf';
+SRC_BROWSER_APP_ERROR_LOG: 'BrowserAppErrorLog';
+SRC_BROWSER_APP_PAGE_ERROR_LOG: 'BrowserAppPageErrorLog';
Review comment:
What is this? I think `SRC_BROWSER_APP_ERROR_LOG` should represent the error log?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/fd36194fa6db92fe12b7def2e292745bfff0f12a?src=pr&el=desc) will **decrease** coverage by `<.01%`.
> The diff coverage is `16.66%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
==========================================
- Coverage 25.43% 25.43% -0.01%
==========================================
Files 1222 1222
Lines 27715 27746 +31
Branches 3807 3811 +4
==========================================
+ Hits 7049 7056 +7
- Misses 20031 20054 +23
- Partials 635 636 +1
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...aop/server/receiver/mesh/MeshReceiverProvider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctbWVzaC1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYW9wL3NlcnZlci9yZWNlaXZlci9tZXNoL01lc2hSZWNlaXZlclByb3ZpZGVyLmphdmE=) | `0% <ø> (ø)` | :arrow_up: |
| [...ap/server/core/browser/source/BrowserErrorLog.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvYnJvd3Nlci9zb3VyY2UvQnJvd3NlckVycm9yTG9nLmphdmE=) | `0% <ø> (ø)` | :arrow_up: |
| [...er/core/browser/source/BrowserTrafficCategory.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvYnJvd3Nlci9zb3VyY2UvQnJvd3NlclRyYWZmaWNDYXRlZ29yeS5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [.../server/core/alarm/provider/grpc/GRPCCallback.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItYWxhcm0tcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvY29yZS9hbGFybS9wcm92aWRlci9ncnBjL0dSUENDYWxsYmFjay5qYXZh) | `59.42% <0%> (-1.45%)` | :arrow_down: |
| [...rowser/manual/BrowserErrorLogRecordDispatcher.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvYnJvd3Nlci9tYW51YWwvQnJvd3NlckVycm9yTG9nUmVjb3JkRGlzcGF0Y2hlci5qYXZh) | `0% <0%> (ø)` | :arrow_up: |
| [...er/errorlog/decorator/BrowserErrorLogCoreInfo.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9lcnJvcmxvZy9kZWNvcmF0b3IvQnJvd3NlckVycm9yTG9nQ29yZUluZm8uamF2YQ==) | `0% <0%> (ø)` | :arrow_up: |
| [.../plugin/elasticsearch/base/StorageEsInstaller.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItc3RvcmFnZS1wbHVnaW4vc3RvcmFnZS1lbGFzdGljc2VhcmNoLXBsdWdpbi9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL3N0b3JhZ2UvcGx1Z2luL2VsYXN0aWNzZWFyY2gvYmFzZS9TdG9yYWdlRXNJbnN0YWxsZXIuamF2YQ==) | `0% <0%> (ø)` | :arrow_up: |
| [...r/browser/provider/BrowserServiceModuleConfig.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL0Jyb3dzZXJTZXJ2aWNlTW9kdWxlQ29uZmlnLmphdmE=) | `0% <0%> (ø)` | :arrow_up: |
| [...icsearch7/StorageModuleElasticsearch7Provider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItc3RvcmFnZS1wbHVnaW4vc3RvcmFnZS1lbGFzdGljc2VhcmNoNy1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9zdG9yYWdlL3BsdWdpbi9lbGFzdGljc2VhcmNoNy9TdG9yYWdlTW9kdWxlRWxhc3RpY3NlYXJjaDdQcm92aWRlci5qYXZh) | `0% <0%> (ø)` | :arrow_up: |
| [...rrorlog/MultiScopesBrowserAppErrorLogListener.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9lcnJvcmxvZy9saXN0ZW5lci9lcnJvcmxvZy9NdWx0aVNjb3Blc0Jyb3dzZXJBcHBFcnJvckxvZ0xpc3RlbmVyLmphdmE=) | `0% <0%> (ø)` | :arrow_up: |
| ... and [11 more](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [fd36194...a9cf793](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379827167
##########
File path: .github/workflows/e2e.yaml
##########
@@ -118,3 +118,19 @@ jobs:
run: export E2E_VERSION=jdk8-1.3 && bash -x test/e2e/run.sh e2e-profile/e2e-profile-test-runner --storage=elasticsearch
- name: Profile Tests ES7(JDK8)
run: export E2E_VERSION=jdk8-1.3 DIST_PACKAGE=apache-skywalking-apm-bin-es7.tar.gz ES_VERSION=7.4.2 && bash -x test/e2e/run.sh e2e-profile/e2e-profile-test-runner --storage=elasticsearch
+
+ Browser:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v1
+ with:
+ submodules: true
+ - name: Set environment
+ run: export MAVEN_OPTS='-Dmaven.repo.local=~/.m2/repository -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:-UseGCOverheadLimit -Xmx3g'
+ - name: Compile & Install Test Codes
+ run: |
+ ./mvnw checkstyle:check apache-rat:check
+ ./mvnw -Dcheckstyle.skip -Drat.skip -T2 -Dmaven.compile.fork -Dmaven.compiler.maxmem=3072 -DskipTests clean install
+ ./mvnw -f test/e2e/pom.xml -pl e2e-base clean install
+ - name: Browser Tests ES6(JDK8)
+ run: export E2E_VERSION=jdk8-1.3 && bash -x test/e2e/run.sh e2e-browser/e2e-browser-es
Review comment:
done
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/6558aeff34e89f35b364eea8c881c16fe09251bf&el=desc) will **not change** coverage by `%`.
> The diff coverage is `n/a`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
=======================================
Coverage 24.92% 24.92%
=======================================
Files 1284 1284
Lines 29689 29689
Branches 4056 4056
=======================================
Hits 7401 7401
Misses 21603 21603
Partials 685 685
```
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [6558aef...6558aef](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r372359627
##########
File path: oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/source/DefaultScopeDefine.java
##########
@@ -71,16 +71,28 @@
public static final int PROFILE_TASK_LOG = 27;
public static final int PROFILE_TASK_SEGMENT_SNAPSHOT = 28;
+ // browser
+ public static final int BROWSER_PERF_DATA = 40;
+ public static final int BROWSER_PERF_DETAIL = 41;
+ public static final int BROWSER_PAGE_PATH_PERF_DETAIL = 42;
+ public static final int BROWSER_SINGLE_VERSION_PERF_DETAIL = 43;
+ public static final int BROWSER_SINGLE_VERSION_PAGE_PATH_PERF_DETAIL = 44;
+
/**
* Catalog of scope, the metrics processor could use this to group all generated metrics by oal rt.
*/
public static final String SERVICE_CATALOG_NAME = "SERVICE";
public static final String SERVICE_INSTANCE_CATALOG_NAME = "SERVICE_INSTANCE";
public static final String ENDPOINT_CATALOG_NAME = "ENDPOINT";
+ public static final String BROWSER_PAGE_PATH_CATALOG_NAME = "BROWSER_PAGE_PATH";
+ public static final String BROWSER_SINGLE_VERSION_PAGE_PATH_CATALOG_NAME = "BROWSER_SINGLE_VERSION_PAGE_PATH";
Review comment:
This should be mapping to the service instance, right? Then it should be named. `BROWSER_APP_SINGLE_VERSION_CATALOG_NAME`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379827176
##########
File path: test/e2e/e2e-browser/e2e-browser-es/src/test/java/org/apache/skywalking/e2e/ESWithBrowserPerfITCase.java
##########
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ */
+
+package org.apache.skywalking.e2e;
+
+import lombok.extern.slf4j.Slf4j;
+import org.apache.skywalking.e2e.browser.BrowserPerfITCase;
+
+@Slf4j
+public class ESWithBrowserPerfITCase extends BrowserPerfITCase {
Review comment:
done
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379341010
##########
File path: docs/en/setup/README.md
##########
@@ -25,6 +25,12 @@ You can go to their project repositories for additional info about guides and re
- [SkyAPM GO2Sky](https://github.com/SkyAPM/go2sky). See GO2Sky project document for more details.
+## Browser agent
+
+- Activate the [browser-receiver](backend/backend-receivers.md#browser-receiver) following the document.
+
+- [Browser Js Client](https://github.com/apache/skywalking-client-js). See `skywalking-client-js` project document for more details.
Review comment:
Move this to the 1st point. And change to
[Browser JS Client](https://github.com/apache/skywalking-client-js). JS client reports the browser performance data to the backend. See `skywalking-client-js` project document for more details.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-587246744
> @arugal Have you finished the changes?
Yes.
> Then we will prepare the release once the profile and InfluxDB features are ready.
Two very powerful features. I will update `browser-e2e` after InfluxDB features merge.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379413452
##########
File path: oap-server/server-receiver-plugin/skywalking-browser-receiver-plugin/src/main/java/org/apache/skywalking/oap/server/recevier/browser/provider/parser/errorlog/listener/BrowserErrorLogListener.java
##########
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.oap.server.recevier.browser.provider.parser.errorlog.listener;
+
+import org.apache.skywalking.oap.server.recevier.browser.provider.parser.errorlog.decorator.BrowserErrorLogCoreInfo;
+import org.apache.skywalking.oap.server.recevier.browser.provider.parser.errorlog.decorator.BrowserErrorLogDecorator;
+
+public interface BrowserErrorLogListener {
Review comment:
Comments for the interface and all implementations are required.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/30ac5b0affa86617d717b7d2df22d460908949ee?src=pr&el=desc) will **decrease** coverage by `<.01%`.
> The diff coverage is `0%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
==========================================
- Coverage 25.53% 25.53% -0.01%
==========================================
Files 1217 1217
Lines 27600 27605 +5
Branches 3786 3788 +2
==========================================
Hits 7049 7049
- Misses 19917 19922 +5
Partials 634 634
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [.../listener/record/BrowserErrorLogRecordSampler.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9lcnJvcmxvZy9saXN0ZW5lci9yZWNvcmQvQnJvd3NlckVycm9yTG9nUmVjb3JkU2FtcGxlci5qYXZh) | `100% <ø> (ø)` | :arrow_up: |
| [...listener/record/BrowserErrorLogRecordListener.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9lcnJvcmxvZy9saXN0ZW5lci9yZWNvcmQvQnJvd3NlckVycm9yTG9nUmVjb3JkTGlzdGVuZXIuamF2YQ==) | `0% <0%> (ø)` | :arrow_up: |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [30ac5b0...41dbb86](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] Fine0830 edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
Fine0830 edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-584989598
> @Fine0830 It is easy to say like that. Please take a look at the protocol, how to implement that? JS error has never been reported, we received error logs which you confirmed could be multiple.
Probably, there are some gaps. It is definitive that client-js reports logs for one page in multiple times. There is a common scene.
When user load one page, page report resource errors, then user continue view the page for a few minutes, finally user click one button, page report js errors.
For the scene, when client-js catch errors and report to server at once. It's impossible to get all the errors at once, as user need to trigger events.
Let's talk about JS error rate, we need to calculate PV.
`JS error rate = PV(pv with JS error in specified time) / PV (total PV in specified time)`
For PV with JS error in specified time, If server can't know which errors belong to which PV now, we can add a parameter to mark. After this, PV with JS error will be calculate. I think it is easy to calculate total PV in specified time.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r372366440
##########
File path: oap-server/server-bootstrap/src/main/resources/browser_analysis.oal
##########
@@ -0,0 +1,87 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF 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.
+*
+*/
+
+// Browser service
+browser_redirect_avg = from(BrowserPerfDetail.redirectTime).longAvg();
+browser_dns_avg = from(BrowserPerfDetail.dnsTime).longAvg();
+browser_req_avg = from(BrowserPerfDetail.reqTime).longAvg();
+browser_dom_analysis_avg = from(BrowserPerfDetail.domAnalysisTime).longAvg();
+browser_dom_ready_avg = from(BrowserPerfDetail.domReadyTime).longAvg();
+browser_blank_avg = from(BrowserPerfDetail.blankTime).longAvg();
+
+// Multiple values including p50, p75, p90, p95, p99
+browser_redirect_percentile = from(BrowserPerfDetail.redirectTime).percentile(10);
+browser_dns_percentile = from(BrowserPerfDetail.dnsTime).percentile(10);
+browser_req_percentile = from(BrowserPerfDetail.reqTime).percentile(10);
+browser_dom_analysis_percentile = from(BrowserPerfDetail.domAnalysisTime).percentile(10);
+browser_dom_ready_percentile = from(BrowserPerfDetail.domReadyTime).percentile(10);
+browser_blank_percentile = from(BrowserPerfDetail.blankTime).percentile(10);
+
+// Browser service page
+browser_page_pv = from(BrowserPagePathPerfDetail.count).sum();
+browser_page_error_rate = from(BrowserPagePathPerfDetail.*).percent(status == false);
+
+browser_page_redirect_avg = from(BrowserPagePathPerfDetail.redirectTime).longAvg();
+browser_page_dns_avg = from(BrowserPagePathPerfDetail.dnsTime).longAvg();
+browser_page_req_avg = from(BrowserPagePathPerfDetail.reqTime).longAvg();
+browser_page_dom_analysis_avg = from(BrowserPagePathPerfDetail.domAnalysisTime).longAvg();
+browser_page_dom_ready_avg = from(BrowserPagePathPerfDetail.domReadyTime).longAvg();
+browser_page_blank_avg = from(BrowserPagePathPerfDetail.blankTime).longAvg();
+
+// Multiple values including p50, p75, p90, p95, p99
+browser_page_redirect_percentile = from(BrowserPagePathPerfDetail.redirectTime).percentile(10);
+browser_page_dns_percentile = from(BrowserPagePathPerfDetail.dnsTime).percentile(10);
+browser_page_req_percentile = from(BrowserPagePathPerfDetail.reqTime).percentile(10);
+browser_page_dom_analysis_percentile = from(BrowserPagePathPerfDetail.domAnalysisTime).percentile(10);
+browser_page_dom_ready_percentile = from(BrowserPagePathPerfDetail.domReadyTime).percentile(10);
+browser_page_blank_percentile = from(BrowserPagePathPerfDetail.blankTime).percentile(10);
+
+// Browser service version
Review comment:
This comment is not right.
> Performance metrics of every single version .
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] Fine0830 commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
Fine0830 commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r373832104
##########
File path: oap-server/server-bootstrap/src/main/resources/browser_analysis.oal
##########
@@ -0,0 +1,87 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF 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.
+*
+*/
+
+// Browser service
+browser_redirect_avg = from(BrowserPerfDetail.redirectTime).longAvg();
+browser_dns_avg = from(BrowserPerfDetail.dnsTime).longAvg();
+browser_req_avg = from(BrowserPerfDetail.reqTime).longAvg();
+browser_dom_analysis_avg = from(BrowserPerfDetail.domAnalysisTime).longAvg();
+browser_dom_ready_avg = from(BrowserPerfDetail.domReadyTime).longAvg();
+browser_blank_avg = from(BrowserPerfDetail.blankTime).longAvg();
+
+// Multiple values including p50, p75, p90, p95, p99
+browser_redirect_percentile = from(BrowserPerfDetail.redirectTime).percentile(10);
+browser_dns_percentile = from(BrowserPerfDetail.dnsTime).percentile(10);
+browser_req_percentile = from(BrowserPerfDetail.reqTime).percentile(10);
+browser_dom_analysis_percentile = from(BrowserPerfDetail.domAnalysisTime).percentile(10);
+browser_dom_ready_percentile = from(BrowserPerfDetail.domReadyTime).percentile(10);
+browser_blank_percentile = from(BrowserPerfDetail.blankTime).percentile(10);
+
+// Browser service page
+browser_page_pv = from(BrowserPagePathPerfDetail.count).sum();
+browser_page_error_rate = from(BrowserPagePathPerfDetail.*).percent(status == false);
+
+browser_page_redirect_avg = from(BrowserPagePathPerfDetail.redirectTime).longAvg();
+browser_page_dns_avg = from(BrowserPagePathPerfDetail.dnsTime).longAvg();
+browser_page_req_avg = from(BrowserPagePathPerfDetail.reqTime).longAvg();
+browser_page_dom_analysis_avg = from(BrowserPagePathPerfDetail.domAnalysisTime).longAvg();
+browser_page_dom_ready_avg = from(BrowserPagePathPerfDetail.domReadyTime).longAvg();
+browser_page_blank_avg = from(BrowserPagePathPerfDetail.blankTime).longAvg();
+
+// Multiple values including p50, p75, p90, p95, p99
+browser_page_redirect_percentile = from(BrowserPagePathPerfDetail.redirectTime).percentile(10);
+browser_page_dns_percentile = from(BrowserPagePathPerfDetail.dnsTime).percentile(10);
+browser_page_req_percentile = from(BrowserPagePathPerfDetail.reqTime).percentile(10);
+browser_page_dom_analysis_percentile = from(BrowserPagePathPerfDetail.domAnalysisTime).percentile(10);
+browser_page_dom_ready_percentile = from(BrowserPagePathPerfDetail.domReadyTime).percentile(10);
+browser_page_blank_percentile = from(BrowserPagePathPerfDetail.blankTime).percentile(10);
+
+// Browser service version
Review comment:
We should add error rate ranking for pages in service version.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r372364204
##########
File path: oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/browser/source/BrowserSingleVersionPerfDetail.java
##########
@@ -0,0 +1,56 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.oap.server.core.browser.source;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.apache.skywalking.oap.server.core.source.ScopeDeclaration;
+import org.apache.skywalking.oap.server.core.source.ScopeDefaultColumn;
+import org.apache.skywalking.oap.server.core.source.Source;
+
+import static org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.SERVICE_INSTANCE_CATALOG_NAME;
+import static org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.BROWSER_SINGLE_VERSION_PERF_DETAIL;
+
+/**
+ * @author zhangwei
+ */
+@ScopeDeclaration(id = BROWSER_SINGLE_VERSION_PERF_DETAIL, name = "BrowserSingleVersionPerfDetail", catalog = SERVICE_INSTANCE_CATALOG_NAME)
Review comment:
Catalog is not right.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/8dd0ce18a5a1b374ae89636ce985d763fe70d088?src=pr&el=desc) will **decrease** coverage by `0.62%`.
> The diff coverage is `1.13%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
==========================================
- Coverage 25.55% 24.92% -0.63%
==========================================
Files 1209 1249 +40
Lines 27914 28653 +739
Branches 3851 3939 +88
==========================================
+ Hits 7134 7143 +9
- Misses 20129 20859 +730
Partials 651 651
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...ing/oap/server/core/source/DefaultScopeDefine.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvc291cmNlL0RlZmF1bHRTY29wZURlZmluZS5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...he/skywalking/oal/rt/output/DispatcherContext.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9vYWwtcnQvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FsL3J0L291dHB1dC9EaXNwYXRjaGVyQ29udGV4dC5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...pache/skywalking/oal/rt/parser/AnalysisResult.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9vYWwtcnQvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FsL3J0L3BhcnNlci9BbmFseXNpc1Jlc3VsdC5qYXZh) | `59.25% <ø> (ø)` | :arrow_up: |
| [...receiver/trace/provider/parser/SegmentParseV2.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL1NlZ21lbnRQYXJzZVYyLmphdmE=) | `0% <ø> (ø)` | :arrow_up: |
| [...r/parser/listener/endpoint/TraceSourceBuilder.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL2xpc3RlbmVyL2VuZHBvaW50L1RyYWNlU291cmNlQnVpbGRlci5qYXZh) | `0% <ø> (ø)` | |
| [...ing/oap/server/core/source/SourceReceiverImpl.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvc291cmNlL1NvdXJjZVJlY2VpdmVySW1wbC5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...arch/ZipkinStorageModuleElasticsearchProvider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItc3RvcmFnZS1wbHVnaW4vc3RvcmFnZS16aXBraW4tcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvc3RvcmFnZS9wbHVnaW4vemlwa2luL2VsYXN0aWNzZWFyY2gvWmlwa2luU3RvcmFnZU1vZHVsZUVsYXN0aWNzZWFyY2hQcm92aWRlci5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...ovider/handler/v6/grpc/RegisterServiceHandler.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctcmVnaXN0ZXItcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvcmVnaXN0ZXIvcHJvdmlkZXIvaGFuZGxlci92Ni9ncnBjL1JlZ2lzdGVyU2VydmljZUhhbmRsZXIuamF2YQ==) | `0% <ø> (ø)` | :arrow_up: |
| [...arch/JaegerStorageModuleElasticsearchProvider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItc3RvcmFnZS1wbHVnaW4vc3RvcmFnZS1qYWVnZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvc3RvcmFnZS9wbHVnaW4vamFlZ2VyL2VsYXN0aWNzZWFyY2gvSmFlZ2VyU3RvcmFnZU1vZHVsZUVsYXN0aWNzZWFyY2hQcm92aWRlci5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...e/skywalking/oap/server/core/oal/rt/OALEngine.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvb2FsL3J0L09BTEVuZ2luZS5qYXZh) | `0% <0%> (ø)` | |
| ... and [100 more](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [8dd0ce1...abc5251](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-585124578
@Fine0830 I think (isFirstPageErrorReport) should be a better name in the protocol?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-585008534
> For error logs, if backend can't cache/persistent the context, how do we query error details? Error details are needed to analyse code error location.
Context is not the log itself. Context is which PV has an error log already or not. Think in this way
there are 1 -> 1,000,000,000 page accesses, each one of them has random [0, 5) errors. Then now, the client-js reports an error log, if following your proposal, the backend need to query all existing 1m access and check whether this page has been counted as an error, then error count could be +1. But meanwhile, there is other 1m accesses happen in the next several seconds. Could you imagine how much payload this design gives the system?
That is typical and classics error when we talked about distributed systems and distributed statistics. The backend design must make sure affordable resource usage. This principle keeps as always in agent upstream protocol and tracing analysis in all language agents. That is why I said `Theoretically, it could help the calculation, but in engineering practice, it can't`. We increase a little complexity at the agent side, but tradeoff higher performance at the backend and storage. This makes SkyWalking could widely used and cost reasonable VMs(A.K.A. money for the end users)
Hope this explanation could make you more clear.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] Fine0830 commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
Fine0830 commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-581249704
> The metrics summary by review comments.
>
> ```
> // browser app
> browser_app_pv
> browser_app_error_rate
> browser_app_error_sum
>
> // browser app single version
> browser_app_single_version_page_pv
> browser_app_single_version_page_error_rate
>
> // browser app page
> browser_app_page_pv
> browser_app_page_error_rate
> browser_app_page_error_sum
>
> browser_app_page_ajax_error_sum
> browsre_app_page_resource_error_sum
> browsre_app_page_vue_error_sum
> browsre_app_page_promise_error_sum
> browser_app_page_js_error_sum
> browser_app_page_unknown_error_sum
>
> browser_app_page_redirect_avg
> browser_app_page_dns_avg
> browser_app_page_req_avg
> browser_app_page_dom_analysis_avg
> browser_app_page_dom_ready_avg
> browser_app_page_blank_avg
>
> browser_app_page_redirect_percentile
> browser_app_page_dns_percentile
> browser_app_page_req_percentile
> browser_app_page_dom_analysis_percentile
> browser_app_page_dom_ready_percentile
> browser_app_page_blank_percentile
> ```
>
> > We should add error rate ranking for versions in service.
>
> The sort will be implemented in the `query-plugin`.
>
> > We need to sort errors and calculate errors sum for different catalogs.
>
> Please provide all known value for the `BrowserErrorLog#catalog` @Fine0830 . I suggest to change the [BrowserErrorLog#catalog](https://github.com/apache/skywalking-data-collect-protocol/blob/eebd016e32b0808416923acf04dcd31d9eb86c09/browser/BrowserPerf.proto#L49) to an enum.
>
> @wu-sheng @Fine0830 Please confirm :)
good to me.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-584513115
> JS error rate equal PV with JS error in specified time divide total PV in specified time.
@Fine0830 As I described, that value could be more than 100% as each PV could relate multiple error logs. How to deal with it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> :exclamation: No coverage uploaded for pull request base (`master@fa0b3df`). [Click here to learn what that means](https://docs.codecov.io/docs/error-reference#section-missing-base-commit).
> The diff coverage is `1.13%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
========================================
Coverage ? 24.8%
========================================
Files ? 1251
Lines ? 28821
Branches ? 3957
========================================
Hits ? 7148
Misses ? 21022
Partials ? 651
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...ing/oap/server/core/source/DefaultScopeDefine.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvc291cmNlL0RlZmF1bHRTY29wZURlZmluZS5qYXZh) | `0% <ø> (ø)` | |
| [...he/skywalking/oal/rt/output/DispatcherContext.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9vYWwtcnQvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FsL3J0L291dHB1dC9EaXNwYXRjaGVyQ29udGV4dC5qYXZh) | `0% <ø> (ø)` | |
| [...pache/skywalking/oal/rt/parser/AnalysisResult.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9vYWwtcnQvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FsL3J0L3BhcnNlci9BbmFseXNpc1Jlc3VsdC5qYXZh) | `59.25% <ø> (ø)` | |
| [...receiver/trace/provider/parser/SegmentParseV2.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL1NlZ21lbnRQYXJzZVYyLmphdmE=) | `0% <ø> (ø)` | |
| [...r/parser/listener/endpoint/TraceSourceBuilder.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL2xpc3RlbmVyL2VuZHBvaW50L1RyYWNlU291cmNlQnVpbGRlci5qYXZh) | `0% <ø> (ø)` | |
| [...ing/oap/server/core/source/SourceReceiverImpl.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvc291cmNlL1NvdXJjZVJlY2VpdmVySW1wbC5qYXZh) | `0% <ø> (ø)` | |
| [...arch/ZipkinStorageModuleElasticsearchProvider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItc3RvcmFnZS1wbHVnaW4vc3RvcmFnZS16aXBraW4tcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvc3RvcmFnZS9wbHVnaW4vemlwa2luL2VsYXN0aWNzZWFyY2gvWmlwa2luU3RvcmFnZU1vZHVsZUVsYXN0aWNzZWFyY2hQcm92aWRlci5qYXZh) | `0% <ø> (ø)` | |
| [...ovider/handler/v6/grpc/RegisterServiceHandler.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctcmVnaXN0ZXItcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvcmVnaXN0ZXIvcHJvdmlkZXIvaGFuZGxlci92Ni9ncnBjL1JlZ2lzdGVyU2VydmljZUhhbmRsZXIuamF2YQ==) | `0% <ø> (ø)` | |
| [...arch/JaegerStorageModuleElasticsearchProvider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItc3RvcmFnZS1wbHVnaW4vc3RvcmFnZS1qYWVnZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvc3RvcmFnZS9wbHVnaW4vamFlZ2VyL2VsYXN0aWNzZWFyY2gvSmFlZ2VyU3RvcmFnZU1vZHVsZUVsYXN0aWNzZWFyY2hQcm92aWRlci5qYXZh) | `0% <ø> (ø)` | |
| [...e/skywalking/oap/server/core/oal/rt/OALEngine.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvb2FsL3J0L09BTEVuZ2luZS5qYXZh) | `0% <0%> (ø)` | |
| ... and [59 more](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [fa0b3df...88d854b](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/61853516882744afc108723254f210a7a52053be?src=pr&el=desc) will **decrease** coverage by `0.66%`.
> The diff coverage is `1.13%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
==========================================
- Coverage 26.21% 25.55% -0.67%
==========================================
Files 1182 1222 +40
Lines 27006 27745 +739
Branches 3723 3811 +88
==========================================
+ Hits 7079 7089 +10
- Misses 19288 20018 +730
+ Partials 639 638 -1
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...ing/oap/server/core/source/DefaultScopeDefine.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvc291cmNlL0RlZmF1bHRTY29wZURlZmluZS5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...he/skywalking/oal/rt/output/DispatcherContext.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9vYWwtcnQvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FsL3J0L291dHB1dC9EaXNwYXRjaGVyQ29udGV4dC5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...pache/skywalking/oal/rt/parser/AnalysisResult.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9vYWwtcnQvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FsL3J0L3BhcnNlci9BbmFseXNpc1Jlc3VsdC5qYXZh) | `59.25% <ø> (ø)` | :arrow_up: |
| [...receiver/trace/provider/parser/SegmentParseV2.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL1NlZ21lbnRQYXJzZVYyLmphdmE=) | `0% <ø> (ø)` | :arrow_up: |
| [...r/parser/listener/endpoint/TraceSourceBuilder.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctdHJhY2UtcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvdHJhY2UvcHJvdmlkZXIvcGFyc2VyL2xpc3RlbmVyL2VuZHBvaW50L1RyYWNlU291cmNlQnVpbGRlci5qYXZh) | `0% <ø> (ø)` | |
| [...ing/oap/server/core/source/SourceReceiverImpl.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvc291cmNlL1NvdXJjZVJlY2VpdmVySW1wbC5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...arch/ZipkinStorageModuleElasticsearchProvider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItc3RvcmFnZS1wbHVnaW4vc3RvcmFnZS16aXBraW4tcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvc3RvcmFnZS9wbHVnaW4vemlwa2luL2VsYXN0aWNzZWFyY2gvWmlwa2luU3RvcmFnZU1vZHVsZUVsYXN0aWNzZWFyY2hQcm92aWRlci5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...ovider/handler/v6/grpc/RegisterServiceHandler.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctcmVnaXN0ZXItcmVjZWl2ZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvcmVjZWl2ZXIvcmVnaXN0ZXIvcHJvdmlkZXIvaGFuZGxlci92Ni9ncnBjL1JlZ2lzdGVyU2VydmljZUhhbmRsZXIuamF2YQ==) | `0% <ø> (ø)` | :arrow_up: |
| [...arch/JaegerStorageModuleElasticsearchProvider.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItc3RvcmFnZS1wbHVnaW4vc3RvcmFnZS1qYWVnZXItcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvc3RvcmFnZS9wbHVnaW4vamFlZ2VyL2VsYXN0aWNzZWFyY2gvSmFlZ2VyU3RvcmFnZU1vZHVsZUVsYXN0aWNzZWFyY2hQcm92aWRlci5qYXZh) | `0% <ø> (ø)` | :arrow_up: |
| [...e/skywalking/oap/server/core/oal/rt/OALEngine.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvb2FsL3J0L09BTEVuZ2luZS5qYXZh) | `0% <0%> (ø)` | |
| ... and [100 more](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [6185351...cd185e0](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575959311
> Agree, users modify only the OAL files they need.
I mean, using two separate OAL files. If the receiver is being active, the provider could make OAL engineer load another OAL file.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/e4da1d993d8bf01197f28ed11a7b266891883c49?src=pr&el=desc) will **decrease** coverage by `0.08%`.
> The diff coverage is `n/a`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
==========================================
- Coverage 25.91% 25.83% -0.09%
==========================================
Files 1207 1207
Lines 26334 26334
Branches 3814 3814
==========================================
- Hits 6825 6803 -22
- Misses 18905 18927 +22
Partials 604 604
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...ache/skywalking/apm/agent/core/jvm/JVMService.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvanZtL0pWTVNlcnZpY2UuamF2YQ==) | `59.01% <0%> (-18.04%)` | :arrow_down: |
| [...alking/apm/agent/core/remote/AgentIDDecorator.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcmVtb3RlL0FnZW50SUREZWNvcmF0b3IuamF2YQ==) | `67.85% <0%> (-17.86%)` | :arrow_down: |
| [...pm/agent/core/profile/ProfileTaskQueryService.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcHJvZmlsZS9Qcm9maWxlVGFza1F1ZXJ5U2VydmljZS5qYXZh) | `43.58% <0%> (-5.13%)` | :arrow_down: |
| [.../core/remote/ServiceAndEndpointRegisterClient.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcmVtb3RlL1NlcnZpY2VBbmRFbmRwb2ludFJlZ2lzdGVyQ2xpZW50LmphdmE=) | `28.08% <0%> (-3.38%)` | :arrow_down: |
| [...m/agent/core/remote/TraceSegmentServiceClient.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcmVtb3RlL1RyYWNlU2VnbWVudFNlcnZpY2VDbGllbnQuamF2YQ==) | `80.88% <0%> (-1.48%)` | :arrow_down: |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [e4da1d9...124098b](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r372368071
##########
File path: oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/browser/source/BrowserSingleVersionPerfDetail.java
##########
@@ -0,0 +1,56 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.oap.server.core.browser.source;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.apache.skywalking.oap.server.core.source.ScopeDeclaration;
+import org.apache.skywalking.oap.server.core.source.ScopeDefaultColumn;
+import org.apache.skywalking.oap.server.core.source.Source;
+
+import static org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.SERVICE_INSTANCE_CATALOG_NAME;
+import static org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.BROWSER_SINGLE_VERSION_PERF_DETAIL;
+
+/**
+ * @author zhangwei
+ */
+@ScopeDeclaration(id = BROWSER_SINGLE_VERSION_PERF_DETAIL, name = "BrowserSingleVersionPerfDetail", catalog = SERVICE_INSTANCE_CATALOG_NAME)
+@ScopeDefaultColumn.VirtualColumnDefinition(fieldName = "entityId", columnName = "entity_id", isID = true, type = String.class)
+public class BrowserSingleVersionPerfDetail extends Source {
Review comment:
`Browser` -> `BrowserApp`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r368354637
##########
File path: oap-server/server-bootstrap/src/main/resources/official_analysis.oal
##########
@@ -102,3 +102,77 @@ envoy_parent_connections_used = from(EnvoyInstanceMetric.value).filter(metricNam
// disable(top_n_database_statement);
// disable(zipkin_span);
// disable(jaeger_span);
+
+
+// Browser metrics begin
Review comment:
Good for me.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379368921
##########
File path: oap-server/server-bootstrap/src/main/resources/browser_analysis.oal
##########
@@ -0,0 +1,49 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF 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.
+*
+*/
+
+// browser app
+browser_app_pv = from(BrowserAppPerf.count).sum();
+browser_app_error_sum = from(BrowserAppErrorTraffic.count).sum();
Review comment:
Where is the error rate you asked before?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-584992794
> For PV with JS error in specified time, If server can't know which errors belong to which PV now, we can add a parameter to mark in error logs. After this, PV with JS error will be calculate. I think it is easy to calculate total PV in specified time.
Theoretically, it could help the calculation, but in engineering practice, it can't. No matter which parameter(or ID) you gave the error log, the backend can't cache/persistent the context. It will be easy to crash the backend as endless memory requirements. Also, you should know, the backend is in the cluster mode, as millions of browser could be opened at the same time, every time you report the data, there is one or multiple Gateways(LBs) to forward the data to a random OAP cluster node, which may or may not have the context(cached) even we could afford the memory.
Only solution I could have is, the client knows this is the first report or further report for every page, we could add a flag in the log report protocol to indicate this. Then the PV with error is only calculated when this new flag(isFirstPageErrorReport) is true.
WDYT? @Fine0830 @arugal
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-584515547
@Fine0830 It is easy to say like that. Please take a look at the protocol, how to implement that? JS error has never been reported, we received error logs which you confirmed could be multiple.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r376390987
##########
File path: oap-server/server-receiver-plugin/skywalking-browser-receiver-plugin/src/main/java/org/apache/skywalking/oap/server/recevier/browser/provider/parser/errorlog/listener/record/BrowserErrorLogRecordListener.java
##########
@@ -0,0 +1,106 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.oap.server.recevier.browser.provider.parser.errorlog.listener.record;
+
+import org.apache.skywalking.oap.server.core.CoreModule;
+import org.apache.skywalking.oap.server.core.browser.source.BrowserErrorLog;
+import org.apache.skywalking.oap.server.core.source.SourceReceiver;
+import org.apache.skywalking.oap.server.library.module.ModuleManager;
+import org.apache.skywalking.oap.server.recevier.browser.provider.BrowserServiceModuleConfig;
+import org.apache.skywalking.oap.server.recevier.browser.provider.parser.errorlog.decorator.BrowserErrorLogCoreInfo;
+import org.apache.skywalking.oap.server.recevier.browser.provider.parser.errorlog.decorator.BrowserErrorLogDecorator;
+import org.apache.skywalking.oap.server.recevier.browser.provider.parser.errorlog.listener.BrowserErrorLogListener;
+import org.apache.skywalking.oap.server.recevier.browser.provider.parser.errorlog.listener.BrowserErrorLogListenerFactory;
+
+/**
+ * Process error record.
+ *
+ * @author zhangwei
+ */
+public class BrowserErrorLogRecordListener implements BrowserErrorLogListener {
+
+ private final SourceReceiver sourceReceiver;
+ private final BrowserErrorLog browserErrorLog;
+ private BrowserErrorLogRecordSampler sampler;
+ private SAMPLE_STATUS sampleStatus = SAMPLE_STATUS.UNKNOWN;
+
+ private BrowserErrorLogRecordListener(ModuleManager moduleManager, BrowserErrorLogRecordSampler sampler) {
+ sourceReceiver = moduleManager.find(CoreModule.NAME).provider().getService(SourceReceiver.class);
+ browserErrorLog = new BrowserErrorLog();
+ this.sampler = sampler;
+ }
+
+ @Override
+ public void build() {
+ filter(() -> sourceReceiver.receive(browserErrorLog));
+ }
+
+ @Override
+ public void parse(BrowserErrorLogDecorator decorator, BrowserErrorLogCoreInfo coreInfo) {
+ filter(coreInfo.getUniqueId(), () -> {
+ browserErrorLog.setUniqueId(coreInfo.getUniqueId());
+ browserErrorLog.setServiceId(coreInfo.getServiceId());
+ browserErrorLog.setServiceVersionId(coreInfo.getServiceVersionId());
+ browserErrorLog.setPagePathId(coreInfo.getPagePathId());
+ browserErrorLog.setPagePath(decorator.getPagePath());
+ browserErrorLog.setTime(decorator.getTime());
+ browserErrorLog.setTimeBucket(coreInfo.getMinuteTimeBucket());
+ browserErrorLog.setCategory(coreInfo.getCategory());
+ browserErrorLog.setDataBinary(decorator.toByteArray());
+ });
+ }
+
+ private void filter(Runnable runnable) {
+ filter(null, runnable);
Review comment:
Why have this? Related to the following NPE question.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/30ac5b0affa86617d717b7d2df22d460908949ee?src=pr&el=desc) will **decrease** coverage by `<.01%`.
> The diff coverage is `0%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
==========================================
- Coverage 25.53% 25.53% -0.01%
==========================================
Files 1217 1217
Lines 27600 27605 +5
Branches 3786 3788 +2
==========================================
Hits 7049 7049
- Misses 19917 19922 +5
Partials 634 634
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [.../listener/record/BrowserErrorLogRecordSampler.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9lcnJvcmxvZy9saXN0ZW5lci9yZWNvcmQvQnJvd3NlckVycm9yTG9nUmVjb3JkU2FtcGxlci5qYXZh) | `100% <ø> (ø)` | :arrow_up: |
| [...listener/record/BrowserErrorLogRecordListener.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcmVjZWl2ZXItcGx1Z2luL3NreXdhbGtpbmctYnJvd3Nlci1yZWNlaXZlci1wbHVnaW4vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvb2FwL3NlcnZlci9yZWNldmllci9icm93c2VyL3Byb3ZpZGVyL3BhcnNlci9lcnJvcmxvZy9saXN0ZW5lci9yZWNvcmQvQnJvd3NlckVycm9yTG9nUmVjb3JkTGlzdGVuZXIuamF2YQ==) | `0% <0%> (ø)` | :arrow_up: |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [30ac5b0...381a2cf](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/612164db5cce9050285b86703fa0b9f09ee0237e?src=pr&el=desc) will **decrease** coverage by `0.15%`.
> The diff coverage is `93.75%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
==========================================
- Coverage 26.51% 26.35% -0.16%
==========================================
Files 1210 1211 +1
Lines 26347 26352 +5
Branches 3733 3734 +1
==========================================
- Hits 6985 6945 -40
- Misses 18743 18794 +51
+ Partials 619 613 -6
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [.../core/profile/analyze/ProfileAnalyzeCollector.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvcHJvZmlsZS9hbmFseXplL1Byb2ZpbGVBbmFseXplQ29sbGVjdG9yLmphdmE=) | `100% <ø> (ø)` | :arrow_up: |
| [...lking/oap/query/graphql/resolver/ProfileQuery.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItcXVlcnktcGx1Z2luL3F1ZXJ5LWdyYXBocWwtcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9xdWVyeS9ncmFwaHFsL3Jlc29sdmVyL1Byb2ZpbGVRdWVyeS5qYXZh) | `0% <0%> (ø)` | :arrow_up: |
| [...p/server/core/profile/analyze/ProfileAnalyzer.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvcHJvZmlsZS9hbmFseXplL1Byb2ZpbGVBbmFseXplci5qYXZh) | `77.77% <100%> (ø)` | :arrow_up: |
| [...oap/server/core/query/entity/ProfileStackTree.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvcXVlcnkvZW50aXR5L1Byb2ZpbGVTdGFja1RyZWUuamF2YQ==) | `100% <100%> (ø)` | |
| [.../server/core/profile/analyze/ProfileStackNode.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvcHJvZmlsZS9hbmFseXplL1Byb2ZpbGVTdGFja05vZGUuamF2YQ==) | `90.38% <100%> (+0.28%)` | :arrow_up: |
| [...rg/apache/skywalking/apm/agent/core/os/OSUtil.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvb3MvT1NVdGlsLmphdmE=) | `0% <0%> (-76%)` | :arrow_down: |
| [.../core/remote/ServiceAndEndpointRegisterClient.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcmVtb3RlL1NlcnZpY2VBbmRFbmRwb2ludFJlZ2lzdGVyQ2xpZW50LmphdmE=) | `49.43% <0%> (-12.36%)` | :arrow_down: |
| [...ache/skywalking/apm/agent/core/jvm/JVMService.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvanZtL0pWTVNlcnZpY2UuamF2YQ==) | `80.32% <0%> (+6.55%)` | :arrow_up: |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [612164d...dbb68f1](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/da1729705a106e7243b1738fa4fc2d8b1c65a5d1?src=pr&el=desc) will **decrease** coverage by `<.01%`.
> The diff coverage is `56.09%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
=========================================
- Coverage 26.41% 26.4% -0.01%
=========================================
Files 1211 1211
Lines 26388 26388
Branches 3745 3745
=========================================
- Hits 6970 6968 -2
- Misses 18799 18800 +1
- Partials 619 620 +1
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...king/oap/server/core/alarm/provider/AlarmRule.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItYWxhcm0tcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvY29yZS9hbGFybS9wcm92aWRlci9BbGFybVJ1bGUuamF2YQ==) | `18.75% <100%> (ø)` | :arrow_up: |
| [...ywalking/oap/server/core/alarm/provider/Rules.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItYWxhcm0tcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvY29yZS9hbGFybS9wcm92aWRlci9SdWxlcy5qYXZh) | `100% <100%> (ø)` | :arrow_up: |
| [.../server/core/alarm/provider/AlarmRulesWatcher.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItYWxhcm0tcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvY29yZS9hbGFybS9wcm92aWRlci9BbGFybVJ1bGVzV2F0Y2hlci5qYXZh) | `96.87% <100%> (ø)` | :arrow_up: |
| [...ng/oap/server/core/alarm/provider/RunningRule.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItYWxhcm0tcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvY29yZS9hbGFybS9wcm92aWRlci9SdW5uaW5nUnVsZS5qYXZh) | `68.53% <51.35%> (ø)` | :arrow_up: |
| [...ache/skywalking/apm/agent/core/jvm/JVMService.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvanZtL0pWTVNlcnZpY2UuamF2YQ==) | `80.32% <0%> (-3.28%)` | :arrow_down: |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [da17297...47b4eb8](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] Fine0830 commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
Fine0830 commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-585127170
> @Fine0830 I think (isFirstPageErrorReport) should be a better name in the protocol?
Hmm... isFirstPageJSErrorReport ? We will have other error rate.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r395953893
##########
File path: test/e2e/e2e-test/src/test/java/org/apache/skywalking/e2e/browser/BrowserE2E.java
##########
@@ -0,0 +1,353 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.e2e.browser;
+
+import io.grpc.ManagedChannel;
+import io.grpc.internal.DnsNameResolverProvider;
+import io.grpc.netty.NettyChannelBuilder;
+import io.grpc.stub.StreamObserver;
+import java.util.List;
+import java.util.UUID;
+import java.util.concurrent.CountDownLatch;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.skywalking.apm.network.common.Commands;
+import org.apache.skywalking.apm.network.common.KeyIntValuePair;
+import org.apache.skywalking.apm.network.common.ServiceType;
+import org.apache.skywalking.apm.network.language.agent.BrowserErrorLog;
+import org.apache.skywalking.apm.network.language.agent.BrowserPerfData;
+import org.apache.skywalking.apm.network.language.agent.BrowserPerfServiceGrpc;
+import org.apache.skywalking.apm.network.language.agent.ErrorCategory;
+import org.apache.skywalking.apm.network.register.v2.RegisterGrpc;
+import org.apache.skywalking.apm.network.register.v2.ServiceInstance;
+import org.apache.skywalking.apm.network.register.v2.ServiceInstanceRegisterMapping;
+import org.apache.skywalking.apm.network.register.v2.ServiceInstances;
+import org.apache.skywalking.apm.network.register.v2.ServiceRegisterMapping;
+import org.apache.skywalking.apm.network.register.v2.Services;
+import org.apache.skywalking.e2e.annotation.ContainerHostAndPort;
+import org.apache.skywalking.e2e.annotation.DockerCompose;
+import org.apache.skywalking.e2e.annotation.DockerContainer;
+import org.apache.skywalking.e2e.base.SkyWalkingE2E;
+import org.apache.skywalking.e2e.base.SkyWalkingTestAdapter;
+import org.apache.skywalking.e2e.base.TrafficController;
+import org.apache.skywalking.e2e.common.HostAndPort;
+import org.apache.skywalking.e2e.retryable.RetryableTest;
+import org.apache.skywalking.e2e.service.Service;
+import org.apache.skywalking.e2e.service.ServicesMatcher;
+import org.apache.skywalking.e2e.service.ServicesQuery;
+import org.apache.skywalking.e2e.service.endpoint.Endpoint;
+import org.apache.skywalking.e2e.service.endpoint.EndpointQuery;
+import org.apache.skywalking.e2e.service.endpoint.Endpoints;
+import org.apache.skywalking.e2e.service.endpoint.EndpointsMatcher;
+import org.apache.skywalking.e2e.service.instance.Instance;
+import org.apache.skywalking.e2e.service.instance.Instances;
+import org.apache.skywalking.e2e.service.instance.InstancesMatcher;
+import org.apache.skywalking.e2e.service.instance.InstancesQuery;
+import org.junit.jupiter.api.BeforeAll;
+import org.testcontainers.containers.ContainerState;
+import org.testcontainers.containers.DockerComposeContainer;
+
+import static java.util.Objects.nonNull;
+import static org.apache.skywalking.e2e.metrics.BrowserMetricsQuery.ALL_BROWSER_METRICS;
+import static org.apache.skywalking.e2e.metrics.BrowserMetricsQuery.ALL_BROWSER_PAGE_METRICS;
+import static org.apache.skywalking.e2e.metrics.BrowserMetricsQuery.ALL_BROWSER_PAGE_MULTIPLE_LINEAR_METRICS;
+import static org.apache.skywalking.e2e.metrics.BrowserMetricsQuery.ALL_BROWSER_SINGLE_VERSION_METRICS;
+import static org.apache.skywalking.e2e.metrics.MetricsMatcher.verifyMetrics;
+import static org.apache.skywalking.e2e.metrics.MetricsMatcher.verifyPercentileMetrics;
+import static org.apache.skywalking.e2e.utils.Times.now;
+import static org.apache.skywalking.e2e.utils.Yamls.load;
+
+@Slf4j
+@SkyWalkingE2E
+public class BrowserE2E extends SkyWalkingTestAdapter {
+
+ private static final int MAX_INBOUND_MESSAGE_SIZE = 1024 * 1024 * 50;
+
+ private static final String BROWSER_NAME = "e2e";
+
+ private static final String BROWSER_SINGLE_VERSION_NAME = "v1.0.0";
+
+ @SuppressWarnings("unused")
+ @DockerCompose({
+ "docker/browser/docker-compose.${SW_STORAGE}.yml",
+ })
+ protected DockerComposeContainer<?> compose;
+
+ @SuppressWarnings("unused")
+ @ContainerHostAndPort(name = "ui", port = 8080)
+ private HostAndPort swWebappHostPort;
+
+ @SuppressWarnings("unused")
+ @ContainerHostAndPort(name = "oap", port = 11800)
+ private HostAndPort oapHostPort;
+
+ @SuppressWarnings("unused")
+ @DockerContainer("oap")
+ private ContainerState oapContainer;
+
+ private RegisterGrpc.RegisterBlockingStub registerStub;
+
+ private BrowserPerfServiceGrpc.BrowserPerfServiceStub browserPerfServiceStub;
+
+ private volatile int browserId;
+
+ private volatile int browserSingleVersionId;
+
+ @BeforeAll
+ public void setUp() {
+ queryClient(swWebappHostPort);
+
+ final ManagedChannel channel =
+ NettyChannelBuilder.forAddress(oapHostPort.host(), oapHostPort.port())
+ .nameResolverFactory(new DnsNameResolverProvider())
+ .maxInboundMessageSize(MAX_INBOUND_MESSAGE_SIZE)
+ .usePlaintext()
+ .build();
+
+ registerStub = RegisterGrpc.newBlockingStub(channel);
+ browserPerfServiceStub = BrowserPerfServiceGrpc.newStub(channel);
+
+ register();
+ generateTraffic();
+ }
+
+ @RetryableTest
+ void verify() throws Exception {
+ final List<Service> services = graphql.browserServices(new ServicesQuery().start(startTime).end(now()));
+ LOGGER.info("services: {}", services);
+
+ load("expected/browser/services.yml")
+ .as(ServicesMatcher.class).verify(services);
+
+ for (Service service : services) {
+ LOGGER.info("verifying service version: {}", service);
+ // service metrics
+ verifyBrowserMetrics(service);
+
+ // service version
+ verifyBrowserSingleVersion(service);
+
+ // service page path
+ verifyBrowserPagePath(service);
+ }
+ }
+
+ private void verifyBrowserMetrics(final Service service) throws Exception {
+ for (String metricName : ALL_BROWSER_METRICS) {
+ verifyMetrics(graphql, metricName, service.getKey(), startTime);
+ }
+ }
+
+ private Instances verifyBrowserSingleVersion(final Service service) throws Exception {
+ Instances instances = graphql.instances(
+ new InstancesQuery().serviceId(service.getKey()).start(startTime).end(now())
+ );
+ LOGGER.info("instances: {}", instances);
+ load("expected/browser/version.yml").as(InstancesMatcher.class).verify(instances);
+ // service version metrics
+ for (Instance instance : instances.getInstances()) {
+ verifyBrowserSingleVersionMetrics(instance);
+ }
+ return instances;
+ }
+
+ private void verifyBrowserSingleVersionMetrics(Instance instance) throws Exception {
+ for (String metricName : ALL_BROWSER_SINGLE_VERSION_METRICS) {
+ verifyMetrics(graphql, metricName, instance.getKey(), startTime);
+ }
+ }
+
+ private Endpoints verifyBrowserPagePath(final Service service) throws Exception {
+ Endpoints endpoints = graphql.endpoints(new EndpointQuery().serviceId(String.valueOf(service.getKey())));
+ LOGGER.info("endpoints: {}", endpoints);
+ load("expected/browser/pagePath.yml").as(EndpointsMatcher.class).verify(endpoints);
+ // service page metrics
+ for (Endpoint endpoint : endpoints.getEndpoints()) {
+ verifyBrowserPagePathMetrics(endpoint);
+ }
+ return endpoints;
+ }
+
+ private void verifyBrowserPagePathMetrics(Endpoint endpoint) throws Exception {
+ for (String metricName : ALL_BROWSER_PAGE_METRICS) {
+ verifyMetrics(graphql, metricName, endpoint.getKey(), startTime);
+ }
+
+ for (String metricName : ALL_BROWSER_PAGE_MULTIPLE_LINEAR_METRICS) {
+ verifyPercentileMetrics(graphql, metricName, endpoint.getKey(), startTime);
+ }
+ }
+
+ private void generateTraffic() {
+ trafficController = TrafficController.builder()
+ .sender(this::sendBrowserData)
+ .build()
+ .start();
+ }
+
+ private boolean sendBrowserData() {
+ try {
+ BrowserPerfData.Builder perfBuilder = BrowserPerfData.newBuilder()
+ .setServiceId(browserId)
+ .setServiceVersionId(browserSingleVersionId)
+ .setPagePath("/e2e-browser")
+ .setRedirectTime(10)
+ .setDnsTime(10)
+ .setReqTime(10)
+ .setDomAnalysisTime(10)
+ .setDomReadyTime(10)
+ .setBlankTime(10);
+ sendBrowserPerfData(perfBuilder.build());
+
+ for (ErrorCategory category : ErrorCategory.values()) {
+ if (category == ErrorCategory.UNRECOGNIZED) {
+ continue;
+ }
+ BrowserErrorLog.Builder errorLogBuilder = BrowserErrorLog.newBuilder()
+ .setUniqueId(UUID.randomUUID().toString())
+ .setServiceId(browserId)
+ .setServiceVersionId(browserSingleVersionId)
+ .setPagePath("/e2e-browser")
+ .setCategory(category)
+ .setMessage("test")
+ .setLine(1)
+ .setCol(1)
+ .setStack("e2e")
+ .setErrorUrl("/e2e/browser");
+ if (category == ErrorCategory.js) {
+ errorLogBuilder.setFirstReportedError(true);
+ }
+ sendBrowserErrorLog(errorLogBuilder.build());
+ }
+ return true;
+ } catch (Throwable e) {
+ LOGGER.warn(e.getMessage(), e);
+ return false;
+ }
+ }
+
+ private void sendBrowserPerfData(BrowserPerfData browserPerfData) throws InterruptedException {
+ final CountDownLatch latch = new CountDownLatch(1);
+
+ browserPerfServiceStub.collectPerfData(browserPerfData, new StreamObserver<Commands>() {
+ @Override
+ public void onNext(Commands commands) {
+
+ }
+
+ @Override
+ public void onError(Throwable throwable) {
+ throwable.printStackTrace();
+ latch.countDown();
+ }
+
+ @Override
+ public void onCompleted() {
+ latch.countDown();
+ }
+ });
+ latch.await();
+ }
+
+ private void sendBrowserErrorLog(BrowserErrorLog browserErrorLog) throws InterruptedException {
+ final CountDownLatch latch = new CountDownLatch(1);
+
+ StreamObserver<BrowserErrorLog> collectStream = browserPerfServiceStub.collectErrorLogs(
+ new StreamObserver<Commands>() {
+ @Override
+ public void onNext(Commands commands) {
+
+ }
+
+ @Override
+ public void onError(Throwable throwable) {
+ throwable.printStackTrace();
+ latch.countDown();
+ }
+
+ @Override
+ public void onCompleted() {
+ latch.countDown();
+ }
+ });
+ collectStream.onNext(browserErrorLog);
+ collectStream.onCompleted();
+ latch.await();
+ }
+
+ private void register() {
+ int retryIndex = 0;
+ while (browserId == 0 || browserSingleVersionId == 0) {
+ try {
+ if (browserId == 0) {
+ browserId = registerBrowser();
+ }
+ if (browserId > 0) {
+ browserSingleVersionId = registerBrowserSingleVersion(browserId);
+ }
+ if (browserId > 0 && browserSingleVersionId > 0) {
+ break;
+ }
+ } catch (Throwable e) {
+ if (++retryIndex % 5 == 0) {
+ LOGGER.error(e.getMessage(), e);
+ }
+ }
+ try {
+ Thread.sleep(1000);
+ } catch (InterruptedException e) {
+ // ignore
+ }
+ }
+ }
Review comment:
Thanks @kezhenxu94. I've changed the code based on the comments :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-581134796
The metrics summary by review comments.
```
// browser app
browser_app_pv
browser_app_error_rate
browser_app_error_sum
// browser app single version
browser_app_single_version_page_pv
browser_app_single_version_page_error_rate
// browser app page
browser_app_page_pv
browser_app_page_error_rate
browser_app_page_error_sum
browser_app_page_ajax_error_sum
browsre_app_page_resource_error_sum
browsre_app_page_ vue_error_sum
browsre_app_page_ promise_error_sum
browser_app_page_ js_error_sum
browser_app_page_unknown_error_sum
browser_app_page_redirect_avg
browser_app_page_dns_avg
browser_app_page_req_avg
browser_app_page_dom_analysis_avg
browser_app_page_dom_ready_avg
browser_app_page_blank_avg
browser_app_page_redirect_percentile
browser_app_page_dns_percentile
browser_app_page_req_percentile
browser_app_page_dom_analysis_percentile
browser_app_page_dom_ready_percentile
browser_app_page_blank_percentile
```
> We should add error rate ranking for versions in service.
The sort will be implemented in the `query-plugin`.
> We need to sort errors and calculate errors sum for different catalogs.
Please provide all known value for the `BrowserErrorLog#catalog` @Fine0830 . I suggest to change the [BrowserErrorLog#catalog](https://github.com/apache/skywalking-data-collect-protocol/blob/eebd016e32b0808416923acf04dcd31d9eb86c09/browser/BrowserPerf.proto#L49) to an enum.
@wu-sheng @Fine0830 Please confirm :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] Fine0830 edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
Fine0830 edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-584514378
No, the value couldn't be more than 100%. JS error rate = PV(pv with JS error in specified time) / PV (total PV in specified time).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r377471040
##########
File path: oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/browser/source/BrowserAppErrorLog.java
##########
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.oap.server.core.browser.source;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.apache.skywalking.oap.server.core.source.ScopeDeclaration;
+import org.apache.skywalking.oap.server.core.source.ScopeDefaultColumn;
+import org.apache.skywalking.oap.server.core.source.Source;
+
+import static org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.BROWSER_APP_ERROR_LOG;
+import static org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.SERVICE_CATALOG_NAME;
+
+/**
+ * @author zhangwei
+ */
+@ScopeDeclaration(id = BROWSER_APP_ERROR_LOG, name = "BrowserAppErrorLog", catalog = SERVICE_CATALOG_NAME)
+@ScopeDefaultColumn.VirtualColumnDefinition(fieldName = "entityId", columnName = "entity_id", isID = true, type = String.class)
+public class BrowserAppErrorLog extends Source {
+
+ @Override
+ public int scope() {
+ return BROWSER_APP_ERROR_LOG;
+ }
+
+ @Override
+ public String getEntityId() {
+ return String.valueOf(id);
+ }
+
+ @Getter @Setter private int id;
+ @Getter private final int count = 1;
Review comment:
Because the client calls the uncertainty of `onCompleted`, leave it as it is.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r368230582
##########
File path: oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/source/DefaultScopeDefine.java
##########
@@ -71,16 +71,28 @@
public static final int PROFILE_TASK_LOG = 27;
public static final int PROFILE_TASK_SEGMENT_SNAPSHOT = 28;
+ // browser
+ public static final int BROWSER_PERF_DATA = 40;
+ public static final int SERVICE_PERF_DETAIL = 41;
+ public static final int SERVICE_PAGE_PATH_PERF_DETAIL = 42;
+ public static final int SERVICE_VERSION_PERF_DETAIL = 43;
+ public static final int SERVICE_VERSION_PAGE_PATH_PERF_DETAIL = 44;
+
/**
* Catalog of scope, the metrics processor could use this to group all generated metrics by oal rt.
*/
public static final String SERVICE_CATALOG_NAME = "SERVICE";
public static final String SERVICE_INSTANCE_CATALOG_NAME = "SERVICE_INSTANCE";
public static final String ENDPOINT_CATALOG_NAME = "ENDPOINT";
+ public static final String SERVICE_PAGE_PATH_CATALOG_NAME = "SERVICE_PAGE_PATH";
+ public static final String SERVICE_VERSION_PAGE_PATH_CATALOG_NAME = "SERVICE_VERSION_PAGE_PATH";
Review comment:
Same rename suggestion.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] kezhenxu94 commented on a change in pull request
#4228: Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r368288209
##########
File path: oap-server/server-bootstrap/src/main/resources/official_analysis.oal
##########
@@ -102,3 +102,77 @@ envoy_parent_connections_used = from(EnvoyInstanceMetric.value).filter(metricNam
// disable(top_n_database_statement);
// disable(zipkin_span);
// disable(jaeger_span);
+
+
+// Browser metrics begin
Review comment:
> In @arugal prev PR, this part of OAL is separated in another OAL
Which PR? I'd like to have a look;
Modularizing the OAL sounds good to me, maybe divide them as per entity or metrics, and make it possible for the users to put their custom metrics in a separate file
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r376394711
##########
File path: oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/browser/source/BrowserAppErrorLog.java
##########
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.oap.server.core.browser.source;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.apache.skywalking.oap.server.core.source.ScopeDeclaration;
+import org.apache.skywalking.oap.server.core.source.ScopeDefaultColumn;
+import org.apache.skywalking.oap.server.core.source.Source;
+
+import static org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.BROWSER_APP_ERROR_LOG;
+import static org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.SERVICE_CATALOG_NAME;
+
+/**
+ * @author zhangwei
+ */
+@ScopeDeclaration(id = BROWSER_APP_ERROR_LOG, name = "BrowserAppErrorLog", catalog = SERVICE_CATALOG_NAME)
+@ScopeDefaultColumn.VirtualColumnDefinition(fieldName = "entityId", columnName = "entity_id", isID = true, type = String.class)
+public class BrowserAppErrorLog extends Source {
Review comment:
This is error traffic, not error log. You should rename to `*ErrorTraffic`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/cf0d621cf759d6495694cc8ca124a50bb8cdb16e?src=pr&el=desc) will **decrease** coverage by `0.02%`.
> The diff coverage is `11.36%`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
==========================================
- Coverage 26.35% 26.32% -0.03%
==========================================
Files 1189 1189
Lines 25924 25924
Branches 3685 3685
==========================================
- Hits 6832 6825 -7
- Misses 18486 18493 +7
Partials 606 606
```
| [Impacted Files](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...king/oap/server/core/alarm/provider/AlarmRule.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItYWxhcm0tcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvY29yZS9hbGFybS9wcm92aWRlci9BbGFybVJ1bGUuamF2YQ==) | `13.33% <ø> (ø)` | :arrow_up: |
| [...king/oap/server/core/query/MetricQueryService.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvcXVlcnkvTWV0cmljUXVlcnlTZXJ2aWNlLmphdmE=) | `0% <0%> (ø)` | :arrow_up: |
| [...kywalking/oap/server/core/query/DurationUtils.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2t5d2Fsa2luZy9vYXAvc2VydmVyL2NvcmUvcXVlcnkvRHVyYXRpb25VdGlscy5qYXZh) | `0% <0%> (ø)` | :arrow_up: |
| [...ng/oap/server/core/alarm/provider/RunningRule.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-b2FwLXNlcnZlci9zZXJ2ZXItYWxhcm0tcGx1Z2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9za3l3YWxraW5nL29hcC9zZXJ2ZXIvY29yZS9hbGFybS9wcm92aWRlci9SdW5uaW5nUnVsZS5qYXZh) | `73.04% <100%> (ø)` | :arrow_up: |
| [.../agent/core/profile/ProfileTaskChannelService.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvcHJvZmlsZS9Qcm9maWxlVGFza0NoYW5uZWxTZXJ2aWNlLmphdmE=) | `27.58% <0%> (-9.2%)` | :arrow_down: |
| [...ache/skywalking/apm/agent/core/jvm/JVMService.java](https://codecov.io/gh/apache/skywalking/pull/4228/diff?src=pr&el=tree#diff-YXBtLXNuaWZmZXIvYXBtLWFnZW50LWNvcmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NreXdhbGtpbmcvYXBtL2FnZW50L2NvcmUvanZtL0pWTVNlcnZpY2UuamF2YQ==) | `77.04% <0%> (+1.63%)` | :arrow_up: |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [cf0d621...6403925](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r368352870
##########
File path: oap-server/server-bootstrap/src/main/resources/official_analysis.oal
##########
@@ -102,3 +102,77 @@ envoy_parent_connections_used = from(EnvoyInstanceMetric.value).filter(metricNam
// disable(top_n_database_statement);
// disable(zipkin_span);
// disable(jaeger_span);
+
+
+// Browser metrics begin
Review comment:
> And activate the OAL by the receiver?
Agree.
### Design
1. `official_analysis.oal` and `browser_analysis.oal`
1. `official_analysis.oal` activate by `mission-metric, istio-telemetry, service-mesh, receiver-trace, receiver-so11y, receiver-jvm, receiver-clr `
1. `browser_analysis.oal` activate by `browser-receiver`
1. each file will only be activated once
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] kezhenxu94 commented on a change in pull request
#4228: Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r368289849
##########
File path: oap-server/server-bootstrap/src/main/resources/official_analysis.oal
##########
@@ -102,3 +102,77 @@ envoy_parent_connections_used = from(EnvoyInstanceMetric.value).filter(metricNam
// disable(top_n_database_statement);
// disable(zipkin_span);
// disable(jaeger_span);
+
+
+// Browser metrics begin
Review comment:
> Actually, I don't want to separate too many files. It was this PR, there were two OAL files, one for backend service, the other for browser. They are activated by receiver. What do you think?
Anyway, I'm with this idea, it doesn't matter for me how many OAL files are divided into, finally :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] codecov-io edited a comment on issue #4228: Support
Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-575036602
# [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=h1) Report
> Merging [#4228](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=desc) into [master](https://codecov.io/gh/apache/skywalking/commit/e3f8f0757b9f616825bbd2212c38843ac2557f63&el=desc) will **not change** coverage by `%`.
> The diff coverage is `n/a`.
[](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4228 +/- ##
=======================================
Coverage 24.90% 24.90%
=======================================
Files 1285 1285
Lines 29760 29760
Branches 4061 4061
=======================================
Hits 7412 7412
Misses 21657 21657
Partials 691 691
```
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=footer). Last update [e3f8f07...e3f8f07](https://codecov.io/gh/apache/skywalking/pull/4228?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r368289353
##########
File path: oap-server/server-bootstrap/src/main/resources/official_analysis.oal
##########
@@ -102,3 +102,77 @@ envoy_parent_connections_used = from(EnvoyInstanceMetric.value).filter(metricNam
// disable(top_n_database_statement);
// disable(zipkin_span);
// disable(jaeger_span);
+
+
+// Browser metrics begin
Review comment:
Actually, I don't want to separate too many files. It was this PR, there were two OAL files, one for backend service, the other for browser. They are activated by receiver. What do you think?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] arugal commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
arugal commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379404093
##########
File path: oap-server/server-bootstrap/src/main/resources/browser_analysis.oal
##########
@@ -0,0 +1,49 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF 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.
+*
+*/
+
+// browser app
+browser_app_pv = from(BrowserAppPerf.count).sum();
+browser_app_error_sum = from(BrowserAppErrorTraffic.count).sum();
Review comment:
done
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r379413621
##########
File path: oap-server/server-receiver-plugin/skywalking-browser-receiver-plugin/src/main/java/org/apache/skywalking/oap/server/recevier/browser/provider/parser/errorlog/BrowserErrorLogParser.java
##########
@@ -0,0 +1,197 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.oap.server.recevier.browser.provider.parser.errorlog;
+
+import lombok.Setter;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.skywalking.apm.network.language.agent.BrowserErrorLog;
+import org.apache.skywalking.oap.server.core.Const;
+import org.apache.skywalking.oap.server.core.CoreModule;
+import org.apache.skywalking.oap.server.core.analysis.TimeBucket;
+import org.apache.skywalking.oap.server.core.cache.ServiceInstanceInventoryCache;
+import org.apache.skywalking.oap.server.library.buffer.BufferData;
+import org.apache.skywalking.oap.server.library.buffer.DataStreamReader;
+import org.apache.skywalking.oap.server.library.module.ModuleManager;
+import org.apache.skywalking.oap.server.recevier.browser.provider.BrowserServiceModuleConfig;
+import org.apache.skywalking.oap.server.recevier.browser.provider.parser.BrowserDataSource;
+import org.apache.skywalking.oap.server.recevier.browser.provider.parser.errorlog.decorator.BrowserErrorLogCoreInfo;
+import org.apache.skywalking.oap.server.recevier.browser.provider.parser.errorlog.decorator.BrowserErrorLogDecorator;
+import org.apache.skywalking.oap.server.recevier.browser.provider.parser.errorlog.listener.BrowserErrorLogListener;
+import org.apache.skywalking.oap.server.recevier.browser.provider.parser.errorlog.standardization.BrowserErrorLogStandardization;
+import org.apache.skywalking.oap.server.recevier.browser.provider.parser.errorlog.standardization.BrowserErrorLogStandardizationWorker;
+import org.apache.skywalking.oap.server.recevier.browser.provider.parser.errorlog.standardization.PagePathIdExchanger;
+import org.apache.skywalking.oap.server.telemetry.TelemetryModule;
+import org.apache.skywalking.oap.server.telemetry.api.CounterMetrics;
+import org.apache.skywalking.oap.server.telemetry.api.MetricsCreator;
+import org.apache.skywalking.oap.server.telemetry.api.MetricsTag;
+
+import java.util.LinkedList;
+import java.util.List;
+
+@Slf4j
+public class BrowserErrorLogParser {
Review comment:
Comments are required.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r372362241
##########
File path: oap-server/server-receiver-plugin/skywalking-browser-receiver-plugin/src/main/java/org/apache/skywalking/oap/server/recevier/browser/provider/parse/BrowserPerfDataParse.java
##########
@@ -0,0 +1,217 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.oap.server.recevier.browser.provider.parse;
+
+import lombok.Setter;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.skywalking.apm.network.language.agent.BrowserPerfData;
+import org.apache.skywalking.oap.server.core.Const;
+import org.apache.skywalking.oap.server.core.CoreModule;
+import org.apache.skywalking.oap.server.core.analysis.TimeBucket;
+import org.apache.skywalking.oap.server.core.cache.ServiceInstanceInventoryCache;
+import org.apache.skywalking.oap.server.library.buffer.BufferData;
+import org.apache.skywalking.oap.server.library.buffer.DataStreamReader;
+import org.apache.skywalking.oap.server.library.module.ModuleManager;
+import org.apache.skywalking.oap.server.recevier.browser.provider.BrowserServiceModuleConfig;
+import org.apache.skywalking.oap.server.recevier.browser.provider.parse.decorator.BrowserErrorLogDecorator;
+import org.apache.skywalking.oap.server.recevier.browser.provider.parse.decorator.BrowserPerfDataCoreInfo;
+import org.apache.skywalking.oap.server.recevier.browser.provider.parse.decorator.BrowserPerfDataDecorator;
+import org.apache.skywalking.oap.server.recevier.browser.provider.parse.listener.BrowserPerfDataListener;
+import org.apache.skywalking.oap.server.recevier.browser.provider.parse.standardization.BrowserPerfDataStandardization;
+import org.apache.skywalking.oap.server.recevier.browser.provider.parse.standardization.BrowserPerfDataStandardizationWorker;
+import org.apache.skywalking.oap.server.recevier.browser.provider.parse.standardization.PagePathIdExchanger;
+import org.apache.skywalking.oap.server.telemetry.TelemetryModule;
+import org.apache.skywalking.oap.server.telemetry.api.CounterMetrics;
+import org.apache.skywalking.oap.server.telemetry.api.MetricsCreator;
+import org.apache.skywalking.oap.server.telemetry.api.MetricsTag;
+
+import java.util.LinkedList;
+import java.util.List;
+
+/**
+ * @author zhangwei
+ */
+@Slf4j
+public class BrowserPerfDataParse {
Review comment:
`Parse` -> `Parser`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-584540175
The strict format rule has been merged, please update this PR.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r368230313
##########
File path: docs/en/setup/backend/backend-alarm.md
##########
@@ -85,7 +85,7 @@ Webhook requires the peer is a web container. The alarm message will send throug
- **scopeId**, **scope**. All scopes are defined in org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.
- **name**. Target scope entity name.
- **id0**. The ID of scope entity, matched the name.
-- **id1**. Not used today.
+- **id1**. The ID1 of scope entity.
Review comment:
Do we use this today?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on a change in pull request #4228:
Support Browser protocol at OAP
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#discussion_r372363934
##########
File path: oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/browser/source/BrowserSingleVersionPagePathPerfDetail.java
##########
@@ -0,0 +1,59 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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.
+ *
+ */
+
+package org.apache.skywalking.oap.server.core.browser.source;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.apache.skywalking.oap.server.core.Const;
+import org.apache.skywalking.oap.server.core.source.ScopeDeclaration;
+import org.apache.skywalking.oap.server.core.source.ScopeDefaultColumn;
+import org.apache.skywalking.oap.server.core.source.Source;
+
+import static org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.BROWSER_SINGLE_VERSION_PAGE_PATH_CATALOG_NAME;
+import static org.apache.skywalking.oap.server.core.source.DefaultScopeDefine.BROWSER_SINGLE_VERSION_PAGE_PATH_PERF_DETAIL;
+
+/**
+ * @author zhangwei
+ */
+@ScopeDeclaration(id = BROWSER_SINGLE_VERSION_PAGE_PATH_PERF_DETAIL, name = "BrowserSingleVersionPagePathPerfDetail", catalog = BROWSER_SINGLE_VERSION_PAGE_PATH_CATALOG_NAME)
+@ScopeDefaultColumn.VirtualColumnDefinition(fieldName = "entityId", columnName = "entity_id", isID = true, type = String.class)
+public class BrowserSingleVersionPagePathPerfDetail extends Source {
Review comment:
Naming issue. This should be related to BrowserAppSignleVersion. Not to page path even you could include the path for filter and metrics funcs.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] Fine0830 commented on issue #4228: Support Browser
protocol at OAP
Posted by GitBox <gi...@apache.org>.
Fine0830 commented on issue #4228: Support Browser protocol at OAP
URL: https://github.com/apache/skywalking/pull/4228#issuecomment-584511783
JS error rate equal PV with JS error in specified time divide total PV in specified time.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services