Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support to try to use request-id as trace-id when trace context absent #104

Merged
merged 3 commits into from
Apr 22, 2022

Conversation

dmsolr
Copy link
Member

@dmsolr dmsolr commented Apr 21, 2022

No description provided.

@dmsolr dmsolr requested a review from wu-sheng April 21, 2022 05:54
@dmsolr dmsolr added the enhancement New feature or request label Apr 21, 2022
@dmsolr dmsolr added this to the 1.0.0 milestone Apr 21, 2022
Copy link
Member

@kezhenxu94 kezhenxu94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a Lua expert just left a universal comment

lib/skywalking/tracing_context.lua Outdated Show resolved Hide resolved
# 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.
segmentItems:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where could verify requestId in this e2e test? I think I miss it

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

covered.

- name: request_id
expected: /expected/requestId.yaml
entries:
- url: http://nginx:8080/info
method: POST
headers:
- Request-Id: skywalking-e2e-request-id

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean, we just would verify codes work, but can see whether request ID is used, right?

@wu-sheng wu-sheng merged commit 406d442 into apache:master Apr 22, 2022
@wu-sheng
Copy link
Member

Could you check showcase, whether new tracer would have trace ID changing to request ID?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants