Git Product home page Git Product logo

Comments (11)

heyanlong avatar heyanlong commented on May 30, 2024

What exactly does it mean?

from skyapm-php-sdk.

qinlodestar avatar qinlodestar commented on May 30, 2024

If collector is configured agent.authentication,but agent has no authentication option.
./sky_php_agent_linux_x64 127.0.0.1:11800 /tmp/sky_agent.sock

from skyapm-php-sdk.

heyanlong avatar heyanlong commented on May 30, 2024

Add later

from skyapm-php-sdk.

it-liwow avatar it-liwow commented on May 30, 2024

skywalking server端版本:7.0 或 5.0
php版本:php7.1
sky_php_agent version:3.2.8
skywalking.so 扩展参数: skywalking.version=5或6

现在支持 header头中报文,带有 authentication 验证头信息 收集么?
sky_php_agent 在skywalking服务器启动状态下。php的skywalking扩展不能正常工作,get访问方式无法获取到业务接口数据。目前,7.0 和5.0版本的skywalking 都测试过。启用就会影响接口数据get获取。

启动后header头缺少如下部分信息,导致get方式无法获取接口数据。
["authorization"]=>
array(1) {
[0]=>
string(25) "a6HEqpDQyZrPL1ZlMBgPU11zL"
}
["content-type"]=>
array(1) {
[0]=>
string(31) "application/json; charset=utf-8"
}

from skyapm-php-sdk.

heyanlong avatar heyanlong commented on May 30, 2024

会把authorization 删掉?

from skyapm-php-sdk.

it-liwow avatar it-liwow commented on May 30, 2024

sky-php-agent --grpc 192.168.1.29:11800 --socket /var/run/sky-agent.sock
sky-php-agent -v
sky_php_agent version 3.2.8

经过多次测试。步骤如下:(skywalking服务端,sky-php-agent,skywalking.so扩展都正常启动加载)
A,关闭skywalking服务端后,重启php-fpm,可一直get获取到接口数据,接口状态正常,报文header头信息中可获取到authorization信息。
B,重新启动skywalking服务端并正常记录链路追踪信息,接口就无法get获取数据,此时报文header头信息中丢失authorization信息,导致验证失败,无法get获取数据。
C,重启php-fpm,第一次可以正常get到数据(清浏览器确认不是缓存),第二次之后开始便无法get获取到数据,报文header头信息中丢失authorization信息。

无论是skywalking7.0 (skywalking.version=6)还是5.0 版本(skywalking.version=5) 都会出现同样的情况。

补充:今天本想重写一个演示页面,发现authorization 可以正常获取。现在验证是否是php框架的问题。 很抱歉。

from skyapm-php-sdk.

heyanlong avatar heyanlong commented on May 30, 2024

使用的什么框架?

from skyapm-php-sdk.

it-liwow avatar it-liwow commented on May 30, 2024

使用的lumen 和 phalcon,目前因 其他项目。暂时未跟进这个问题。还在排查.. 节后再继续查这个问题。

from skyapm-php-sdk.

it-liwow avatar it-liwow commented on May 30, 2024

不好意思,问题已解决。
是研发再提交gitlab代码里。配置文件缺省了协议导致authorization丢失问题。 如:STOCK_URL=www.abc.com 改为:STOCK_URL=http://www.abc.com 则正常 。

from skyapm-php-sdk.

Veitor avatar Veitor commented on May 30, 2024

Is agent.authentication added? I need it when I use AliYun's TracingAnalysis Product

from skyapm-php-sdk.

heyanlong avatar heyanlong commented on May 30, 2024

No need

from skyapm-php-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.