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 2021/04/16 07:48:28 UTC

[GitHub] [skywalking] klboke opened a new issue #6768: How to configure skywalking tracing in envoy in envoyFilter of istio?

klboke opened a new issue #6768:
URL: https://github.com/apache/skywalking/issues/6768


   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [ 1] Question or discussion
   - [ ] Bug
   - [ ] Requirement
   - [ ] Feature or performance improvement
   
   ___
   ### Question
   - What do you want to know?
   
   1. The skywalking tracing implementation in envory, how to use envoyFilter configuration in istio?
   2. Is there a configuration file you can refer to?
   
   My configuration is as follows:
   ```
   apiVersion: networking.istio.io/v1alpha3
   kind: EnvoyFilter
   metadata:
     name: skywalking-filter
     namespace: default
   spec:
     workloadSelector:
       labels:
         app: productpage
     configPatches:
       - applyTo: NETWORK_FILTER
         match:
           listener:
             filterChain:
               filter:
                 name: "envoy.filters.network.http_connection_manager"
         patch:
           operation: MERGE
           value:
             name: "envoy.filters.network.http_connection_manager"
             typed_config:
               "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
               generate_request_id: true
               tracing:
                 provider:
                   name: envoy.tracers.skywalking
                   typed_config:
                     "@type": type.googleapis.com/envoy.config.trace.v3.SkyWalkingConfig
                     grpc_service:
                       envoy_grpc:
                         cluster_name: skywalking
                       timeout: 1s
                     client_config:
                       service_name: productpage
                       instance_name: productpage-1
               codec_type: AUTO
               stat_prefix: ingress_http
       - applyTo: CLUSTER
         match:
           context: ANY
         patch:
           operation: ADD
           value: # cluster specification
             name: "skywalking"
             type: STRICT_DNS
             connect_timeout: 1s
             lb_policy: ROUND_ROBIN
             typed_extension_protocol_options:
               envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
                 "@type": type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
                 explicit_http_config:
                   http2_protocol_options: {}
             load_assignment:
               cluster_name: skywalking
               endpoints:
                 - lb_endpoints:
                     - endpoint:
                         address:
                           socket_address:
                             address: 172.26.202.193
                             port_value: 11800
   
   ```
   An error was reported when the sidecar was initialized:
   ```
   2021-04-13T05:40:02.839720Z	critical	envoy main	std::terminate called! (possible uncaught exception, see trace)
   2021-04-13T05:40:02.844984Z	critical	envoy backtrace	Backtrace (use tools/stack_decode.py to get line numbers):
   2021-04-13T05:40:02.845118Z	critical	envoy backtrace	Envoy version: 9ede4aa9d31f9853ef9e61beb69ea9864854e268/1.17.1/Clean/RELEASE/BoringSSL
   2021-04-13T05:40:02.857997Z	critical	envoy main	std::terminate called! (possible uncaught exception, see trace)
   2021-04-13T05:40:02.858033Z	critical	envoy backtrace	Backtrace (use tools/stack_decode.py to get line numbers):
   2021-04-13T05:40:02.858044Z	critical	envoy backtrace	Envoy version: 9ede4aa9d31f9853ef9e61beb69ea9864854e268/1.17.1/Clean/RELEASE/BoringSSL
   2021-04-13T05:40:02.861788Z	critical	envoy backtrace	Caught Segmentation fault, suspect faulting address 0x30
   2021-04-13T05:40:02.861981Z	critical	envoy backtrace	Backtrace (use tools/stack_decode.py to get line numbers):
   2021-04-13T05:40:02.862034Z	critical	envoy backtrace	Envoy version: 9ede4aa9d31f9853ef9e61beb69ea9864854e268/1.17.1/Clean/RELEASE/BoringSSL
   2021-04-13T05:40:02.862265Z	critical	envoy backtrace	#0: __restore_rt [0x7f94be407980]
   2021-04-13T05:40:02.871369Z	critical	envoy backtrace	#0: Envoy::TerminateHandler::logOnTerminate()::$_0::operator()() [0x55792ce67f06]
   2021-04-13T05:40:02.872796Z	critical	envoy backtrace	#0: Envoy::TerminateHandler::logOnTerminate()::$_0::operator()() [0x55792ce67f06]
   2021-04-13T05:40:02.884986Z	critical	envoy backtrace	#1: Envoy::Extensions::Tracers::SkyWalking::Tracer::~Tracer() [0x55792bae2b65]
   2021-04-13T05:40:02.889576Z	critical	envoy backtrace	#1: [0x55792ce67d69]
   2021-04-13T05:40:02.900010Z	critical	envoy backtrace	#2: std::__terminate() [0x55792d4ea233]
   2021-04-13T05:40:02.901963Z	critical	envoy backtrace	#1: [0x55792ce67d69]
   2021-04-13T05:40:02.910575Z	critical	envoy backtrace	#3: Envoy::Grpc::AsyncClientManagerImpl::factoryForGrpcService() [0x55792c8d4a4a]
   2021-04-13T05:40:02.911353Z	critical	envoy backtrace	#2: std::__1::__function::__func<>::operator()() [0x55792bae2a7c]
   2021-04-13T05:40:02.925409Z	critical	envoy backtrace	#4: std::__1::__function::__func<>::operator()() [0x55792bae2972]
   2021-04-13T05:40:02.929887Z	critical	envoy backtrace	#2: std::__terminate() [0x55792d4ea233]
   2021-04-13T05:40:02.936513Z	critical	envoy backtrace	#5: std::__1::__function::__func<>::operator()() [0x55792c824478]
   2021-04-13T05:40:02.936641Z	critical	envoy backtrace	#3: Envoy::ThreadLocal::InstanceImpl::SlotImpl::set() [0x55792c8231df]
   2021-04-13T05:40:02.948493Z	critical	envoy backtrace	#3: Envoy::Grpc::AsyncClientManagerImpl::factoryForGrpcService() [0x55792c8d4a4a]
   2021-04-13T05:40:02.951576Z	critical	envoy backtrace	#6: Envoy::Event::DispatcherImpl::runPostCallbacks() [0x55792c84f51d]
   2021-04-13T05:40:02.956753Z	critical	envoy backtrace	#4: Envoy::Extensions::Tracers::SkyWalking::Driver::Driver() [0x55792bae1e3d]
   2021-04-13T05:40:02.966870Z	critical	envoy backtrace	#7: event_process_active_single_queue [0x55792ccc9e18]
   2021-04-13T05:40:02.971137Z	critical	envoy backtrace	#4: std::__1::__function::__func<>::operator()() [0x55792bae2972]
   2021-04-13T05:40:02.979692Z	critical	envoy backtrace	#5: Envoy::Extensions::Tracers::SkyWalking::SkyWalkingTracerFactory::createHttpTracerTyped() [0x55792bae15a2]
   2021-04-13T05:40:02.980783Z	critical	envoy backtrace	#8: event_base_loop [0x55792ccc8ade]
   2021-04-13T05:40:02.990678Z	critical	envoy backtrace	#5: std::__1::__function::__func<>::operator()() [0x55792c824478]
   2021-04-13T05:40:02.993592Z	critical	envoy backtrace	#9: Envoy::Server::WorkerImpl::threadRoutine() [0x55792c841793]
   2021-04-13T05:40:02.997318Z	critical	envoy backtrace	#6: Envoy::Extensions::Tracers::Common::FactoryBase<>::createHttpTracer() [0x55792bae1973]
   2021-04-13T05:40:03.010716Z	critical	envoy backtrace	#10: Envoy::Thread::ThreadImplPosix::ThreadImplPosix()::{lambda()#1}::__invoke() [0x55792cea8a53]
   2021-04-13T05:40:03.011056Z	critical	envoy backtrace	#11: start_thread [0x7f94be3fc6db]
   2021-04-13T05:40:03.011302Z	critical	envoy backtrace	Caught Aborted, suspect faulting address 0x5390000000f
   2021-04-13T05:40:03.011516Z	critical	envoy backtrace	Backtrace (use tools/stack_decode.py to get line numbers):
   2021-04-13T05:40:03.011572Z	critical	envoy backtrace	Envoy version: 9ede4aa9d31f9853ef9e61beb69ea9864854e268/1.17.1/Clean/RELEASE/BoringSSL
   2021-04-13T05:40:03.011862Z	critical	envoy backtrace	#0: __restore_rt [0x7f94be407980]
   2021-04-13T05:40:03.013540Z	critical	envoy backtrace	#6: Envoy::Event::DispatcherImpl::runPostCallbacks() [0x55792c84f51d]
   2021-04-13T05:40:03.020083Z	critical	envoy backtrace	#7: Envoy::Tracing::HttpTracerManagerImpl::getOrCreateHttpTracer() [0x55792cbddd72]
   2021-04-13T05:40:03.026074Z	critical	envoy backtrace	#1: [0x55792ce67d69]
   2021-04-13T05:40:03.026107Z	critical	envoy backtrace	#2: std::__terminate() [0x55792d4ea233]
   2021-04-13T05:40:03.026115Z	critical	envoy backtrace	#3: Envoy::Grpc::AsyncClientManagerImpl::factoryForGrpcService() [0x55792c8d4a4a]
   2021-04-13T05:40:03.026121Z	critical	envoy backtrace	#4: std::__1::__function::__func<>::operator()() [0x55792bae2972]
   2021-04-13T05:40:03.026129Z	critical	envoy backtrace	#5: std::__1::__function::__func<>::operator()() [0x55792c824478]
   2021-04-13T05:40:03.026136Z	critical	envoy backtrace	#6: Envoy::Event::DispatcherImpl::runPostCallbacks() [0x55792c84f51d]
   2021-04-13T05:40:03.026144Z	critical	envoy backtrace	#7: event_process_active_single_queue [0x55792ccc9e18]
   2021-04-13T05:40:03.026163Z	critical	envoy backtrace	#8: event_base_loop [0x55792ccc8ade]
   2021-04-13T05:40:03.026451Z	critical	envoy backtrace	#9: Envoy::Server::WorkerImpl::threadRoutine() [0x55792c841793]
   2021-04-13T05:40:03.026460Z	critical	envoy backtrace	#10: Envoy::Thread::ThreadImplPosix::ThreadImplPosix()::{lambda()#1}::__invoke() [0x55792cea8a53]
   2021-04-13T05:40:03.026467Z	critical	envoy backtrace	#11: start_thread [0x7f94be3fc6db]
   ```
   ___
   ### Requirement or improvement
   - Please describe your requirements or improvement suggestions.
   Provide a configuration example of envoyFilter in the istio environment


-- 
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



[GitHub] [skywalking] kezhenxu94 closed issue #6768: How to configure skywalking tracing in envoy in envoyFilter of istio?

Posted by GitBox <gi...@apache.org>.
kezhenxu94 closed issue #6768:
URL: https://github.com/apache/skywalking/issues/6768


   


-- 
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



[GitHub] [skywalking] kezhenxu94 commented on issue #6768: How to configure skywalking tracing in envoy in envoyFilter of istio?

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on issue #6768:
URL: https://github.com/apache/skywalking/issues/6768#issuecomment-821014714


   Here is the example https://github.com/apache/skywalking/blob/master/docs/en/setup/envoy/config.yaml also read our blog about this feature https://skywalking.apache.org/blog/2020-12-03-obs-service-mesh-with-sw-and-als/


-- 
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